You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/11/23 17:24:58 UTC
[jira] [Comment Edited] (PDFBOX-3587) Flatten not working on
attached pdf form
[ https://issues.apache.org/jira/browse/PDFBOX-3587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15690740#comment-15690740 ]
Tilman Hausherr edited comment on PDFBOX-3587 at 11/23/16 5:23 PM:
-------------------------------------------------------------------
Except the first one, all the flattening XObject forms don't have a cm command:
{code}
q
/Form2 Do
Q
{code}
Making {{PDAcroForm.isNeedsTransformation()}} returning true fixes the problem.
There's also a problem (before flattening) with the appearance stream of the yellow field "Zakazka", near the text "Reference / Vaše reference", the content is too low.
was (Author: tilman):
Except the first one, all the flattening XObject forms don't have a cm command:
{code}
q
/Form2 Do
Q
{code}
Making {{PDAcroForm.isNeedsTransformation()}} returning true fixes the problem.
There's also a problem with the appearance stream of the yellow field "Zakazka", near the text "Reference / Vaše reference", the content is too low.
> 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
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org