Dears ,
I’m evaluating GroupDocs.Viewer_20.1.1 version , documents have Arabic letters were converting correctly from (Word file to PDF file and Excel file to PDF file ) , but when convert from (XML file to PDF and TXT file to PDF file ) the Arabic letter will change the something unreadable . I have attached them .
In order to resolve the issue please set charset to UTF-8 as shown in the code snippet:
LoadOptions loadOptions = new LoadOptions();
loadOptions.setCharset(Charset.forName("UTF-8"));
PdfViewOptions viewOptions = new PdfViewOptions(filePath + ".pdf");
Viewer viewer = new Viewer(filePath, loadOptions);
viewer.view(viewOptions);
viewer.close();
By default, it uses default system charset Charset.defaultCharset(). When loading TXT and XML files it makes Arabic characters to be rendered incorrectly. Please follow the above code and let us know if issue persists.
Hi ,
the below code is working fine in stand alone java application , but when hosting in server loadOptions is not loading uft config , the Arabic showing wrongly
LoadOptions loadOptions = new LoadOptions();
loadOptions.setCharset(Charset.forName(“UTF-8”));
PdfViewOptions options = new PdfViewOptions(output_path+outputFile); // pdf path
Viewer viewer;
viewer = new Viewer(input_path,loadOptions);
viewer.view(options);
viewer.close();
any explications for this case .
Regards ,
Elwalied .
We have test the GroupDocs.Viewer-free version and it’s working fine
and show two pages as evaluation , please confirm the full version will show all documents pages . this raised by management .
Yes, when you apply API license, you’ll get all document pages without evaluation mark. Even you can evaluate API using a temporary license, that you can request here.