Generating PDF files from .NET by using standard .NET GDI printing classes

前端 未结 9 962
一整个雨季
一整个雨季 2020-12-30 17:42

I\'m looking for a way to generate PDF files using the standard PrintDocument and Graphics (GDI) classes in .NET. As far as I know, the only way to do that is by printing to

9条回答
  •  甜味超标
    2020-12-30 18:08

    Unless the printer drivers that you are using support this manually (of which none exist that I know of), you would have to write your own printer driver which you would be able to pass information to (such as the filename) during the print operation.

    The drawbacks to this are the fact you would have to implement a printer driver, as well as the fact that it would have to be unmanaged code (you can't write drivers in .NET).

提交回复
热议问题