If it is true about “font not found” when saving, is there any way to set default font for saving even without the specific font required
craigabyss:Hi there,I am using pdf 11.1.0 to convert pdf files to html.I got an exception in linuxclass com.aspose.pdf.exceptions.FontNotFoundException: Font Helvetica can not found.com.aspose.pdf.internal.p53.z29.m27(Unknown Source)com.aspose.pdf.internal.p42.z1.m1(Unknown Source)com.aspose.pdf.internal.p42.z3.m1(Unknown Source)com.aspose.pdf.internal.p32.z7.m3(Unknown Source)com.aspose.pdf.internal.p32.z7.m4(Unknown Source)com.aspose.pdf.internal.p32.z7.m2(Unknown Source)com.aspose.pdf.internal.p32.z7.m2(Unknown Source)com.aspose.pdf.ApsUsingConverter.m1(Unknown Source)com.aspose.pdf.z37.m1(Unknown Source)com.aspose.pdf.ADocument.save(Unknown Source)com.aspose.pdf.Document.save(Unknown Source)And my code would be like this:Document pdf = new Document("custom/input/pdf/Redis.pdf");HtmlSaveOptions htmlSaveOps = new HtmlSaveOptions();pdf.save("custom/output/pdf/Redis.html", htmlSaveOps);this pdf should be in the attachement.Please take a look and help me solve this problem, thanks :)
Thanks for your solution
Hi Craig,craigabyss:Thanks for your solutionHowever if Aspose cannot find fonts which is required for conversion, could it use default font for it?Furthermore, we cannot assure that we have all fonts we need to convert client’s pdf file, right?Besides, we have to care about the fonts’(from microsoft) copyright or it may cause some legal problems
The issues you have found earlier (filed as PDFNEWJAVA-35503) have been fixed in Aspose.Pdf for Java 11.5.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.