Fonts are not as per the RTF file AIX [RTF to PDF]

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);
}

Hi there,

Thanks for your inquiry. Please note that Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts that are used in your document on the machine where you're converting documents to Pdf. Please refer to the following article:

How Aspose.Words Uses True Type Fonts

If you still face problem, please share your input and output documents here for testing. We will investigate the issue on our side and provide you more information.