0

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 Answers1

0

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

KenS
  • 30,202
  • 3
  • 34
  • 51
  • 1
    The PCL maintainer says you can use -sDEVICE=bbox and count the number of output lines. – KenS Dec 17 '13 at 08:15