Hi,

[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
> Sergiu Dumitriu wrote:
>   
>> I managed to get those margins in pdf and rtf, using the 0.95beta 
>> release of fop (now used in the trunk). You should take into account the 
>> different bugs css4j has (most of them are still present in the most 
>> recent version). So, I have this working:
>>
>> h2 { 
>>  
>>
>>    margin-left: 2cm;
>>    margin-bottom: 1cm;
>>    color: yellow;
>> }
>> You can also use margin: 1cm; to set all 4 margins to the same length, 
>> but you cannot use margin: 2cm 0cm 1cm; to set different values. Also, 
>> you cannot use !important.
>>
>> You just have to upgrade 
>> http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/0.95beta-1/fop-0.95beta-1.jar
>>  
>> and 
>> http://repo1.maven.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.3/xmlgraphics-commons-1.3.jar
>> (replace the older jars in WEB-INF/libs)
>>   
>>     
>
> Thanks! Those are great news! I'll test this along the day and report 
> back results here! 

I've replaced the concerned files but I keep getting weird results. Briefly:

1. I am still using XE 1.3.8295
2. I've replaced the concerned libs following your instruction. Tomcat 
was restarted.
3. On right margin and color seems to work.
4. There is a number of error entries in catalina.out. Here you can find 
it...

http://tinyurl.com/3lvonz

I am using this sample documet...

http://tinyurl.com/6n348s

With this CSS held in XWikiPDFTemplate.

It seem that only first heading rule causes any effect. The other ones 
simply have no effect. Here the current content in 
XWiki.PDFTemplate.stylus...

h3 {
   margin-left: 2cm;
   margin-bottom: 1cm;
   color: red;
}

h2 {
   margin: 3cm;
   color: yellow;
}

And here the generated rtf file...

http://tinyurl.com/658vy5



I hope any of this information makes any sense for you.

Thanks for your help,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to