Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8543653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:21:25+00:00 2026-06-11T12:21:25+00:00

I have a PDF , which I want to convert to PCL I convert

  • 0

I have a PDF, which I want to convert to PCL

I convert PDF to PCL using the following command:
(gs 8.70)

    gswin32c.exe -q -dNOPAUSE -dBATCH \
       -sDEVICE=ljetplus -dDuplex=false -dTumble=false \
       -sPAPERSIZE=a4 -sOutputFile="d:\doc1.pcl" \
       -f"d:\doc1.pdf" -c -quit

When I view or print the output PCL, it is cropped. I would expect the output to start right at the edge of the paper (at least in the viewer).

Is there any to way get the whole output without moving the contents of the page away from the paper edge?

I tried the -dPDFFitpage option which works, but results in a scaled output.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:21:26+00:00Added an answer on June 11, 2026 at 12:21 pm

    You are using -sPAPERSIZE=a4. This causes the PCL to render for A4 sized media.

    Very likely, your input PDF is made for a non-A4 size. That leaves you with 3 options:

    1. …you either use that exact page size for the PCL too (which your printer possibly cannot handle),

    2. …or you have to add -dPDFFitPage (as you tried, but didn’t like),

    3. …or you skip the -sPAPERSIZE=... parameter altogether (which most likely will automatically use the same as size as the PDF, and which your printer possibly cannot handle…)


    Update 1:

    In case ljetplus is not a hard requirement for your requested PCL format variant, you could try this:

    gs  -sDEVICE=pxlmono   -o pxlmono.pcl   a4-fo.pdf
    gs  -sDEVICE=pxlcolor  -o pxlcolor.pcl  a4-fo.pdf
    

    Update 2:

    I can confirm now that even the most recent version of Ghostscript (v9.06) cannot handle non-Letter page sizes for ljetplus output.

    I’d regard this as a bug… but it could well be that it won’t be fixed, even if reported at the GS bug tracker. However, the least that can be expected is that it will get documented as a known limitation for ljetplus output…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PDF which has an image on it (a logo) I want
I have a PDF which is searchable and I need to convert it into
I have the following code which will generate two pdf files containing plots to
I have a PDF file which I want to verify whether the links in
I have a thesis in which I want to group some chapters together, using
I want to convert local html file on iPhone to PDF document. I have
I have a PDF document in my app which I want to allow users
I have a lot of PDF documents that I want to convert to PNG,
I have around 10 System.Drawing.Bitmap elements, which I want to dump to PDF. When
I have a pdf reader app which render the pdf file. It works fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.