We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot Edit Chinese Characters in the word(.doc and .docx) generated from Pdf

When I edit the word(.doc and .docx) document, I am not able to edit the chinese characters. It shows up as a image and on deleting it deletes the entire styling of the word document.

The text box which comes for editing of english sentences does not show up for chinese characters

image.png (64.4 KB)

@binesh.narayanan

Would you please share your sample input file along with complete code snippet. We will test the scenario in our environment and address it accordingly.

Hi @asad.ali , sending the requested files
public void convert(String inputFileName) {
String fileName = “Aspose.PDF.lic”;
ClassLoader classLoader = getClass().getClassLoader();
try (InputStream inputStream = classLoader.getResourceAsStream(fileName)) {
License license = new License();
license.setLicense(inputStream);
} catch (Exception e) {
e.printStackTrace();
}
Document pdoc = new Document(dir + inputFileName);
System.out.println(“Starting “+inputFileName+” to “+inputFileName+”.docx”);
pdoc.save(dir + inputFileName +".docx", SaveFormat.DocX);
System.out.println(“Done “+inputFileName+” to “+inputFileName+”.docx”);
System.out.println(“Starting “+inputFileName+” to “+inputFileName+”.doc”);
pdoc.save(dir + inputFileName +".doc", SaveFormat.Doc);
System.out.println(“Done “+inputFileName+” to “+inputFileName+”.doc”);
}

@binesh.narayanan

We were able to reproduce the issue in our environment while testing the scenario using Aspose.PDF for Java 20.8. Therefore, we have logged it as PDFJAVA-39699 in our issue tracking system. We will further look into its details and keep you posted with the status of its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

Ok @asad.ali

Thanks for the response