Am 29.07.2021 um 22:09 schrieb Alexander Slonim:
And all I do is
         document.save(tempFile);
         document.close();

I did just that, with 2.0.24, without using your project (but I downloaded your chicken.pdf file).

        PDDocument doc = PDDocument.load(new File("chicken.pdf"));
        doc.save(new File("chicken-saved.pdf"));
        doc.close();

Works fine, file can be opened with Adobe Reader. Here's the file:

http://www.filedropper.com/chicken-saved

Tilman


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to