WPF to PDF
问题 I have a WPF application and I want to be able to save the output of the application to a PDF document, the item I want to save can be a Visual a Drawing or a FixedDocument (I can create it as any of those options, and it's easy to convert between them). Is there any library that can convert directly from WPF to PDF (without writing code to walk the visual tree and recreate it using PDF primitives). 回答1: If you got your WPF visual tree rendered in to XPS then try this XPS to PDF converter