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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:19:23+00:00 2026-06-01T12:19:23+00:00

I have a PDF which is searchable and I need to convert it into

  • 0

I have a PDF which is searchable and I need to convert it into a non-searchable one.

I tried using Ghostscript and change it to JPEG and then back to PDF which does the trick but the file size is way too large and not acceptable.

I tried using Ghostscript to convert the PDF to PS first and then PDF which does the trick as well but the quality is not good enough.

gswin32.exe -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite -r1000 -sOutputFile=out.ps in.pdf
gswin32.exe -q -dNOPAUSE -dBATCH -dSAFER -dDEVICEWIDTHPOINTS=596 -dDEVICEHEIGHTPOINTS=834 -dPDFSETTINGS=/ebook -sDEVICE=pdfwrite -sOutputFile=out.pdf out.ps

Is there a way to give a good quality to the PDF?

Alternatively is there an easier way to convert a searchable PDF to a non-searchable one?

  • 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-01T12:19:24+00:00Added an answer on June 1, 2026 at 12:19 pm

    You can use Ghostscript to achieve that. You need 2 steps:

    1. Convert the PDF to a PostScript file, which has all used fonts converted to outline shapes. The key here is the -dNOCACHE paramenter:

      gs -o somepdf.ps -dNOCACHE -sDEVICE=pswrite somepdf.pdf

    2. Convert the PS back to PDF (and, maybe delete the intermediate PS again):

      gs -o somepdf-with-outlines.pdf -sDEVICE=pdfwrite somepdf.ps
      rm somepdf.ps

    Note, that the resulting PDF will very likely be larger than the original one. (And, without additional command line parameters, all images in the original PDF will likely also be converted according to Ghostscript builtin defaults, unless you add more command line parameters to do otherwise. But the quality should be better than your own attempt to use Ghostscript…)


    Update

    Apparently, from version 9.15 (to be released during September/October 2014), Ghostscript will support a new command line parameter:

     -dNoOutputFonts
    

    which will cause the output devices pdfwrite, ps2write and eps2write “to ‘flatten’ glyphs into ‘basic’ marking operations (rather than writing fonts to the output)”.

    This means that the above two steps can be avoided, and the desired result be achieved with a single command:

     gs -o somepdf-with-outlines.pdf -dNoOutputFonts -sDEVICE=pdfwrite somepdf.pdf
    

    Caveats: I’ve tested this with a few input files using a self-compiled Ghostscript based on current Git sources. It worked flawlessly in each case.

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

Sidebar

Related Questions

I have several A4 PDF documents which I would like (two into one) glue
I have a PDF file, which contains data that we need to import into
simple thing which I need to do is, that I have a pdf document
I have a pdf which contains 'UniCNS-UCS2-H' font, I tried both pdfbox and pdfrenderer,
I have a project which needs to generate PDF documents. I am using iTextSharp.
I have one pdf file which is extract from ppt (power point presentation) and
In one of my GitHub repositories I have a .pdf file, which gets updated
I tried to convert a large number of pdf files to images using the
i need a HTML to pdf component,which can convert the html to pdf with
I have a PDF which has an image on it (a logo) I want

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.