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 9119545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:25:13+00:00 2026-06-17T05:25:13+00:00

I am working on a web app (PHP) that is used to create books

  • 0

I am working on a web app (PHP) that is used to create books in both PDF and print form. Each book page is saved as an individual high resolution JPEG and inserted into a new PDF document created by TCPDF (http://www.tcpdf.org/). The last page has an additional watermark image (PNG, 2500×2000, 72dpi) inserted near the bottom.

All of that works fine, but I am running into trouble when I invoke Ghostscript to optimize the PDF using the following command. It handles entire PDF without error except that the watermark is missing.

gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=LowResOutput.pdf -dPDFSETTINGS=/screen -dCompatibilityLevel=1.4 HiResInput.pdf

I have confirmed that the watermark is displaying correctly in the unoptimized source file. If I change the quality settings (-dPDFSETTINGS) from /screen to /printer it produces a high resolution PDF that includes the watermark.

I’m not sure if I am missing a quality/output setting that is causing the watermark image to be excluded or what. If anyone has an idea of why this is happening I would greatly appreciate a response.

Thanks!

  • 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-17T05:25:14+00:00Added an answer on June 17, 2026 at 5:25 am

    What version of Ghostscript are you using ? How is the ‘watermark’ created ? (annotation, modification to the page content stream, something else ? Is it transparent ?)

    Don’t use the PDFSETTINGS without completely understanding the impact of all the individual settings, most likely is a colour conversion causing some change in the output but there could be other reasons. Broadly speaking I wouldn’t use the PDFSETTINGS switch at all, set up each switch individually.

    Finally, can you put a (small!) file of the type you are sending to Ghostscript somewhere public. Its almost impossible to make informed comment without seeing an example.

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

Sidebar

Related Questions

I'm working on a web app using PHP on Apache. $_SESSION variables are used
I am working with a CMS for a web app in PHP, that has
Background: I'm working on a single page web app that loads everything through AJAX
I am working on a web app that uses Extjs components, PHP, and MySQL.
I'm working on a PHP web app that calls R through curl and RApache.
We're making this web app in PHP and when working in the reports we
I'm working on a class-based php web app. I have some places where objects
I'm working on a PHP web app and I'm trying to use the MVC
i've been making web app's and working with various server side language like php,
I’m working on the web app where the main page contains two parts: the

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.