Closed GoogleCodeExporter closed 9 years ago
Hi Bilel,
As you hav seen, there are few options like font encoding.
For your problem with max marge, the converter should use the marge of docx. If
you have a problem, please attach your docx which causes problem.
Regards Angelo
Original comment by angelo.z...@gmail.com
on 30 Jul 2013 at 7:10
Thank you Angelo for your answer, I think I have found the solution, I will use
the iText XWPFDocument after reporting like following:
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
report.process(context, outputStream);
byte[] mergedOutput = outputStream.toByteArray();
XWPFDocument document = new XWPFDocument(new
ByteArrayInputStream(mergedOutput));
// do stuff with document ...
PdfOptions options = PdfOptions.create().fontEncoding("windows-1250");
OutputStream out = new FileOutputStream(new File(outputTemplate));
PdfConverter.getInstance().convert(document, out, options);
Original comment by oueslatibilel216@gmail.com
on 30 Jul 2013 at 7:19
I think it's really shame to use byte array just to change marge.
Could you tell me please what is your problem with marge? The converter doesn't
use the marge defined in the docx?
If you want you can attach your docx and enumerate the problems.
Original comment by angelo.z...@gmail.com
on 30 Jul 2013 at 7:27
I cant really share the document due to confidentiality but I can tell you that
its not the marge the issue, the footer is smaller then the original in the
docx file, the logo down is split in two.
Original comment by oueslatibilel216@gmail.com
on 30 Jul 2013 at 7:43
I'm sorry, but without attached docx, I cannot help you more.
Original comment by angelo.z...@gmail.com
on 30 Jul 2013 at 7:46
Thank you in any case, I will try to find out.
Original comment by oueslatibilel216@gmail.com
on 30 Jul 2013 at 7:57
As I have none docx attached, I close this issue.
Original comment by angelo.z...@gmail.com
on 18 Feb 2014 at 2:48
Original issue reported on code.google.com by
oueslatibilel216@gmail.com
on 30 Jul 2013 at 5:50