Font-Size of PDF-Exporter

UI Components for JSF
Post Reply
da.dom
Posts: 15
Joined: 07 Jun 2010, 16:21

09 Jun 2010, 17:43

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Jun 2010, 13:30

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.

da.dom
Posts: 15
Joined: 07 Jun 2010, 16:21

10 Jun 2010, 15:03

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Jun 2010, 18:22

Yes, please create an issue ticket for this.

da.dom
Posts: 15
Joined: 07 Jun 2010, 16:21

11 Jun 2010, 09:00

Done !

Issue 901: Extend PDF-Exporter
http://code.google.com/p/primefaces/iss ... ail?id=901

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jun 2010, 13:26

Thanks

Selaron
Posts: 17
Joined: 30 Nov 2010, 16:13

19 Jun 2012, 08:27

Hello,

why did you close issue 901 with status "wont fix"? We'd like to see this kind of extension discussed here too.
Please review issue 901.

Thank you

Selaron

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests