Please use the attached document file and the following code. All I do is saving the file as a PDF. The resulting PDF file will have an extra blank page inserted between the two tables. This will not happen if I save the file as Word – resulting Word file would look like original one.
Here is the code:
doc = new Document( "src/data/worddocs/testPDF1.docx");
doc.save( "src/data/worddocs/ouputPdf.pdf", SaveFormat.PDF );
Any help in this matter would be appreciated.
Thank you very much,