[
https://issues.apache.org/jira/browse/PDFBOX-3587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15692600#comment-15692600
]
Maruan Sahyoun commented on PDFBOX-3587:
----------------------------------------
{quote}
Making PDAcroForm.isNeedsTransformation() returning true fixes the problem.
{quote}
This was a very quick attempt to make the file at PDFBOX-3396 work but had the
effect that it dealt only with the special case (Others popped up later in
time). So in most cases this call shall return true but not for ones where
there is a transformation further down in the XObject. The current code also
misuses to scale XObjects in some cases. I can take that and also handle
PDFBOX-3396 but it will be start of next week until I can work on it.
For testing - as the rendering of such files is OK - what we can do is compare
the rendering of the not flattened form with the rendering of the flattened
form.
> Flatten not working on attached pdf form
> ----------------------------------------
>
> Key: PDFBOX-3587
> URL: https://issues.apache.org/jira/browse/PDFBOX-3587
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.3
> Reporter: rumburak
> Fix For: 2.0.4, 2.1.0
>
> Attachments: OpenOfficeForm.pdf, OpenOfficeForm_filled.pdf,
> OpenOfficeForm_filled_flattened.pdf,
> OpenOfficeForm_filled_flattened_workaround.pdf, flattenissue.zip
>
>
> Please see attached FlattenIssue.java. This code populates form fields in the
> OpenOfficeForm.pdf form and then it flattens the form. However the output
> OpenOfficeForm_filled_flattened.pdf is not correct. The values of the fields
> are incorrectly moved in left down corner.
> I have found a way how to workaround the issue please see
> FlattenIssueWorkaround.java which generates correct
> OpenOfficeForm_filled_flattened_workaround.pdf
> Attaching whole eclipse java project
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]