Count pages in PCL with GhostPDL 9.x

1.3k views Asked by At

I used to Count pages in a pcl file using the GhostPDL (pcl6.exe) in Version 8.71.

pcl6.exe -dNOPAUSE -sDEVICE=nullpage -g10x10 -C file.prn

which produced a

%%PageCount: 10

for instance. Now I updated to 9.10 Version and found that my usual code did not work anymore. The command line Switch "-C" is gone.

I searched the documentation but it brought me nowwhere close to a solution. So it does not seems a very good approach to convert PCL to PDF and then count the PDF pages with GhostScript.

Any suggestions?

1

There are 1 answers

1
KenS On

Why is converting to a PDF and then using pdfinfo not a good solution ?