[xwiki-users] PDF Export of {code} sections

2010-06-11 Thread Alexander Pokahr
Dear all, we are using XWiki for the project websites and online documentation of our open source projects and are (almost) very happy with it. For releasing distributions and for easy printing of multi-page documents, we would like to use the PDF export facility of XWiki. The problem is that the

Re: [xwiki-users] PDF Export of {code} sections

2010-06-11 Thread Thomas Mortagne
On Fri, Jun 11, 2010 at 14:50, Alexander Pokahr wrote: > Dear all, > > we are using XWiki for the project websites and online > documentation of our open source projects and are > (almost) very happy with it. > > For releasing distributions and for easy printing of multi-page > documents, we would

Re: [xwiki-users] PDF Export of {code} sections

2010-06-11 Thread Alexander Pokahr
Dear Thomas, thanks for your quick reply. I tried following the instructions at: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel I even tried with very simple css snippets such as: h1 { color: blue; } but it doesn't seem to have any effect o

Re: [xwiki-users] PDF Export of {code} sections

2010-06-11 Thread Thomas Mortagne
On Fri, Jun 11, 2010 at 17:22, Alexander Pokahr wrote: > Dear Thomas, > > thanks for your quick reply. > I tried following the instructions at: > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel > > I even tried with very simple css snippets such

Re: [xwiki-users] PDF Export of {code} sections

2010-06-15 Thread Alexander Pokahr
Hi Tomas, all, debugging XWiki in eclipse, I found at least part of the problem: In PdfExportImpl.convertToStrictXHtml() the page is converted to strict xhtml using jtidy. Unfortunately, jtidy also imposes its own indentation on the document, which effectively breaks any environment like the one

Re: [xwiki-users] PDF Export of {code} sections

2010-06-16 Thread Alexander Pokahr
Dear all, this issue is really a showstopper for us. What I did now was adding two hacks to PdfExportImpl.java: 1) Remove call to JTidy in convertToStrictXHtml() and instead just do a trim() on the html string. 2) Do not apply the user CSS rules if there are none (i.e. don't call applyCSS() if c

Re: [xwiki-users] PDF Export of {code} sections

2010-06-25 Thread Thomas Mortagne
Did you tryed to export a xwiki/20 document which is using the new {{code}} macro instead ? This one is not based on so you should not get the same issues. On Wed, Jun 16, 2010 at 15:43, Alexander Pokahr wrote: > Dear all, > > this issue is really a showstopper for us. > What I did now was addin

Re: [xwiki-users] PDF Export of {code} sections

2010-06-29 Thread Alexander Pokahr
Dear Thomas, thanks for the suggestion. I'll try it out and let you know. Cheers, Alex Thomas Mortagne schrieb: > Did you tryed to export a xwiki/20 document which is using the new > {{code}} macro instead ? This one is not based on so you should > not get the same issues. > > On Wed, Jun 16, 2