Docx file with 2 column page layout setting to PDF not working properly , 1st column some of contents are over lapping onto 2nd column. In word its looking properly.
Input & Output file enclosed here : Aspose word to pdf issue in two column.zip (1.8 MB)
Input & out Screen shot : Word_To_PDF_2_column_content_not_proper.png (100.2 KB)
Code :
public void convertDocxToPDF(File docxFile, File pdfFile)
{
Document convDoc;
try
{
convDoc = new Document(docxFile.getAbsolutePath());
convDoc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());
PdfSaveOptions opt = new PdfSaveOptions();
opt.getDownsampleOptions().setDownsampleImages(false);
opt.setUseAntiAliasing(true);
opt.setImageCompression(PdfImageCompression.JPEG);
convDoc.save(new FileOutputStream(pdfFile), opt);
}
catch (Exception e)
{
e.printStackTrace();
}
}
Help us to resolved this issue