When GSview runs a PDF File, it shows the total page count. I searched in the documentation of Ghostscript but could not found anything how to get the count via api or else. Need your help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried different ways to get the page count from the pdf file directly, but its not reliably. I looked in the PDF spec how to get it but i was not succesful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When GSview runs a PDF File, it shows the total page count. I searched in the documentation of Ghostscript but could not found anything how to get the count via api or else. Need your help!
You are probably best off looking at the PDF spec. As far as I remember there's a data structure in the PDF file that gives you this.
I tried different ways to get the page count from the pdf file directly, but its not reliably. I looked in the PDF spec how to get it but i was not succesful.
Have you tried looking at the source code for GsView?