Convert using PCL6

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Volker
Posts: 2
Joined: 2011-09-06T06:05:57-07:00
Authentication code: 8675308

Convert using PCL6

Post by Volker »

I am trying to convert a PCL File into a tif document using ImageMagick-6.7.2-2-Q8-windows-static on a Windows 7 32-bit machine. I installed GhostPCL 9.04 in a separate directory and renamed the .exe to PCL6.exe. Both the ImageMagick directory and the GhostPCL directory are in the executables PATH variable and work fine if used standalone. The ImageMagick delegates.xml file is unmodified.

When I try to convert a PCL File using a command line like "pcl6 -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=output.tif input.pcl" everything works fine.

When I try to do the same with ImageMagick using a command line like "convert input.pcl output.tif" I get an error:

C:\Test>convert -verbose input.pcl output_conv.tif
"pcl6.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792 "-sOutputFile=C:/Users/XROMBA~
1.KDV/AppData/Local/Temp/magick-o3qNulhE" "C:/Users/XROMBA~1.KDV/AppData/Local/Temp/magick-W8MHAkrN"
Unrecognized switch:
Usage: pcl6.exe [option* file]+...
Options: -dNOPAUSE -E[#] -h -L<PCL|PCLXL> -K<maxK> -l<PCL5C|PCL5E|RTL> -Z...
-sDEVICE=<dev> -g<W>x<H> -r<X>[x<Y>] -d{First|Last}Page=<#>
-sOutputFile=<file> (-s<option>=<string> | -d<option>[=<value>])*
-J<PJL commands>
Version: 9.04
Build date: Fri Aug 05 13:15:09 2011
Devices: display ljet4 wtsimdi bmpmono bmp16m bmp32b bitcmyk bitrgb
bit pkmraw ppmraw pgmraw pbmraw pcx16 pcx256 pcx24b cljet5
pamcmyk32 pamcmyk4 pcxmono pcxcmyk pcxgray pxlmono pxlcolor tiffcrle tiffg3
tiffg32d tiffg4 tifflzw tiffpack tiffgray tiffscaled tiff12nc tiff24nc tiffscaled8
tiffscaled24 png16m pngmono pngmonod jpeg pdfwrite pswrite ps2write plan
planm plang planc plank wtscmyk nullpage
convert: no decode delegate for this image format `C:/Users/XROMBA~1.KDV/AppData/Local/Temp/magick-o3qNulhE' @ error/constitute.c/ReadImage/532.
convert: PCL delegate failed `input.pcl' @ error/pcl.c/ReadPCLImage/365.
convert: missing an image filename `output_conv.tif' @ error/convert.c/ConvertImageCommand/3015.

As far as I can tell there are two errors/messages:
1) pcl6.exe is being called with an unrecognized switch directive
2) a temporary file is generated and can not be processed by ImageMagick's convert.

@1) GhostPCL 9.04 does not have a device named pnmraw. Should the delegates.xml be modified to include a different device?
@2) The pathname for the temporary files seems to be incomplete. It should be 'C:/Users/XROMBAC.KDVZ-PRO/AppData/Local/...'.

Can somebody tell me what I'm doing wrong?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert using PCL6

Post by magick »

Edit the delegate.xml configuration file and change pnmraw to ppmraw for the PCL device and remove the -q option. We'll get these patches into the next point release of ImageMagick.
Volker
Posts: 2
Joined: 2011-09-06T06:05:57-07:00
Authentication code: 8675308

Re: Convert using PCL6

Post by Volker »

Works fine - problem solved.

Thanks for your quick response ... Volker
Post Reply