Re: GS 7.05 / PDF & pages count
"Russell Lang" <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.bugs |
|---|---|
| Organization | Ghostgum Software Pty Ltd |
| Message-ID | <WpF%[email protected]> |
"Pascal Chapuis" <[email protected]> wrote in message news:[email protected]... > Hi, > > I'm using GS with delphi to convert PS to PDF with gsapi_init_with_args > fonction. > I was wondering how to get the pages count with GS 7.05 and if it's really > "realistic". > > Does PDF GetNumPages is always the same after translating PS to PDF ? If you have PostScript, the only reliable way to count pages is to interpret it. If you have PDF, the number of pages is given in the Pages object. When you convert PS to PDF, the number of pages shouldn't change (assuming you told it to convert all pages).