StimVinsh / xdocreport

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

Problem with pdf converter #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Headers and footers are not properly rendered when converting from ms-word to 
pdf via Itext.
For example, page numbers are not rendered.

Original issue reported on code.google.com by frederic...@gmail.com on 23 Apr 2012 at 2:49

GoogleCodeExporter commented 8 years ago
Hi,

thanks for reporting bugs.

Can you provide a ms word example ?

Original comment by pascal.leclercq on 23 Apr 2012 at 3:00

GoogleCodeExporter commented 8 years ago
Just try the docxStructure.docx in your samples, it contains headers and footer 
in the docx and none in the pdf.

Original comment by frederic...@gmail.com on 23 Apr 2012 at 3:18

GoogleCodeExporter commented 8 years ago
Hi,

We know that our converters are far from being perfect, especially the docx 
converters.

We plan to make a converter based on JODConverter as mentionned here :

http://code.google.com/p/xdocreport/issues/detail?id=73

This has a drawback : It requires a openoffice/libreoffice instance to be 
started in the background but obviously It will produce much better result and 
more straightforward .

Unfortunatly I don't have currently a lot of time to work on this subject and I 
suggest you try JODConverter. Eventually, if you find time to contribute to 
xdocreport I would be more than happy.

Best regards

Original comment by pascal.leclercq on 27 Apr 2012 at 10:05

GoogleCodeExporter commented 8 years ago
Problem come from the fact that in the current "visitHeadersFooters" method we 
use 
XWPFDocument.getDocument().getBody().getSectPr().getHeaderReferenceList()  and 
XWPFDocument.getDocument().getBody().getSectPr().getFooterReferenceList() 
whereas the information is present in in  XWPFDocument.getHeaderList() and 
XWPFDocument.getFooterList().

Angelo, Leszek I'm lost in the current mapper implementationand I don't know 
where to change the code to fix this bug.

Do you think you can find time to help me fix It ? 

Original comment by pascal.leclercq on 30 Apr 2012 at 7:42

GoogleCodeExporter commented 8 years ago
Pascal, I'm not familiar with docx->pdf converter so I cannot offer help in 
this case.
Regards
Leszek

Original comment by abe...@gmail.com on 2 May 2012 at 12:00

GoogleCodeExporter commented 8 years ago
Pascal,

I'm sorry, I cannot help you for the moment. Perhaps I could help you on the 
last week of this month.

Regards Angelo

Original comment by angelo.z...@gmail.com on 4 May 2012 at 7:02

GoogleCodeExporter commented 8 years ago
Is there any progress in this case? I use 0.9.8 version and I still cannot see 
header and footer. Also paragraph sign is not rendered in pdf (§).

Regards,
Robert

Original comment by robert....@gmail.com on 31 Aug 2012 at 5:35

GoogleCodeExporter commented 8 years ago
Hi Robert,

No we have do nothing for this issue. PDF converter is not our first goal, but 
any contribution are welcome!

Regards Angelo

Original comment by angelo.z...@gmail.com on 31 Aug 2012 at 6:46

GoogleCodeExporter commented 8 years ago
Hi Frederic, Robert,

I have fixed problem with header/footer and now docxStructure.docx conversion 
works well. I hope there is not problem with another docx.

Regards Angelo

Original comment by angelo.z...@gmail.com on 20 Sep 2012 at 1:23

GoogleCodeExporter commented 8 years ago
Thank you very much, i'll try it asap!!

Original comment by frederic...@gmail.com on 20 Sep 2012 at 1:42

GoogleCodeExporter commented 8 years ago
Well, the page number is there now. Only it is the same in all pages... Try this

Original comment by santiago...@mytaksee.com on 28 Sep 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Hi santiago,

Your problem is for odt converter and not for docx converter and it's for page 
number and not for header/footer. Please create a new issue for that.

Regards Angelo

Original comment by angelo.z...@gmail.com on 28 Sep 2012 at 9:26

GoogleCodeExporter commented 8 years ago
Also note that table headers do not repeat accross pages

Original comment by santiago...@mytaksee.com on 28 Sep 2012 at 9:55

GoogleCodeExporter commented 8 years ago
Hi santiago,

I have created the issue 
http://code.google.com/p/xdocreport/issues/detail?id=157 with your page number 
problem.

> Also note that table headers do not repeat accross pages
Ok I have seen the problem, but this issue was about header/footer page  for 
docx.

So if you have some comments please write it on 
http://code.google.com/p/xdocreport/issues/detail?id=157

Many thank's

Regards Angelo

Original comment by angelo.z...@gmail.com on 29 Sep 2012 at 12:23

GoogleCodeExporter commented 8 years ago
For problem with tables headers, I have created the issue 
http://code.google.com/p/xdocreport/issues/detail?id=158

Original comment by angelo.z...@gmail.com on 29 Sep 2012 at 12:25

GoogleCodeExporter commented 8 years ago
Thank you very much for your quick response. Would be great if you could use 
this file instead

Original comment by santiago...@mytaksee.com on 29 Sep 2012 at 9:00

Attachments: