Scrollable embedded PDF on iPhone

Hello, I am trying to embed an PDF in a Vaadin application. I am using this code:

File pdf = new File("Test.pdf"); Embedded browser = new Embedded("", new FileResource(pdf, this)); browser.setType(Embedded.TYPE_BROWSER); browser.setWidth("500px"); browser.setHeight("500px"); mainWindow.addComponent(browser); On the desktop this works well, but on the iPhone I can not scroll it. Any ideas why this is the case and how to get it work?

Hi,

In embeddded (TYPE_BROWSER) the pdf ends up in an iframe and browsers thus shows it more like an image. As screen estate is limited it is often better to open PDF files to whole screen on mobile devices. Then mobile browsers also enable native controls to scroll, switch pages, search etc.

cheers,
matti