Tables in RTF files

Hi,


I’m working on a huge project and I need a solution for converting RTF to PDF. I decided to use Aspose.Words because I’d read lots of positive comments on that feature. Unfortunately, the PDF file I get after converting is not the same as the input RTF file. Fonts are ok, sizes and spaces also looks good, but in the PDF there are no tables (I mean borders of tables) and lines. How can I convert RTF to PDF 1:1?
Code that I used to solve the problem :

/* ver1
try {
Document doc = new Document(fileNameRTF);
doc.save(fileNamePDF);
}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
/
/ ver2
try {
Document doc = new Document(fileNameRTF);
PdfSaveOptions opt = new PdfSaveOptions();
opt.setCompliance(2);
doc.save(fileNamePDF, opt);
}
catch (Exception e) {
e.printStackTrace();
}

Any help will be appreciated.

Hi Lukasz,

Can you please share your input RTF document to reproduce the issue?

Best Regards,