pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilad Denneboom <gilad.denneb...@gmail.com>
Subject Re: PDFBox 1.8.1 thinks this PDF has 0 pages?
Date Sun, 26 May 2013 19:26:42 GMT
Most likely because this document is encrypted, and PDFBox respects that...
Try running it on a non-encrypted version of the file and see if that works
(or decrypt the file in your code, if you know the password).


On Sun, May 26, 2013 at 9:09 PM, Leonard Teo <leonard@ballistiq.com> wrote:

> Hi guys,
>
> I'm having an issue with a specific PDF and PDFBox 1.8.1.
>
> This is what I'm doing:
> List pages = doc.getDocumentCatalog().getAllPages();
> pages.size() will return 0
>
> Here is the PDF:
>
> https://dl.dropboxusercontent.com/u/1413139/Est_Limits_of_Civil_Government.pdf
>
> Full Source Code:
> https://gist.github.com/leonardteo/a1dec98bfd1cbe6b919d
>
> Do you guys know what is the issue with this specific PDF that would be
> causing PDFBox to think that it has 0 pages?
>
> Thanks,
>
> Leonard
>
>
>
>
> --
> Leonard Teo
> Ballistiq Digital, Inc.
> http://www.ballistiq.com
> 2001 University Street, Suite 1700
> Montreal, QC H3A 2A6
>
> Cell: 514 512 9873
> Skype: leonardteo
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message