|
|
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
|
|
|
Could you please provide a PDF document and a screenshot which indicates where exactly the barcode should be placed
|
|
|
Additionally does Pdfium have a native way to handle barcode generation and insertion to Pdfs?
|
|
|
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
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close