[ 
https://issues.apache.org/jira/browse/PDFBOX-5343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17461013#comment-17461013
 ] 

Tilman Hausherr commented on PDFBOX-5343:
-----------------------------------------

There is one difference to the code in our examples. We set the bbox to 
(height, width), i.e. (0,0) origin, and the image is also positioned from 
(0,0). You set the position always. We set the positioning is done through the 
widget .setRectangle(). See the CreateCheckBox.java and 
CreateVisibleSignature2.java examples.

I'm not saying your code is bad, but maybe it's the cause that the flattening 
fails. So try generating your PDF differently.

> PdfBox images Alignation Issue after using flatten function
> -----------------------------------------------------------
>
>                 Key: PDFBOX-5343
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5343
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Mohamed Sameem
>            Priority: Major
>              Labels: PDFBox, acroform, bug, flatten, pdf
>         Attachments: Screenshot_2021-12-15-22-49-00-277_com.adobe.reader.jpg, 
> Screenshot_2021-12-15-22-50-18-641_com.adobe.reader.jpg, bug.pdf, 
> irregular.png, irregular2.png
>
>
> Using flatten function of pdfbox changes the position of images from the 
> required box to be filled.I would like to know if there is a fix for this. I 
> would like the pdfbox team to look into it.Images attached The images are 
> moving out of their respective position after using PDAcroForm.flatten() 
> Images attached
> https://stackoverflow.com/questions/70361091/pdfbox-images-alignation-issue-after-using-flatten-function



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to