Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Pdf Exporter format

Tomas Mendes
5 years ago Nov 14, 2016 2:46pm
Haijian Wang
5 years ago Nov 15, 2016 10:52pm
Tomas Mendes
5 years ago Nov 16, 2016 2:57pm
Tomas Mendes
5 years ago Nov 21, 2016 1:21pm

Haijian Wang: Hello Tomas, are you talking about this Exporter addon https://vaadin.com/directory#!addon/exporter? 
If yes, sorry currently it doesn't have such feature yet. I will take this into consideration and make an improvement in the future.

Finally, i do it. I had to change this method in PdfFileBuilder

 @Override
    protected void resetContent() {
        document = new Document(PageSize.A4.rotate());
        table = new PdfPTable(getNumberofColumns());
        try {
            PdfWriter.getInstance(document, new FileOutputStream(file));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (DocumentException e) {
            e.printStackTrace();
        }
        document.open();
    }
 

Dennis Heitmann
5 years ago Apr 05, 2017 10:45am