Hello all
anyone knows how to know the number of pages of a document?
We have tried the method getPageCount() from the IDfSysObject but it just seems to return de pages of content that has the object...
Thank you
That is correct. The concept of pages for Content Server refers to actual content files. Only in special cases do they relate to actual pages (e.g. multiple single-page TIFF files).
The Content Server can't tell you how many pages there are because that would imply that it knows the internal structure of any possible content format. Furthermore, not every format has the concept of pages (e.g. audio, HTML, etc). So if you need to know the number of pages, you would have to do a customizsation.
Hicham
Hi Hicham
what kind of customization are you refering??
What hicham is trying to say is that since Documentum does NOT change the binary file of a document when it is imported into repository, it has no way to know how pages are defined. You would have to write a plug-in (aka customization) per each app (eg Word) to determine the number of pages for each document. If you are using DTS/ADTS and are converting documents into PDF files, I'm pretty sure there is a pdf library out on the internet that can return number of pages in the PDF file.
Hi Paul,
Without reading the binary data of the file you cannot get total pages of the document and every document has its own format structure. Like for reading PDF document you need separate api and for TIFF you need separate Api.
To add this support to get the total pages of the document you have to customize the import functionality of the WebTop application.
Paul, give some details about which formats you have in your work list then I will suggest some good Api.
Thanks,
Nitin Sengar
Hi Nitin
we are working with PDF. Nowadays we are using the itext-2.1.3.jar
Do you have some examples?