Make layout of PDFs configurable in dataExporter

UI Components for JSF
Post Reply
dbross
Posts: 9
Joined: 12 Aug 2010, 15:24

29 Nov 2010, 21:18

Hello,

I'm using the dataExporter component to generate PDFs (Primefaces 2.2 RC1), and I've a couple of enhancements to suggest. I've looked through the documentation and there doesn't appear to be a way of doing this currently.

1) The first page of the export appears to default to landscape layout. It's easy to use iText to change the layout for subsequent pages, but it makes for inconsistent reports if the first page is landscape and the remainder are portrait.
2) A similar issue for headers. It would be really nice to be able to specify a header/footer for the first page of the document using the iText setHeader/setFooter method. Again, easy to do for subsequent pages inside the preProcessor method, but there's no way of doing it for the first page short of coding up the header yourself and adding it as a paragraph.

Is there a way of doing this currently that I'm missing?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests