View XPS with XPS Document API? - xps

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?

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.

Related

embed pdf in html: difference between gview and simple iframe

in this video they recommend using an iframe that calls the GView (google viewer). Is it of any use? Can't you simply reference the pdf in the iframe? what's the benefit of adding the GView?
https://www.youtube.com/watch?v=visxQbQIySg
Most of browsers are expected to manipulate standard web extension such HTML,CSS,JS etc. however they may optionaly support non-web extension (as well as PDF,SWF etc.).
If you push a PDF directly to the browser and the browser does not support PDF extension the file will be downloaded and no defference if you push it inisde an iframe. When you use GView or other Document Viewers they convert the target file to HTML tags or other supported formats for all browsers (like canvas) and so you make sure that the file will be displayed on screen rather than being downloaded. Also they have extra tools like zooming, paging etc. that improves the user experience.

Open windows camera on file input html5

Using HTML5 and a standard input tag it is clear we can open the cmera app on any Android and IoS devices. But how on earth do we access the same on a Windows device.
I am not trying to stream the image and create a snapshot using a canvas, all I want to do is give a windows user the same 'Take Picture' option as every other device seems tto offer.
Many thanks for all comments in advance

iOS stream device camera video feed to local html page in wkwebview

I want to capture the video using device camera using native code and stream it to local html page in webview.
There is no information on how to stream to a local html page which is loaded in the WKWebView
AFAIK I couldn't find any way to achieve this and it seems impossible to achieve ?
Thanks !

Google Swiffy method can export in SVG shapes instead of Canvas?

I want to export swf into SVG animation.
This website already used swiffy and runtime generating svg shapes.
http://gardenestudio.com.br/1-ano/
But When I convert my swf file into html 5 using swiffy it exporting animation in Canvas.
Please guide me how to get swiffy animation into SVG shapes.
This is from the Swiffy website, Release notes, August 4, 2014 (version 7.0.0) :
Switched to HTML Canvas for renderering [sic]
rather than SVG. This allows improved fidelity for filters and other
graphical effects and provides more consistent results across a
broader range of platforms including mobile devices.
Since the Swiffy extension in Flash accesses Google Swiffy as a web service, "you always use the most recent version of Swiffy". So, if the most recent version of Swiffy has switched from SVG to canvas, then I guess you're stuck with it.

Wrong orientation when image captured by HTML5 file api on IOS 6.0

I am using HTML5 file api on mobile web app for image uploading utility.
I am capturing image using camera and upload it to server.
Problem is that if I capture portrait image the uploaded image automatically converted to Landscape.
You'll need to transform the image to correct the orientation. Fortunately, the image should include EXIF data that you can use to do that. If you like, you can do this before the image is uploaded to your server:
Read the image's EXIF data
Use a canvas element to transform the image as appropriate
Export the canvas image into an image file
There's an excellent writeup, including code samples, in this blog post.