logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
stan Posted: Tuesday, February 26, 2019 9:38:34 AM(UTC)
 
Sorry for the long time between replies. I figured out the issue. I was flipping the coordinate system and the conversion from inches to pixels. Thanks for the help
Paul Rayman Posted: Friday, February 22, 2019 6:28:54 PM(UTC)
 
Could you please provide a PDF document and a screenshot which indicates where exactly the barcode should be placed
stan Posted: Friday, February 22, 2019 11:48:07 AM(UTC)
 
Additionally does Pdfium have a native way to handle barcode generation and insertion to Pdfs?
stan Posted: Friday, February 22, 2019 8:27:34 AM(UTC)
 
Hi,

I have a barcode image that I need to insert into a field / control on a pdf. I have a PdfBitmap object with the barcode.
Code:

 FS_RECTF FieldRect = barCodeField.Controls[0].BoundRect;
 PdfBitmap imageMap = PdfBitmap.FromFile(@"C:\image.png");
 PdfImageObject imageObject = PdfImageObject.Create(Document, imageMap, 0, 0);
 imageObject.Matrix = new FS_MATRIX(FieldRect.Width, 0, 0, FieldRect.Height, FieldRect.left, FieldRect.bottom);
 


The code above works okay with getting the image onto the pdf. The problem is the location is off a little. I need it to be exactly where the control / field is.

Thank You