[
https://issues.apache.org/jira/browse/PDFBOX-2983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brian Schmoll updated PDFBOX-2983:
----------------------------------
Attachment: PdfStampingLogging.zip
I've done some debugging and found out that the change in original behaviour
occurred between PdfBox 1.8.7 and 1.8.8. In 1.8.7 these PDF documents would
fail to parse with the Non-Sequential Parser and so we'd never attempt to stamp
them, but starting in 1.8.8 the parser would succeed and then on stamping the
original information would be lost.
The attachment contains log files from my testing with different versions of
PdfBox as well as the output stamped files from the tests. The input files are
the original files I've previously uploaded.
Also, for PdfBox 1.8.9, I ran a test where I took the original PDF images and
used pdftk to correct the documents. Then I ran the images through the
stamping process. The output files were all as I would expect them to be with
the stamps as well as the original information, leading me to believe that
pdftk was able to correct any internal errors in the PDFs. The pdftk corrected
original images as well as the stamped results are contained within this zip
file as well.
> Corrupted PDF after adding text
> -------------------------------
>
> Key: PDFBOX-2983
> URL: https://issues.apache.org/jira/browse/PDFBOX-2983
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Affects Versions: 1.8.9, 1.8.10
> Reporter: Brian Schmoll
> Attachments: PdfDataLoss.zip, PdfStampingLogging.zip
>
>
> We have a web application which writes an official stamp to PDF documents
> after they have been approved. Recently some PDFs have become corrupted
> after the stamp is written to the document. The stamp appears on the
> document, but all other content is removed. Adobe Reader also displays a
> dialogue box indicating the document has been corrupted.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]