pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilija Pavlic <ilija.pav...@gmail.com>
Subject Re: PDocument.load corrupts file
Date Thu, 16 Feb 2012 00:13:07 GMT
I had success saving encrypted documents after decrypting and calling
setter for removing all security.

BR,
Ilija.

On Wed, Feb 15, 2012 at 10:48 PM, Steve Hannah <steve@weblite.ca> wrote:
> This PDF is encrypted.  Likely that is the reason for the blank output.  I
> generally get the same results when I try to do anything with encrypted
> PDFs in PDF Box.  Not sure if there is any solution though.
>
> -Steve
>
> On Wed, Feb 15, 2012 at 1:30 PM, Joshua Nankin <jnankin@gmail.com> wrote:
>
>> I realize that attachments are probably not sent out.  The file can now be
>> found at http://joshnankin.com/in.pdf
>>
>> On Wed, Feb 15, 2012 at 3:28 PM, Joshua Nankin <jnankin@gmail.com> wrote:
>>
>> > I have a file (attached) that when loaded with PDocument.load and then
>> > saved to another location simply saves as a blank PDF.  The number of
>> pages
>> > is correct, but when opened in Acrobat, all the page names are corrupted
>> > and the pages are blank.
>> >
>> > Here's the code:
>> >
>> >         PDDocument doc = PDDocument.load("/home/jnankin/Desktop/in.pdf");
>> >         doc.save("/home/jnankin/Desktop/out.pdf");
>> >         doc.close();
>> >
>> > Please advise.
>> >
>>
>
>
>
> --
> Steve Hannah
> Web Lite Solutions Corp.

Mime
View raw message