Question: Do you have a command line option for pcltools.exe that will set the paper size in the created PDF file, it seems to be outputting Letter by default but I need A4.
Answer: VeryPDF PCL Converter Command line version can be used to covert PCL to A4 paper size PDF. In the following part, I will show details about the conversion.
Step 1. Install PCL Command Line Converter
- Download PCL Converter and then you will find there is an exe file in downloading folder. Please install it by double clicking thel exe file. Once installation finishes, please find the executable file in installation folder named pcltool. And you can also go to Start menu and find option PCL Converter. In the sub folder, there is an option of PCL Converter Command Line version.
- This software is Window application working both 32-bit and 64-bit, which either can be used as GUI version software or command line version software.
Step 2. Convertand specify paper size
Usage: pcltool [options] <pcl-file> [<pdf-file>]
- When you need to convert
pcltool.exe -pclcmd "\"-J@PJL SET PAPER=A3\"" C:\in.pcl C:\out.pdf
pcltool.exe -pclcmd "\"-J@PJL SET PAPER=A4\"" C:\in.pcl C:\out.pdf
pcltool.exe -pclcmd "\"-J@PJL SET PAPER=Ledger\"" C:\in.pcl C:\out.pdf
pcltool.exe -pclcmd "\"-J@PJL SET PAPER=Letter\"" C:\in.pcl C:\out.pdf
pcltool.exe -pclcmd "\"-J@PJL SET PAPER=A4\" \"-J@PJL SET DEFAULT ORIENTATION = LANDSCAPE\"" C:\in.pcl C:\out.pdf
and specify paper size, please refer to the following command line template.
By above command line, you can convert PCL to PDF and specify paper size as A3, A4, Ledger, letter. Please check more usage explanation on user manual of PCL Converter. And by this software, you can also specify output PDF orientation. Now let us check the conversion effect from the following snapshot.
There are more functions of this software, I can not list all of them. If you need to know more about this software, please visit its homepage or user menu.
Part of parameters:
Convert *.PCL and *.PXL files to PDF, PS, TIFF, JPEG, BMP, PCX, PXL etc. files Release Date: May 28 2012 Usage: pcltool [options] <pcl-file> [<pdf-file>] -width <int> : Set page width to image file -height <int> : Set page height to image file -xres <int> : Set X resolution to image file -yres <int> : Set Y resolution to image file -bitcount <int> : Set color depth for image conversion -rotate <int> : Rotate pages, 90, 180, 270 -view : View PDF file after creation -append <int> : -append 0: Overwrite if PDF file exists -append 1: Insert before first page if PDF file exists -append 2: Append to last page if PDF file exists -append 3: Rename filename if PDF file exists -producer <string> : Set 'producer' to PDF file -creator <string> : Set 'creator' to PDF file -subject <string> : Set 'subject' to PDF file -title <string> : Set 'title' to PDF file -author <string> : Set 'author' to PDF file