karurkarthi / xdocreport

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

docx to pdf with first,even header and footer bug fix solution #316

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Convert the docx to pdf with first,even header and footer.

What version of the product are you using? On what operating system?
xdocreport 1.0.2
docx.converters-1.0.2-sample.zip

Please provide any additional information below.
Edit the MasterPageManager.java in package org.apache.poi.xwpf.converter.core 
as my attached file can fix the problem, even it is not the best way.

Original issue reported on code.google.com by leewaiki...@gmail.com on 25 Oct 2013 at 1:36

Attachments:

GoogleCodeExporter commented 9 years ago
Many thank's for your patch. This fix will be available for 1.0.3.

I have applied it and changes some code (it was a bug with NPE when settings is 
null + use XWPFStylesDocument to retrieve the loaded settings). I have added 
your docx in our JUnit too.

See commit at 
https://code.google.com/p/xdocreport/source/detail?r=b4b3e31a54cad7bb0faf660b38c
5933acaf9d0da

Well done!

Regards Angelo

Original comment by angelo.z...@gmail.com on 25 Oct 2013 at 8:39