Hi,
I am trying to convert the word document to pdf using aspose.words Java (licence). but the converted document have contents with lot of spelling mistakes.
pfb code used to convert doc to pdf ( tested for Tamil language)
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Document wdForPdf = new Document(uploadfile.getInputStream());
PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.setSaveFormat(com.aspose.words.SaveFormat.PDF);
saveOptions.setExportDocumentStructure(true);
saveOptions.setEmbedFullFonts(true);
saveOptions.setPrettyFormat(true);
saveOptions.setFontEmbeddingMode(PdfFontEmbeddingMode.EMBED_NONE);
wdForPdf.save(baos, saveOptions);
byte[] docBytes = baos.toByteArray();
someObject.setFile(docBytes); // to store it in db
Please do the needful asap.
Thanks in advance!
Consent System Privacy Notice_TA.zip (1.4 MB)