PDFExport
Generate PDF from all Vaadin component and download it!
Vaadin addon to export any PDF or DOC component, the idea is that after a certain component (eg VerticalLayout?) be exported generating a PDF that component and all its children recursively.
to join email to taioloco in gmail
Dependency itext libreria any version
Sample code
all = new VerticalLayout(); Label label = new Label("Hello Vaadin user"); Table table = new Table(); for (int i=0;i<50;i++){ table.addItem("Item nro: "+i); } Select s = new Select("select"); for (int i=0;i<50;i++){ s.addItem("Item nro: "+i); } TextField t = new TextField("textfield"); t.setValue("Hola"); Button b = new Button("PDF"); b.addListener(new com.vaadin.ui.Button.ClickListener() { @Override public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { PdfFromComponent factory = new PdfFromComponent(); factory.export(all); } });
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Released
- 2013-01-20
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.0+
- Browser
- N/A
PDFExport - Vaadin Add-on Directory
Generate PDF from all Vaadin component and download it!Vaadin addon to export any PDF or DOC component, the idea is that after a certain component (eg VerticalLayout?) be exported generating a PDF that component and all its children recursively.
to join email to taioloco in gmail
Dependency itext libreria any version