FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2005
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Convert PCL to PDF

    I have several PCL file that i like to convert to PDF,
    I found this thread : http://forums.fedoraforum.org/showthread.php?t=88464

    @mickza suggested to use Ghostscript GhostPCL for this matter,

    I downloaded the file: http://mirror.cs.wisc.edu/pub/mirror...l-8.71.tar.bz2
    and it's say in the README file that i only need to run make to build it

    but as i run make , i get a lot of error and exit code

    Code:
    make[2]: *** [obj/gdevx.o] Error 1
    make[2]: Leaving directory `/home/auser/Downloads/ghostpdl-8.71/main'
    make[1]: *** [pdl-product] Error 2
    make[1]: Leaving directory `/home/auser/Downloads/ghostpdl-8.71/main'
    make: *** [pcl] Error 2
    can any one help me with this ?
    Last edited by TheIceMan; 1st July 2010 at 12:46 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Portland USA left coast
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Convert PCL to PDF

    Quote Originally Posted by TheIceMan
    I have several PCL file that i like to convert to PDF
    I am not quite sure what you mean by PCL files. Were they files created by printing to file using a PCL printer driver? If so, rename the extension from .pcl to .ps and then open them in Okular. From Okular you can save as PDF. Okular is in the Fedora repositories, so it does not require compiling.
    I like things that start with "lin*," so I use Linux and my major is linguistics.

  3. #3
    Join Date
    Jul 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Convert PCL to PDF

    I had the same problem. I found that there were some header files missing when I tried to run the make. I installed the mesa-libGL-devel, mesa-libGLU-devel, mesa-libGLUw-devel, mesa-libOSMesa and libX11-devel packages, and I was able to make GhostPCL. GhostPCL works quite well.

    I'm sure I have some overkill by installing all of the Mesa development libraries, but I wasn't sure which packages contained the the header files I was missing (for example, intrinsic.h)

  4. #4
    Join Date
    Jul 2005
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Convert PCL to PDF

    Quote Originally Posted by JohnJasonJordan
    I am not quite sure what you mean by PCL files. Were they files created by printing to file using a PCL printer driver? If so, rename the extension from .pcl to .ps and then open them in Okular. From Okular you can save as PDF. Okular is in the Fedora repositories, so it does not require compiling.
    I have the files from the Printer Spooler

    Code:
    % file test
    test: HP Printer Job Language data
    Even so i tried ps2pdf on the files and got a error message

    Code:
    % ps2pdf test2.pcl
    Error: /syntaxerror in -file-
    Operand stack:
    
    Execution stack:
       %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
    Dictionary stack:
       --dict:1155/1684(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
    Current allocation mode is local
    Current file position is 892
    GPL Ghostscript 8.71: Unrecoverable error, exit code 1


    ---------- Post added at 09:57 AM CDT ---------- Previous post was at 09:50 AM CDT ----------

    WOHOOOOOO.... thanks @MAmundson
    as you said ....
    Code:
    yum install mesa-libGL-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libOSMesa  libX11-deve
    did the trick

    thanks again

  5. #5
    Join Date
    Jul 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Convert PCL to PDF

    You're welcome. I didn't realize that GhostPCL existed. I also have some PCLs that I now can process. Thanks for the post.

  6. #6
    Join Date
    Jul 2005
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Convert PCL to PDF

    now every time i have print JOB stucked on some printer all i have to do is, to change it's port IP to my machin ip, and run this script.

    then on the windows machine i restart the print job and restore all my print jobs

    Code:
    NAME=0;
    while true; do
            echo "Writing to file: /tmp/print_spool_job_$NAME.pcl"
            nc -l 9100 > /tmp/print_spool_job_$NAME.pcl
            let NAME=$NAME+1
            pcl6 -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=/tmp/$NAME.pdf /tmp/$NAME.pcl &
    done

Similar Threads

  1. Convert .flv to .avi
    By mzainal in forum Using Fedora
    Replies: 4
    Last Post: 3rd May 2008, 07:26 AM
  2. How to convert rm to avi?
    By LatinHacker in forum Using Fedora
    Replies: 9
    Last Post: 17th April 2008, 02:29 AM
  3. convert .rm to avi or mpg???
    By tajidinabd in forum Using Fedora
    Replies: 1
    Last Post: 23rd February 2006, 07:49 AM
  4. My first convert
    By themadscientist in forum Wibble
    Replies: 19
    Last Post: 15th April 2005, 09:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •