Aspose.Pdf for .NET logo

For the last few releases we have focused on improving the PDF‑to‑HTML conversion feature. In the latest version, Aspose.PDF for .NET 9.1.01, we added several enhancements. When converting large PDFs to HTML, you may need to monitor conversion progress (for example, the number of pages processed). To support this, we introduced the CustomProgressHandler property in HtmlSaveOptions. See the detailed guide on determining PDF to HTML conversion progress.

PDF to HTML - Place Text Position Information as Inline Style

The new release embeds text positions directly in the HTML using inline styles with position:absolute, for example:

<div style="position:absolute; top:3.2953em; left:12em;">
<span class="pages_12345_06 pages_12345_07 pages_12345_08" style="word-spacing:-0.27em;">

PDF to HTML - Avoid Saving Images in SVG Format

A common request was to eliminate SVG images from the conversion output. We added a new member to the HtmlSaveOptions.RasterImagesSavingModes enumeration to control this behavior. Full instructions are available in the PDF to HTML - Avoid Saving Images in SVG Format article.

Control Image Quality when Adding Stamp

You can now set image quality for stamps using the Quality property of the ImageStamp class (value range 0‑100%). This gives you precise control over the visual fidelity of stamped images. Learn more in the Adding Image Stamp to PDF file documentation.

Insert Metadata with Prefix

When adding XMP metadata, you can register a custom namespace prefix. Example:

Document pdfDocument = new Document("input.pdf");
pdfDocument.Metadata.RegisterNamespaceUri("xmp", "http://ns.adobe.com/xap/1.0/"); // xmlns prefix was removed
pdfDocument.Metadata["xmp:ModifyDate"] = DateTime.Now;
pdfDocument.Save("updated.pdf");

For additional details, see Set XMP Metadata in PDF File.

Render Table on New Page

Previously, only the Aspose.Pdf.Generator namespace supported rendering a table on a new page. The new IsInNewPage property in the BaseParagraph class now provides this capability across the API. Refer to Render Table in New Page for usage examples.

Improved Signing Feature

We introduced the DocMDPSignature class and the DocMDPAccessPermissions enumeration to enable advanced digital signing of PDF files. The IsCertified property was also added to PdfFileSignature. More information is available in the Digitally Sign PDF Files guide.

In addition to these highlights, we have refined PDF‑to‑HTML conversion, HTML‑to‑PDF conversion, image‑to‑PDF, PDF‑to‑image, stamping, text manipulation, PDF‑to‑XPS conversion, and content extraction features.

Download and explore the new capabilities of Aspose.PDF for .NET 9.1.07.