I got corrupted PDF document when converting XLS to PDF.
The documents attached.
Also, during opening this document via Acrobat Reader I got error "Cannot extract the embedded font ‘FAAAAH+LucidiaSans’. Some characters may not display or print correctly."
Well, I do not set any font path in my original program, I am using Windows 7. I have all the required fonts used in your file installed on my pc.
I just gave you the example that you should specify the font directory path before converting to PDF. Please make sure that your required fonts are installed on your system or you have all the required fonts copied into your windows server’ font directory and you have specified the font directory in your code.
Earlier, we used to search fonts which does not require the font directory path explicitly. But it required administrative rights because we need to access some restricted objects like for example registry. So in order to increase performance, we have now adopted this approach. Now, a user explicitly tells us the path of his font directories etc.
For example, XLS was created using the some exotic font. I don’t have this font on my server and I just want to convert XLS to PDF properly and make it readable (i.e. replace unknown font by some existing font).
Please spare us some time. We are working over your issue by setting up your environment (Windows Server 2003 etc.) and then we will test your issue on it. We will get back to you soon
Exactly, I don’t have Lucida Sans font on the server. So this is my question:
I can have XLS files with some unknown fonts references (they may be commercial proprietary fonts which unavailable for me), but I need to get readable rendered PDF.
Could you implement ability to replace all unknown and unavailable fonts by standard fonts (by Times or Arial)?
Exactly, I don't have Lucida Sans font on the server. So this is my question:
I can have XLS files with some unknown fonts references (they may be commercial proprietary fonts which unavailable for me), but I need to get readable rendered PDF.
Could you implement ability to replace all unknown and unavailable fonts by standard fonts (by Times or Arial)?
Hi,
Thanks for your posting and using Aspose.Cells for Java.
Please try the following code and let us know your run results.
Java
PdfSaveOptions opts = new PdfSaveOptions();
opts.setDefaultFont("Times New Roman");
Thanks for your posting and using Aspose.Cells for Java.
Please download and try the latest version: Aspose.Cells
for Java v7.5.0.2.We will try to use java logic font instead when no proper physical font can be
found when rendering now.