Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display a PDF document in a Microsoft Surface application?

I want to display a PDF document in my Microsoft Surface application. I did some searching and found a lot of possibilities, but all of the seem to have a little drawback if used in Microsoft Surface.

This insteresting approach seems nice, but I have trouble to check how to enable scrolling.

enter image description here

Any idea how to enable scrolling in there?

like image 793
RoflcoptrException Avatar asked Feb 16 '11 20:02

RoflcoptrException


People also ask

How do I put PDF in display mode?

Present PDFUnder the "View" tab, click "Full Screen Mode". This will start the presentation. In order to end the presentation before it's finished, press Esc.

How do I view PDF in screen?

Open an adobe (pdf) file. Toggle to the “view” screen and scroll down to “Read Out Loud.” Select “Activate Read Out Loud.” ” Then select how you want the document to be read “Read This Page Only” or “Read To End of Document.”

Why can't I display a PDF?

Try resetting the display preference in your browser to clear up the viewing issue. In Reader or Acrobat, right-click the document window, and choose Page Display Preferences. From the list at left, select Internet. Deselect Display PDF in browser, and then click OK.


2 Answers

In our application we have the need to display a lot of content that is provided as PDF from our customers. Instead of directly displaying the PDF we create image files (one for each page) and created a control to change pages, scroll, resize and whatever needed to display the data.

There are drawbacks: no PDF forms or buttons, I won't list more. But this features are kind of business logic in a document, and that should be represented with a multi-touch alternative in your application, really.

It's sometimes a requirement to display large volumes of text, but if it is possible you should really minimize it, as the Surface table isn't designed to provide the best reading experience.

Edit: You could try to send window messages to the PDF viewer control when a specific gesture is made. The BING map's control was used that way AFAIK. Nevertheless, I don't think this adds to a good experience.

like image 101
Sascha Avatar answered Nov 16 '22 02:11

Sascha


You could try this: http://weblogs.asp.net/israelio/archive/2004/07/20/188664.aspx.

But even if you solve it, this is a really really lousy user experience. Hyperlinks in the PDF won't work, buttons from Adobe won't be clickable, the scrollbars wont actually work, etc. In other words, you're going to end up with a really lousy Surface app. I strongly recommend putting effort into figuring out how to render content as native WPF content that you can make play nicely with WPF & multitouch.

like image 3
Robert Levy Avatar answered Nov 16 '22 01:11

Robert Levy