[ https://issues.apache.org/jira/browse/PDFBOX-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14527971#comment-14527971 ]
Maruan Sahyoun commented on PDFBOX-2333: ---------------------------------------- Thanks for looking into it. The plan was to remove AppearancePrimitivesComposer at some time and combine it with PDPageContentStream (or a super class) anyway. To your question about setting the font. It's not necessary to do it explicitly with setFont() as the operator is part of the default appearance string which is written to the appearance stream prior to doing text output. I have to look into the details of your changes a little more as with these the content no longer appears without clicking into the field. > Overhaul the apperance generation for PDF forms > ----------------------------------------------- > > Key: PDFBOX-2333 > URL: https://issues.apache.org/jira/browse/PDFBOX-2333 > Project: PDFBox > Issue Type: Improvement > Components: AcroForm > Affects Versions: 2.0.0 > Reporter: Maruan Sahyoun > Assignee: Maruan Sahyoun > Priority: Critical > Fix For: 2.0.0 > > Attachments: AcroForms-SimpleTextFields.1.8.7.pdf, > AcroForms-SimpleTextFields.1.8.7.png, AcroForms-SimpleTextFields.pdf, > AlignmentTests-post1633495.pdf, AlignmentTests-pre1633495.pdf, > MultilineTests-prePatch.pdf > > > The appearance handling for forms in 1.x is limited and does not reflect all > settings possible for form fields. In addition the current code is not very > modular and does not follow the box model used for form fields. > Unfortunately only the basics of form handling are defined in the PDF spec. > The details like padding of boxes, text placement etc. have to be determined > by looking at how Adobe forms are generated. > Update: The file from PDFBOX-2310 has bad rendering which might be related? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org