I'm using RedMon(Redirection Port Monitor), HP Universal Driver PS and GhostScript to intercept document printing.
However, for the following scenario:
File PDF -> HP Universal Driver PS -> RedMon -> PostScript File** -> GhostScript create file printed.pdf*.
* Can not extract text from PDF file: gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=txtwrite -sOutputFile=output.txt printed.pdf
** The PostScript file is created as compacted and can not extract the text.
Question is?
Can I create a PostScript file without compacting when a PDF is sent to the printer?
Observation: Printed.pdf -> Image(TIFF) -> Tesseract(OCR) -> Text File... Works! But it is slow.