About Xhtml to Tiff

Version 1.0

Author: Tom Allen

Initial proof-of-concept prototype. Source code is disorganized and not in MVVM pattern, though the UI is in WPF. The XHTML-to-XAML conversion fails on a number of common input formats.

Working files and output files are saved in directory C:\Temp.

Acknowledgements

Code

Mattraffel XPS2Image
Feng Yuan Convert XAML Flow Document to XPS with Style (multiple page, page size, header, margin)
David Waddleton Geek Speak - Converting HTML to XAML
Jo0815 XPS to GDI conversion (Jo0815’s code snippet)
MSDN TiffBitmapEncoder
WPF SDK writers XAML FlowDocument to HTML Conversion Prototype
and editors WPFSamples/DocServices/DocumentSerialize
  SDK Viewer

References

Wouter van Vugt Open XML Package Explorer
Jan rep blog WPF multipage reports
Marc Nijhof Saving a WPF Xaml FlowDocument to XPS with working DataBinding
www.html-to-pdf.net XPSSection Class (XPSLibrary, AddFooter)
Serialization WPF Document Serialization and Storage
(MSDN) WPF Document Serialization Sample
  View and Generate XPS