StimVinsh / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

incorrect header, footer and table styling in ODT->PDF via iText converter #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi
I attach example odt file with header and footer and some tables. It is not 
converted correctly to pdf.

Header and footer are aligned to page edges instead of printable area
First line of text in table is not correctly vertically aligned. Next lines ot 
text are converted correctly (with my fixes from bug 58). The same problem 
occurs in header-footer because they use table cell as invisible container.

I've attach example file and fixes
ExtendedHeaderFooter - fix header and footer placement on page
StylableHeaderFooter - fix padding and width computation
StylableTableCell - fix first line processing to be compatible with open office

Regards
Leszek

Original issue reported on code.google.com by lesz...@safe-mail.net on 21 Dec 2011 at 10:00

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Leszek,

Many thanks to fix our problem with PDF converter (I know that there are very 
bugged). I tell me if you want to become a XDocReport commiter. It seems you 
fix a lot of problems and I think it should be very cool if you commit yours 
your fix.

What do you think about that?

Regards Angelo

Original comment by angelo.z...@gmail.com on 21 Dec 2011 at 10:12

GoogleCodeExporter commented 8 years ago
Leszek,

I will commit your great changes abou this issue and 
http://code.google.com/p/xdocreport/issues/detail?id=58

I have added your ODT sample (I will commit that tomorow) in our JUnit 
org.odftoolkit.odfdom.converter\src\test\java\org\odftoolkit\odfdom\converter\xh
tml\ODFDOM2XHTMLConverterTest.java

This Junit generate PDF from ODT sample in the /target folder (refresh your 
workspace after launching this JUnit) and you can check that generated PDF is 
well.
This JUnit is not a really JUNit (just check if the converterdoesn't crash). 
For check the PDF renderer you must check it with your eyes.

Regards Angelo 

Original comment by angelo.z...@gmail.com on 21 Dec 2011 at 11:02

GoogleCodeExporter commented 8 years ago
Ok I have commited your classes. Many thanks!
I have created in the JUnit 
http://code.google.com/p/xdocreport/source/browse/thirdparties-extension/org.odf
toolkit.odfdom.converter/src/test/java/org/odftoolkit/odfdom/converter/AbstractO
DFDOMConverterTest.java the convertHeaderFooterTable method.

Original comment by angelo.z...@gmail.com on 21 Dec 2011 at 8:26

GoogleCodeExporter commented 8 years ago
Angelo
I will gladly become a comitter. Thank you. There still is a room for 
improvement in the converter and I could help with it.
For now I don't have the programming environment (eclipse + all the plugins), I 
can organize it in some time.
I assume you give me login and password to the source code repository for 
committing. Am I right?

Regards
Leszek

Original comment by lesz...@safe-mail.net on 21 Dec 2011 at 9:47

GoogleCodeExporter commented 8 years ago
Leszek

>I will gladly become a comitter.
Cool:)

>Thank you. 
Thanks for your help.

>There still is a room for improvement in the converter and I could help with 
it.
Oh yes, our converter must be improved a lot (and more for docx). I think it is 
quicly, works for simple documentation but is very bugged for complex document. 

> I assume you give me login and password to the source code repository for 
>committing. Am I right?

Yes!

@Pascal coud you do that?

Thanks 

Regards Angelo

Original comment by angelo.z...@gmail.com on 21 Dec 2011 at 9:59