title: Print a file (pdf) to a printer with PS driver, grab PS-file and convert to searchable pdf with ghostscript
body: <p>When I print a PDF-file with a PS-driver and then convert the PS-file to a searchable PDF with ghostscript (pdfwrite device) something is wrong with the final pdf file. It becomes corrupt.
  In some cases, the space character disappears, and in other cases the text width becomes too large so text overlap text.</p>
  
  <p>The settings for gs is -dNOPAUSE -dBatch -sDEVICE=pdfwrite -dEmbedAllFonts=true -dSubsetFonts=false -sOutputFile=output.pdf input.ps</p>
  
  <p>I am wondering if it is ghostscript that just cant produce a good output when the input file is a pdf.
  If I print a word-document everything works fine!</p>
  
  <p>Are there any other solutions like using a xps-driver and convert the xps file to a searchable pdf instead? are there any solutions out there that can do this?</p>
  
  <p>I use gs 9.07.</p>
  
  <p>Best regards
  Joe</p>