Hello,
Your support seems offline, one of the team member said he has waited for 3 hours, and no reply from Aspose support. hope you will be able to assist further.
Hello,
Your support seems offline, one of the team member said he has waited for 3 hours, and no reply from Aspose support. hope you will be able to assist further.
Hi,
Thanks for reply. Can you give me an idea on when we will be able to get an answer to the above issue? If you can tell me when the public holiday until?
Hi,
Hi,
Thanks for contacting support and sorry for the delayed response.
Please share some details regarding the requirement you are trying to accomplish using our API and also please share some resources (code snippet and input resource files) which can help us in replicating this issue in our environment. We are sorry for this inconvenience.
Hello,
Document pdfDocument = new Document(sourceFilePath);
pdfDocument.save(sourceFilePath + “.html”, SaveFormat.Html);
Hi,
Hello,
Hi,
Hello, any update yet?
Hi,
Hello!
We have tried to change properties of saving according to documentation: Convert PDF file to HTML format|Aspose.PDF for Java
We don’t get error on windows machine, but we manage to get it on linux machine even with new saving options and new file.
Please find the other attached sample document (SamplePdf.pdf) and the other code snippet:
pdfDocument = new Document(sourceFilePath);
HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.Html);
saveOptions.setFixedLayout(true);
saveOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
saveOptions.LettersPositioningMethod =
LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
saveOptions.RasterImagesSavingMode =
HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
saveOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
pdfDocument.save(sourceFilePath + HTML_EXTENSION, saveOptions);
P.S. We use aspose-pdf 10.6.2
Thanks
Hi,
We use the following:
Document pdfDocument = new Document(sourceFilePath);pdfDocument.save(sourceFilePath + “.html”, SaveFormat.Html);
Please also try the file attached on example that we get the error
Please let us know if you have an update?
Thanks
Hi,
Hello,
Hi.
Hi,
Thanks for sharing the details. During my testing, I have observed that all the documents shared in this thread are zero bytes and they appear to be broken. Can you please double check at your end.
File as attached
Can you please respond to my questions too about specifying a default font and font locations:
efcdev:1) How to specify where to look for fonts for all input or output documents
You can specify the font path where required fonts can be found and currently you cannot specify a default font which can be used, if required fonts are found missing over system. However I will discuss this requirement with product team and will let you know. We are sorry for this inconvenience.efcdev:2) How to specify the default font if a search for a font of any type fails (ideally thus if a specific font is not found then we would still complete the transformation and set a default font to use as a failsafe)?