Ian Boyd
Ian Boyd

Reputation: 256711

View XPS with XPS Document API?

How can i view an XPS using the (native Windows 7) XPS Document API?

Given an XPS Object Model Package object (IXpsOMPackage), how can i render it to a bitmap or device context?


In the way a metafile can be "played" onto a device context, how can i render an XPS?

Upvotes: 0

Views: 803

Answers (1)

mloar
mloar

Reputation: 1554

There is not a general-purpose native API for rendering XPS documents included in Windows.

You can use the XPS OM Thumbnail Generator to render to a PNG or JPEG, but the image size is limited to 300x300 pixels.

Upvotes: 1

Related Questions