Hi,

I keep trying to understand how does this work. I've drawn a schema from 
what Sergiu explained to me, what I've not used any standard to 
represent files, objects or processes. Please, could you propose any 
existing standard to try to better represent what is happening in the 
whole process? Thanks.

Here it is the diagram...

http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/Export

As per the creation of the rtf/pdf or whatever format is possible to 
create from a xsl-fo document, it seems that there are two points to 
"inject" CSS rules for the formatting: pdf.css and/or any ad hoc template.

Please, what do we need pdf.css?

I've created a XWiki.PDFClass class with style as only property. Then, 
I've created a new document, instantiated XWiki.PDFClass and tried with 
some simple CSS rules like these:

h1 { font-size: 30px; color: red;}
h2 { font-size: 30px; color: green;}
h3 { font-size: 60px; }

Those rules work fine. Both in the template and in pdf.css. But I am not 
able to change margins, spaces before and after any hx paragraph,...

I guess that any rule not accepted in pdf.css, won't be accepted in a 
template. After all, both set of rules are used by css4j. It this is 
true, only xhtml2fo.xls seems the only solution to get a customized output.

Please, am I right?

Is the use of templates documented anywhere?

Sorry for posting such an amount of queries with no answer. To control 
minimally the appearance of a exported rtf file is a must for me right 
now. As Sergiu said, if we found a suitable library, to export do Word 
format could be contemplated. I don't know if the GSoC project on Office 
Import could relate with this export issue. But until any of these 
advanced issues crystallizes, please, could you point me to a way to 
getting at least the separation of paragraphs and font for paragraphs 
controlled by CSS during the export action?

Thank you so much,

Ricardo




[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
> Hi!
>
> [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
>   
>> Hi all,
>>
>> I am working with a XE 1.3.8295 installation where RTF export works 
>> fine. But it will be great programmatically control the output layout 
>> (namely, pictures printed size, space before and after paragraphs or 
>> headings, space before and after pictures, footnotes,...
>>
>> Please, could you point me in the right direction to face this requirement?
>>
>> Thanks indeed for your help.
>>
>> Ricardo
>>   
>>     
>
>
> After a looooong monolog from Sergiu in XWiki IRC channel (thanks 
> Sergiu!, I've started to draw a general schema for rtf exporting, but I 
> am far from being able to understand it.
>
> Time is running out and I do need to solve an apparently simple problem. 
> Let me show you an example:
>
> Here a simple dummy-document...
>
> http://tinyurl.com/6n348s
>
> Here the document exported as PDF...
>
> http://tinyurl.com/6auum6
>
> Here the document exported as RTF...
>
> http://tinyurl.com/6npxe4
>
> Here the content of pdf.css
>
> h1 { font-size: 30px; }
> h2 { font-size: 25px; }
> h3 { font-size: 20px; }
> h4 { font-size: 15px; }
> h5 { font-size: 10px; }
> h6 { font-size: 10px; }
>
> The first problem: I am not able to control the separation between 
> paragraphs. I've tried a bunch of different margin flavors, but no one 
> affects the apparently "default" settings. But font-size does work fine: 
> it is possible to control it by modifying pdf.css
>
> The "default" settings could be acceptable for the PDF version, but 
> never for the RTF one (the one I need now). Please, see the examples.
>
> So, please, if margins can not be set by modifying pdf.css, where must I 
> look for the right place to control it?
>
> And, why the pdf export does set a given paragraph separation and rtf 
> works in a different way? Thanks!!!
>
> Cheers,
>
> Ricardo
>
>   


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

_______________________________________________
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
  • [xwiki-devs] about RTF expo... [Ricardo Rodriguez] Your EPEC Network ICT Team
    • Re: [xwiki-devs] about... [Ricardo Rodriguez] Your EPEC Network ICT Team
      • Re: [xwiki-devs] a... [Ricardo Rodriguez] Your EPEC Network ICT Team
        • Re: [xwiki-dev... [Ricardo Rodriguez] Your EPEC Network ICT Team
          • Re: [xwiki... Vincent Massol
            • Re: [... [Ricardo Rodriguez] Your EPEC Network ICT Team
              • R... Vincent Massol
                • ... Sergiu Dumitriu
                • ... [Ricardo Rodriguez] Your EPEC Network ICT Team
                • ... Vincent Massol
                • ... [Ricardo Rodriguez] Your EPEC Network ICT Team
                • ... [Ricardo Rodriguez] Your EPEC Network ICT Team
                • ... Vincent Massol

Reply via email to