Add image to Pdf - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1
  • 2

TOPIC: Add image to Pdf

Add image to Pdf 1 year 4 months ago #12556

  • rudson
  • rudson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 1 year 4 months ago #12557

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70

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

Add image to Pdf 1 year 4 months ago #12560

  • rudson
  • rudson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 1 year 4 months ago #12561

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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 1 year 4 months ago #12562

  • rudson
  • rudson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 1 year 4 months ago #12563

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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