Hello all.
First of all, I'd like to say that I'm kind new in the XWiki project
and in this mailing list so, I apologize if this is an already
reported issue I'm not aware of (I looked for open issues related to
the customization of the PDF pages when exporting from XWiki but I
found nothing related to what I'm about to share with you):
I'm using XWiki 2.4 and I cannot make the example in
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomiz…
related to the configuration of the field style work. After some
debugging, I found out why: basically, the example states that we
should use a field of type TextArea for the style property of the
PDFClass class. However, when doing so, at runtime, when getting the
value of my "style" field, I don't get what I actually wrote there,
because a new paragraph is inserted around my content, resulting in
something like:
<p>
h2 {
margin-left: 2cm;
margin-bottom: 1cm;
color: red;
}
h3 {
margin: 3cm;
color: yellow;
}
</p>
I thought the problem might be with the editor that was used for
editing the field or something, so I forced using the Text editor but
still had no results. This example only worked when I used a String
property instead of a TextArea (which is a real "pita" right?).
I'd like to know:
1 - Am I doing something wrong?
2 - Is this a known bug and I couldn't find information about it?
3 - If this is really a bug, can I help fixing it or something similar?
Regards,
Paulo Zenida