Hi All,
I’m trying to convert RTF to PDF , while converting, some of the fonts are missing in converted PDF, because of this some texts are occupying in next line.
Note : I’m using AIX machine
Is there any specific configuration I have to use for AIX machine/ how can I install fonts explicitly in AIX machine.
My existing code:
com.aspose.words.Document doc = new com.aspose.words.Document(new FileInputStream(inputPath + fileName + “.txt”));
SectionCollection sections= doc.getSections();
for(int i=0;i<sections.getCount();i++){
Section section = sections.get(i);
PageSetup pageSetup = section.getPageSetup();
pageSetup.setRightMargin(15);
pageSetup.setLeftMargin(215);
}
doc.save(outputPath + fileName + “_inter.pdf”);
PdfReader pdfReader = new PdfReader(outputPath + fileName + “_inter.pdf”);
PdfStamper pdfStamper = new PdfStamper(pdfReader,new FileOutputStream(outputPath + fileName + “.pdf”));
Image image = Image.getInstance(imagePath);
for (int i = 1; i <= pdfReader.getNumberOfPages(); i++) {
PdfContentByte content = pdfStamper.getUnderContent(i);
image.setAbsolutePosition(75, 710);
content.addImage(image);
}