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

前端 未结 9 960
一整个雨季
一整个雨季 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条回答
  •  旧时难觅i
    2020-12-30 18:18

    Dane-Prairie Systems http://www.win2pdf.com/ seems to capture the "print to file" string from the GDI calls and will create your PDF whereever you spec. Here's a quote from the manual:

    Set the lpszOutput field of the DOCINFO structure to the fully qualified path name of the file, and then pass the DOCINFO structure to the Win32 StartDoc function.

    Peter

提交回复
热议问题