Spire.PDF hotfix 3.9.407 supports to convert PDF into Html stream

Spire.PDF

We're pleased to announce that the hotfix version of Spire.PDF 3.9.407 is available today. This version supports to convert PDF into Html stream, to convert PDF to SVG with specified height and width, and to compress images using TryCompressImage method. Apart from the new features, the latest update also improves the performance by fixing numerous bugs. View details below.

New Features:

  • Supports to convert PDF into Html stream.
  • doc.SaveToStream(Stream, FileFormat.HTML);
    
  • Adds new method TryCompressImage to compress image in PDF for reducing the size of PDF.
  • PdfDocument doc = new PdfDocument("647.pdf");
    doc.FileInfo.IncrementalUpdate = false;
    foreach (PdfPageBase page in doc.Pages)
    {
        foreach (PdfImageInfo info in page.ImagesInfo)
        {
            bool success = page.TryCompressImage(info.Index);
        }
    }
    doc.SaveToFile("Output.pdf");
    
  • Supports to convert PDF to SVG with custom height and width.
  • using (PdfDocument pdf = new PdfDocument(xxx.pdf))
    {
        pdf.ConvertOptions.SetPdfToSvgOptions(540f, 278f);
        pdf.SaveToFile(xxx.svg, FileFormat.SVG);
    }
    

Bug Fixes:

  • Fixes the issue that the text was flipped and cut off when converting PDF to image.
  • Fixes the issue that caused black background of image when printing.
  • Fixes the issue that caused wrong signature after multiple signatures.
  • Fixes the issue that the attachment cannot be added in PDF.
  • Fixes the issue that the data in the fields were missing when converting to image.
  • Fixes the issue that content cannot be printed in the center when using ActualSize and AutoPortraitOrLandscape.
  • Fixes the issue that caused NullReferenceException when converting PDF to XPS.
  • Fixes the issue that caused exception when loading XPS when system language is Russian.
  • Fixes the issue that caused messy code when extracting text.
  • Fixes the issue that content was cut off when printing.
  • Fixes the issue that the method VerifySignature returned wrong Boolean value.
  • Fixes the issue that the accents above some characters were printed at wrong position.

Get the most recent version of Spire.PDF 3.9.407 here:
More information of Spire.PDF new release or hotfix: