((VerticalLayout) window.getContent()).setSizeFull();
window.setResizable(true);
window.setWidth("800");
window.setHeight("600");
window.center();
Embedded e = new Embedded();
e.setSizeFull();
e.setType(Embedded.TYPE_BROWSER);
/*
* Here we create a new StreamResource to get our PDF
* Not working for the moment
* __this__ must be replaced with a StreamSource
*
*/
StreamResource resource = new StreamResource(this, "/home/matrix/Desktop/pv.pdf", __app);
// Set the right MIME type
resource.setMIMEType(resource.getMIMEType());
e.setSource(new ClassResource(resource.getFilename(), __app));
window.addComponent(e);
__app.getMainWindow().addWindow(window);
}