You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Ruhong Cai <Ru...@smartbear.com> on 2015/09/01 23:34:56 UTC

PDFBox shows the wrong page number

 

Hi,

The following code could prove that there is a bug in getting the number of the pages 

PDDocument pdf1 = PDDocument.load("C:\\ms12_TIM.pdf");

int count = pdf1.getNumberOfPages();


count return “0” , the file has a page.

Thanks!


Ruhong