Hi,
we try to load load html-files as a pdfdocument with
new Document(“c:/temp/test.html”, new HtmlLoadOptions()).
I works fine on Windows, but on our Linux server (RHEL7) we get an error:
“Requested font type subsetting is not supported”
we use aspose-pdf for java 19.2
htmlpdf.zip (16.9 KB)
Kind regards, Josef
@dvtdaten
Thanks for contacting support.
We were able to replicate the issue in our environment (i.e. Linux ubuntu 15.04) using following code snippet:
HtmlLoadOptions htmloptions = new HtmlLoadOptions(dataDir);
try {
InputStream is = new FileInputStream(dataDir + "test.html");
OutputStream os = new FileOutputStream(dataDir + "ToConvert.pdf");
// Load HTML file
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(is, htmloptions);
doc.save(os, com.aspose.pdf.SaveFormat.Pdf);
}
catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
For the sake of correction, we have logged it as PDFJAVA-38452 in our issue tracking system. We will further investigate reasons behind this issue and keep you posted with the status of its correction. Please be patient and spare us little time.
We are sorry for the inconvenience.
FYI: Using Aspose.PDF for Java 19.8 we cannot reproduce this issue anymore.
@dvtdaten
Thanks for the acknowledgment.
We appreciate your feedback and it is good to know that your issue has been resolved. In case of any assistance, please feel free to let us know.
The issues you have found earlier (filed as PDFJAVA-38452) have been fixed in Aspose.PDF for Java 19.11.