print wpf window to pdf file

后端 未结 2 688
梦如初夏
梦如初夏 2021-01-16 01:24

I need to build a pdf file from an wpf window. that window contains a canvas with some draw and some textboxes and labels whith data.

a friend told me to use crysta

2条回答
  •  一整个雨季
    2021-01-16 01:50

    I hope this library helps you.

    PDFsharp
    is a .NET library for processing PDF file. You create PDF pages using drawing routines known from GDI+. Almost anything that can be done with GDI+ will also work with PDFsharp. Only basic text layout is supported by PDFsharp, and page breaks are not created automatically. The same drawing routines can be used for screen, PDF, or meta files.

    http://www.pdfsharp.net/MainPage.ashx

    PDFsharp is published under the MIT License.

    • PDFsharp is Open Source.
    • You can copy, modify and integrate the source code of PDFsharp in your application without restrictions at all.
    • This also applies to commercial products (both open source and closed source).

    ok, its for gdi+, but perhaps it is enough.

提交回复
热议问题