4

Is there a way of saving the content of flowdocument control in .pdf and .doc format not just XPS?

Not a 3rd party control

xscape
  • 3,318
  • 9
  • 45
  • 86

2 Answers2

2

Disclaimer: I am author of XamlToPDF Library, however it is free for commercial as well as non commercial use.

http://xamltopdf.codeplex.com/

It saves Flow document to PDF with images, tables etc.

Akash Kava
  • 39,066
  • 20
  • 121
  • 167
  • XamlPdfWriter seems to take the FlowDocument as a string to generate the PDF. How can I convert a FlowDocument object to it's xml string representation? or is there a way to pass the FlowDocument directly? – solarc Jun 22 '16 at 04:53
  • Answer to myself: `System.Windows.Markup.XamlWriter.Save` does the trick. – solarc Jun 22 '16 at 05:23
-2

.DOC / .DOCX was achieved using Open XML SDK 2.0 for Microsoft Office

.PDF was achieved by converting .DOC to PDF

Community
  • 1
  • 1
xscape
  • 3,318
  • 9
  • 45
  • 86