Hello Ludovic! Here it is: XWIKI ENTERPRISE 2.2.5.28407 There's no pdf.css. Should I create one? I have another question. Could you tell me where do I find the content of this msg: $msg.get('core.pdf.tableOfContents'). I wanna be able to create some more and eventually change the already existing ones. Best regards, Wilson 2010/5/3 Ludovic Dubost <[email protected]>
Which version of XWiki are your running on ?
I've been using this succesfully on multiple projects.
-- Can you try directly modifying pdf.css in webapps/xwiki/templates/
--
However, note that pdf.css can only be used to style using "id" and "element", but not classes.
There is a patch for this in: http://jira.xwiki.org/jira/browse/XWIKI-4869
Le 03/05/10 19:04, Wilson Leão Neto a écrit :
I've tried with both syntaxes. Either way, it just doesn't work.. :/
I've successfully changed the .vm files. But I'm still not able to apply any kind of css.
Thanks for the help though.
Best regards, Wilson
2010/5/3 Sergiu Dumitriu<[email protected]>
On 05/03/2010 05:50 PM, Vincent Massol wrote:
On May 3, 2010, at 5:38 PM, Wilson Leão Neto wrote:
Hello Vincent!
Thank you for your answer!
I've followed the tutorial on
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
And I've tried to export the pdf using the URL:
http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0...
<
http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0...
The
XWiki.teste1 page has the "style" textarea property with the following
code
h1 {
color: white;
background: black;
margin-left: 3cm;
margin-bottom: 9cm; }
I'm still not able to see any changes in the exported pdf...
Any clues on what I'm doing wrong?
hmmm... Make sure that page is written in XWiki 1.0 syntax maybe. I have
no idea if it works in XWiki 2.0 syntax but probably not since this is some code older than the new XWiki Syntax 2.0.
It should, since the customization steps are applied on the generated content. The only place where the rendering engine is used is in pdf.vm, in a call to $pageDoc.getRenderedContent().
Thanks
-Vincent
Best regards,
Wilson
2010/5/3 Vincent Massol<[email protected]>
Hi Wilson,
On Apr 30, 2010, at 6:56 PM, Wilson Leão Neto wrote:
Hello all! > > I'm working with XWiki and I'm a newbie... I've read the tutorial > available
> on http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule and > the
customization part of the pdf export. I'm still clueless on how to do
> it
properly... I have java experience, so I can code what is necessary, I
> just
> don't know where to go. > > All I want to do is change the default template. Changing the footer, > header, TOC and breaking a page on every h1 found. > > I would be glad if someone could give me a hint. > PDF export is not done using the new rendering system. It's still using some older system. The customization is described here:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizi...
Thanks
-Vincent
-- Sergiu Dumitriu http://purl.org/net/sergiu/
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost