Q: I want to start use PDFNet SDK, but I have one question.
Can I use PDFNet SDK to convert from PDF, Word, HTML to XML (actually
XPS), but I want to work with streams.
Also does PDFTron support working with XPS object model?I have rich UI
and I need create lazy loading for pages of XPS document.
Can you please send me samples if it possible.
A: You can use PDFNet SDK 'Convert Add-On' to convert from PDF, image
formats, Word, RTF, text, HTML, and other formats to XPS (or SVG which
is also XML based).
To convert to XPS you would use pdftron.PDF.Convert.ToXps() method as
shown in Convert sample project:
Please note that sample show many other types of conversions (such as
XPS/Office to PDF etc) so you may need to trim down the sample code
for your application.
In case of XPS output the data is always written to a disk, however
you could write to a temp file, load the file in memory, then delete
Does this SDK support working with XPS object model?
I have rich UI and I need create lazy loading for pages of XPS document.
If you are developing on Windows you can either use WPF or XPS API
which is now standard part of Windows (and .NET Framework). PDFNet
Convert Add-on offers a direct conversion bridge between PDF and XPS,
as well as import/conversion from Office, and any other printable
I guess you could open an XPS file in PDFViewCtrl using
‘pdftron.PDF.Convert.FromXPS’ to add XPS viewing support to your
product, but you could also use WPF directly. If your product is cross
platfrom you can use this functionlaity to add XPS viewing (and
potentially editing) support on Linux, Mac, and other non-Windows