[
https://issues.apache.org/jira/browse/PDFBOX-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572272#comment-13572272
]
Andreas Lehmkühler commented on PDFBOX-1423:
--------------------------------------------
All text commands have to be within a textblock (BT/ET). Those textblocks must
not contain anything else but text commands. You don't have to close the stream
but to call the "endText" method before adding some non-text content.
Maybe the PDPageContentStream class should check such conditions to avoid those
malformed pdfs.
> "An error exists on this page. Acrobat may not display the page correctly."
> ---------------------------------------------------------------------------
>
> Key: PDFBOX-1423
> URL: https://issues.apache.org/jira/browse/PDFBOX-1423
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.6.0
> Environment: Windows 7, WebLogic 10.3.0 and a jsp
> Reporter: wentao
> Attachments: generate_pdf.pdf
>
>
> after generate the pdf. Open it within Adobe Reader X has no problem, but if
> print it, a window pops up with "An error exits on this page. Acrobat may not
> display the page correctly. Please contact the person who created the PDF
> document to correct the problem", printed result looks ok.
> It seems there is no such popup message on Adobe Reader 9.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira