Pdf pages start index 1

Hello, i’m guessing if there’s some particular reason why aspose pdf document pages starts from index 1 to pages count, differing from other aspose documents starting from 0 index to pages count (-1)

really no big deal (for my solution in case of pdf documents i’m incrementing requested index), just wondering…

Hi,


Thanks for contacting support.

In new Document Object Model (DOM) of Aspose.Pdf namespace, the page index is counted from 1 to n (total number of pages in PDF) and in legacy Document Object Model of Aspose.Pdf.Generator namespace, the page count is started from 0. In fact we had a feeling that counting the page index from 1 will be more convenient and helpful while PDF documentation creation and manipulation.

Nevertheless, I will check with development team about any particular reasons for this change.