In the webservice test TestDownload.java I modified the method testDownloadDocument to display the number of pages for a particular PDF file that I uploaded. It returns zero as the number of pages.
Here is an extract of the code to display the number of pages:
long docId = 3276800;
WSDocument mydoc = docc.getDocument(sid, docId);
System.out.println("Pages: " + mydoc.getPages());
Let me know if this is a known issues and whether this has not yet been implemented.
Thanks.
WSDocument does give the number of pages
Moderator: car031
Post
Re: WSDocument does give the number of pages
Hi,
during the indexing process, the system opens the PDF, extracts the content and simultaneously records the number of pages in the PDF.
If all goes well, that is, if the PDF is not corrupted and the libraries are able to operate on the content, the page field is updated.
Your code is fine, but the document have to be indexed by the Indexer task or manually
https://docs.logicaldoc.com/en/system/scheduled-tasks
during the indexing process, the system opens the PDF, extracts the content and simultaneously records the number of pages in the PDF.
If all goes well, that is, if the PDF is not corrupted and the libraries are able to operate on the content, the page field is updated.
Your code is fine, but the document have to be indexed by the Indexer task or manually
https://docs.logicaldoc.com/en/system/scheduled-tasks
Who is online
Users browsing this forum: No registered users and 28 guests