- Posts: 5
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
Add image to Pdf
IP: 192.168.0.71
9 years 2 months ago #12556
by rudson
Add image to Pdf was created by rudson
I want to add an image to the pdf. can you please help me with what method I should use.
IP: 192.168.0.71
9 years 2 months ago #12557
by nermeen
Replied by nermeen on topic Add image to Pdf
IP: 192.168.0.71
9 years 2 months ago #12560
by rudson
Replied by rudson on topic Add image to Pdf
I tried to add bitmap annotation to page
but I have a query as it does not work
bool status = page.AddAnnotBitmap(img, true, rect);
what should above statement return to print the bitmap on pdf?
but I have a query as it does not work
bool status = page.AddAnnotBitmap(img, true, rect);
what should above statement return to print the bitmap on pdf?
IP: 192.168.0.71
9 years 2 months ago #12561
by nermeen
Should return true in case of success, false in case of failure
Note, You need at lease a professional license to be able to test this feature, if you not yet have a license, you can use demo's activation license and package name
Replied by nermeen on topic Add image to Pdf
Code:
page.AddAnnotBitmap(img, rect);
Note, You need at lease a professional license to be able to test this feature, if you not yet have a license, you can use demo's activation license and package name
IP: 192.168.0.71
9 years 2 months ago - 9 years 2 months ago #12562
by rudson
Replied by rudson on topic Add image to Pdf
I have professional license and i am using
public final boolean
AddAnnotBitmap(WriteableBitmap bitmap, boolean has_alpha, float[] rect)
this overloded method and its returning me false.
Can you suggest me what I am doing wrong
public final boolean
AddAnnotBitmap(WriteableBitmap bitmap, boolean has_alpha, float[] rect)
this overloded method and its returning me false.
Can you suggest me what I am doing wrong
Last edit: 9 years 2 months ago by rudson.
IP: 192.168.0.71
9 years 2 months ago #12563
by nermeen
Replied by nermeen on topic Add image to Pdf
It seems you are using an old version, currently the available APIs are:
it returns false, if the license is invalide or the info passed to AddAnnotBitmap is incorrect.
Code:
public bool AddAnnotBitmap(PDFDocImage img, PDFRect rect);
public bool AddAnnotBitmap(PDFDocImage img, PDFMatrix mat, bool has_alpha, PDFRect rect);
it returns false, if the license is invalide or the info passed to AddAnnotBitmap is incorrect.
Time to create page: 0.427 seconds