Send raw data to virtual PDF printer

1.2k Views Asked by At

I found this class in microsoft suport, explaining how to send a raw data to printer... but, when I try to use this to print in virtual PDF printer, not work. I tested wth foxit pdf printer and pdf creator.. I made some changes in the code, as authorizing print to file and etc, but nothing worked.

How can it be made ​​to work, sending the RawData for virtual printer?

1

There are 1 best solutions below

1
On

You need to send raw data to the printer in the printer's native formatting language such as PCL or Postscript. Many virtual printers do not have an underlying formatting language, so raw printing won't work. Some virtual printers such as "PDF Creator" uses Ghostcript, which supports Postscript. Sending raw Postscript to "PDF Creator" may work.