Free Support Forum -

HTML generated from PDF shows URLs of links that overlap text

I have problem with conversion from PDF file containing lings to HTML format (using Aspose PDF for Java). URL that the link points to is shown and it mixes with other text. I attach both original PDF and screenshot of html result.

The code that is used for conversion is as follows:

Document document = new Document(in);
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
saveOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
saveOptions.LettersPositioningMethod = LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
saveOptions.setUseZOrder(true);, saveOptions);

Best Regards!
example.pdf (598.5 KB)
screenshot_of_conversion_to_html.png (139.2 KB)


Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFJAVA-38019 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.