Print a file (pdf) to a printer with PS driver, grab PS-file and convert to searchable pdf with ghostscript -


when print pdf-file ps-driver , convert ps-file searchable pdf ghostscript (pdfwrite device) wrong final pdf file. becomes corrupt. in cases, space character disappears, , in other cases text width becomes large text overlap text.

the settings gs -dnopause -dbatch -sdevice=pdfwrite -dembedallfonts=true -dsubsetfonts=false -soutputfile=output.pdf input.ps

i wondering if ghostscript cant produce output when input file pdf. if print word-document works fine!

are there other solutions using xps-driver , convert xps file searchable pdf instead? there solutions out there can this?

i use gs 9.07.

best regards joe

why going through step of printing pdf file postscript file? ghostscript capable of accepting pdf file input.

this adds more confusion, won't add useful.

its not possible problem 'might' without seeing original pdf file , postscript file produced driver. guess whatever application processing pdf hasn't embedded font, or postscript driver hasn't been able convert font suitable postscript, resulting in font being missing in output, , pdfwrite device having substitute 'something else' missing font.

ghostscript (more accurately pdfwrite device) capable of producing decent pdf file when input pdf, input isn't pdf, postscript!

to honest, if original pdf file isn't 'searchable' unlikely pdf file produced pdfwrite either, no matter whether use original pdf or mangle postscript instead.

the usual reasons why pdf file not 'searchable' because there no tounicode information , font encoded custom encoding , deos not use standard glyph names. if case there nothing can pdf file except ocr it.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -