nested table missing
Posted: Fri Feb 14, 2014 12:32 am
Hi Jason,
I was trying to convert the docx (which has tables inside tables) into pdf using the below code but in the generated pdf document tables inside tables are missing.
PFA documents for your reference.
PhysicalFont font = PhysicalFonts.getPhysicalFonts().get("Comic Sans MS");
fontMapper.getFontMappings().put("Calibri", font);
wordMLPackage.setFontMapper(fontMapper);
PdfConversion c = new Conversion(wordMLPackage);
// Writing the pdf to the output stream
String pdfFile ="D:/testFiles/test.pdf"
wordMLPackage.save(new File(pdfFile));
OutputStream os = new java.io.FileOutputStream(pdfFile);
PdfSettings pdfSettings = new PdfSettings();
pdfSettings.setWmlPackage(wordMLPackage);
c.output(os, new PdfSettings());
os.close();
Thanks in advance..
I was trying to convert the docx (which has tables inside tables) into pdf using the below code but in the generated pdf document tables inside tables are missing.
PFA documents for your reference.
PhysicalFont font = PhysicalFonts.getPhysicalFonts().get("Comic Sans MS");
fontMapper.getFontMappings().put("Calibri", font);
wordMLPackage.setFontMapper(fontMapper);
PdfConversion c = new Conversion(wordMLPackage);
// Writing the pdf to the output stream
String pdfFile ="D:/testFiles/test.pdf"
wordMLPackage.save(new File(pdfFile));
OutputStream os = new java.io.FileOutputStream(pdfFile);
PdfSettings pdfSettings = new PdfSettings();
pdfSettings.setWmlPackage(wordMLPackage);
c.output(os, new PdfSettings());
os.close();
Thanks in advance..