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

  • Home
  • SEARCH
  • 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 964801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:53:22+00:00 2026-05-16T01:53:22+00:00

I have a program that generates a PDF as output. If I send this

  • 0

I have a program that generates a PDF as output. If I send this file to a printer using the Adobe viewer, it prints exactly as wanted. In particular, the application is printing labels and there’s a requirement that every last pixel on the page is used, i.e. no margins whatsoever.

I’d like to try and automate this process. GhostScript seemed a logical choice. I used the command lines

gs -dBATCH -dNOPAUSE -sDEVICE=psmono -sOutputFile=A4_300.xxx -sPAPERSIZE=a4 A4_Print.pdf

… or alternatively

gs -dBATCH -dNOPAUSE -sDEVICE=ljetplus -sOutputFile=A4_300.xxx -sPAPERSIZE=a4 A4_Print.pdf

I can send the output file, A4_300.xxx, to the printer via LPR and it almost prints well, but there’s about 6-8 mm missing on all sides, i.e. there’s a margin being enforced, and the text that should be printing in that area is actually being cut off.

Paper size should be a4, and that much is working correctly. But how can I arrange for the output to fill the whole page?

The output device is “some kind of HP laser printer”; I haven’t seen the physical device. A similar printer I tested with was able to process output both for “psmono” (that produced PostScript) and “ljetplus” (binary, but printable).

Any advice, please?

  • 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-05-16T01:53:23+00:00Added an answer on May 16, 2026 at 1:53 am

    First of all: are you sure that your printer is physically able to print edge-to-edge? Which printer model is it?

    It may well be that the printer itself enforces the “missing 6-8 mm on all sides”. Since you see the margin “area actually being cut off”, it means the printer indeed receives the complete image, but it crops the image to what appears as *ImageableArea keywords in PostScript printer PPDs (PS Printer Description files).

    If your printer supports edge-to-edge printing indeed, then you may need to enable it as a default…

    • …by some semi-secret setting in the front panel menu (if your printer has s.th. like that), or…
    • …by accessing the web-based printer configuration panel from your computer’s browser (should your printer support that), or…
    • …by logging into the printer via telnet, rsh, ssh or msh (depending on your printer to allow this).

    The actual procedure to set this depends on your printer model. It should be described in the printer manual.

    If you are unlucky, the device simply doesn’t support borderless printing. Then buy or find a model that does what you want 😉


    Update: I had missed your statement “If I send this file to a printer using the Adobe viewer, it prints exactly as wanted.” From this I conclude that your printer must indeed be supporting borderless printing.

    If your LPR client uses any form of PPD (as is the case if you print via CUPS, f.e.), then check out my hints about modifying PPDs (which also works for Windows systems) here:

    • “What lpr arguments do I need to print a 1400×800 pixel image on a 4×6 label?”
    • “What’s the easiest way to add custom page sizes to a PPD?”

    Most likely you do not need to finetune your Ghostscript output; it is fine as the cropped printouts show.

    Most likely you need to tweak your LPR client so that its “driver” does not destroy what you want to send to the printer.

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

Sidebar

Ask A Question

Stats

  • Questions 485k
  • Answers 485k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think you were closer with your first attempt but… May 16, 2026 at 7:45 am
  • Editorial Team
    Editorial Team added an answer If you are asking how comparing dictionaries works, it is… May 16, 2026 at 7:45 am
  • Editorial Team
    Editorial Team added an answer Access your generic list's Count Property on databinding. Where/why do… May 16, 2026 at 7:45 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.