Hi,
this is maybe not a primefaces issue (and more an itext problem), but i can't figure out any hacks to change the default font-size of the exported pdf of the data-exporter.
Have somebody therefor any solution? I try different ideas (DocListener, overwrite Document and capsulate the table in paragraph) but nothings works.
thanks a lot (again )
Dom
Font-Size of PDF-Exporter
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Have you tried the pre and post processors?
http://www.primefaces.org:8080/prime-sh ... cessor.jsf
I've checked the code and it seems fonts are hard coded (times font with default size) so that might prevent processors to work.
http://www.primefaces.org:8080/prime-sh ... cessor.jsf
I've checked the code and it seems fonts are hard coded (times font with default size) so that might prevent processors to work.
Hi there,
i try many things, but a realized too, that the font-styles are hard coded in the pdfexporter class. My idea then was to iterate in the post-processor over the pdf elements and change the fonts: very ugly and i was until now not even successfull so that i don't now if that even work.
maybe this is a good point for the wishlist?!
An idea: extend the pre-process method with the instance of the PDFExporter class and make the write-process a bit more dynamically (public getters and setters for, font, color..what ever).
Then you can set on pre-process all customizings with invoking the setters of the pdfexporter instance.
so far
dom
i try many things, but a realized too, that the font-styles are hard coded in the pdfexporter class. My idea then was to iterate in the post-processor over the pdf elements and change the fonts: very ugly and i was until now not even successfull so that i don't now if that even work.
maybe this is a good point for the wishlist?!
An idea: extend the pre-process method with the instance of the PDFExporter class and make the write-process a bit more dynamically (public getters and setters for, font, color..what ever).
Then you can set on pre-process all customizings with invoking the setters of the pdfexporter instance.
so far
dom
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Yes, please create an issue ticket for this.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Thanks
-
- Information
-
Who is online
Users browsing this forum: No registered users and 57 guests