[xwiki-devs] Possible bug in the style field when exporting a PDF
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#HCustomizi... 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
Hi Paulo, Paulo Zenida wrote:
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?
Please, have you followed this thread? http://tinyurl.com/2v26dtb Currently I don't know at what extent what you are seeing here... http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi... ... relates with the behaviour of the new rendering module... http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule ... or if there is no change for producing RTF and PDF outputs. There were a last Vincent's message posted in this thread... http://tinyurl.com/2vesg4v Please, Vincent, what LaTeX solution did you speak about at that time? Please, what is the current state of this issue? Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
Hi Ricardo. Comments inline... Regards, Paulo Zenida On 18 September 2010 23:31, [Ricardo Rodriguez] eBioTIC. <[email protected]> wrote:
Hi Paulo,
Paulo Zenida wrote:
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?
Please, have you followed this thread?
I had read some parts of this thread before, yes. But I have read this again, too. As far as I can understand, it seems that somewhere in the past, the style mechanism worked as it is described in the documentation page (http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...), but it now doesn't. Can anyone test what I described in my previous message with a recent version of XWiki (2.4) and tell me if this really is a bug or if I simply did something wrong, please?
Currently I don't know at what extent what you are seeing here...
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
... relates with the behaviour of the new rendering module...
http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule
... or if there is no change for producing RTF and PDF outputs.
I think the PDF export is not using the new rendering module... right guys?
There were a last Vincent's message posted in this thread...
Please, Vincent, what LaTeX solution did you speak about at that time? Please, what is the current state of this issue?
Thanks!
Ricardo
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi! Paulo Zenida wrote:
I think the PDF export is not using the new rendering module... right guys?
I think that this is the point here and that the involved agents in this problem are the same than before. I would like to modify the graphic in.. http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi... ... to reflect the current situation and, to maintain it updated from now on. Please, feel free to contribute to the effort! I've just uploaded the original file to... http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#Attachment... The file is in OmniGraffle Pro format (nothing more complex than a long XML file, a nice front end, and a great rendering engine :-) . I will be great to have something to collaborative edit this kind of "knowledge" but it is bur no mean easy to get such a tool done! I was Vicent who advice me to use OmniGraffle. It is a great tool, even though it is not multiplatform (it only works in Mac and iPad) and it is not Open Source. Cheers! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
Hello all. I have an implementation that fixes the bug I refered to in the beginning of this message and I'd like to share the patch with you now. Can you tell me how I can do that, please? Best, Paulo Zenida On 19 September 2010 08:43, [Ricardo Rodriguez] eBioTIC. <[email protected]> wrote:
Hi!
Paulo Zenida wrote:
I think the PDF export is not using the new rendering module... right guys?
I think that this is the point here and that the involved agents in this problem are the same than before. I would like to modify the graphic in..
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
... to reflect the current situation and, to maintain it updated from now on. Please, feel free to contribute to the effort! I've just uploaded the original file to...
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#Attachment...
The file is in OmniGraffle Pro format (nothing more complex than a long XML file, a nice front end, and a great rendering engine :-) . I will be great to have something to collaborative edit this kind of "knowledge" but it is bur no mean easy to get such a tool done! I was Vicent who advice me to use OmniGraffle. It is a great tool, even though it is not multiplatform (it only works in Mac and iPad) and it is not Open Source.
Cheers!
Ricardo
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Mon, Sep 20, 2010 at 14:31, Paulo Zenida <[email protected]> wrote:
Hello all.
I have an implementation that fixes the bug I refered to in the beginning of this message and I'd like to share the patch with you now. Can you tell me how I can do that, please?
Best is generally to create a jira issue related to the bug on http://jira.xwiki.org and attach patches on the issue.
Best,
Paulo Zenida
On 19 September 2010 08:43, [Ricardo Rodriguez] eBioTIC. <[email protected]> wrote:
Hi!
Paulo Zenida wrote:
I think the PDF export is not using the new rendering module... right guys?
I think that this is the point here and that the involved agents in this problem are the same than before. I would like to modify the graphic in..
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
... to reflect the current situation and, to maintain it updated from now on. Please, feel free to contribute to the effort! I've just uploaded the original file to...
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#Attachment...
The file is in OmniGraffle Pro format (nothing more complex than a long XML file, a nice front end, and a great rendering engine :-) . I will be great to have something to collaborative edit this kind of "knowledge" but it is bur no mean easy to get such a tool done! I was Vicent who advice me to use OmniGraffle. It is a great tool, even though it is not multiplatform (it only works in Mac and iPad) and it is not Open Source.
Cheers!
Ricardo
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi Thomas. As you suggested: http://jira.xwiki.org/jira/browse/XWIKI-5509 Best, Paulo Zenida On 20 September 2010 13:35, Thomas Mortagne <[email protected]> wrote:
On Mon, Sep 20, 2010 at 14:31, Paulo Zenida <[email protected]> wrote:
Hello all.
I have an implementation that fixes the bug I refered to in the beginning of this message and I'd like to share the patch with you now. Can you tell me how I can do that, please?
Best is generally to create a jira issue related to the bug on http://jira.xwiki.org and attach patches on the issue.
Best,
Paulo Zenida
On 19 September 2010 08:43, [Ricardo Rodriguez] eBioTIC. <[email protected]> wrote:
Hi!
Paulo Zenida wrote:
I think the PDF export is not using the new rendering module... right guys?
I think that this is the point here and that the involved agents in this problem are the same than before. I would like to modify the graphic in..
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
... to reflect the current situation and, to maintain it updated from now on. Please, feel free to contribute to the effort! I've just uploaded the original file to...
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#Attachment...
The file is in OmniGraffle Pro format (nothing more complex than a long XML file, a nice front end, and a great rendering engine :-) . I will be great to have something to collaborative edit this kind of "knowledge" but it is bur no mean easy to get such a tool done! I was Vicent who advice me to use OmniGraffle. It is a great tool, even though it is not multiplatform (it only works in Mac and iPad) and it is not Open Source.
Cheers!
Ricardo
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (3)
-
[Ricardo Rodriguez] eBioTIC. -
Paulo Zenida -
Thomas Mortagne