I need to print a document on Windows and record a searchable PDF in a remote database.
Presently, I can print to a remote CUPS server which is modified to save the PDF to a database. But every Windows printer driver I've used makes the document non-searchable (I can test this by printing to a file with the driver, whether it's PostScript or Print to PDF).
I've been thinking that the next step is to write a driver or driver plug-in which will preserve the searchability of a document. This means writing code that converts from an EMF
file to RAW
, described here https://learn.microsoft.com/en-us/windows-hardware/drivers/print/introduction-to-print-processors.
Writing a Windows Printer Driver would suggest that I could do this with a simple UI plugin.
Is there an easier way to go about this? Would love a second (or third, or fourth) opinion.