Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1
  • 2

TOPIC:

Add image to Pdf 6 years 9 months ago #12556

  • rudson
  • rudson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
I want to add an image to the pdf. can you please help me with what method I should use.

Please Log in or Create an account to join the conversation.

Add image to Pdf 6 years 9 months ago #12557

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87

Please Log in or Create an account to join the conversation.

Add image to Pdf 6 years 9 months ago #12560

  • rudson
  • rudson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Add image to Pdf 6 years 9 months ago #12561

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
page.AddAnnotBitmap(img, rect);
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

Please Log in or Create an account to join the conversation.

Add image to Pdf 6 years 9 months ago #12562

  • rudson
  • rudson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Last edit: by rudson.

Add image to Pdf 6 years 9 months ago #12563

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
It seems you are using an old version, currently the available APIs are:
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.
The following user(s) said Thank You: rudson

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum