Spire.PDF 3.8.121 supports to link to a destination in attachment

Spire.PDF

We are pleased to announce a new hotfix version-Spire.PDF 3.8.121 today. In this version. Spire.PDF supports to link to a destination in attachment and create cloud markup. We also improves the performance of Spire.PDF conversion feature and print feature. Viewing the following full description of its enhanced features:

New Features:

  • Support to link to a destination in attachment ("GoToE" action).
  • using (PdfDocument pdf = new PdfDocument())
    {
        PdfPageBase page = pdf.Pages.Add();
        PdfAttachment attachment = new PdfAttachment(inputFolder);
        pdf.Attachments.Add(attachment);
        string text = "Test embedded go-to action by burning! Click this will open the attachment PDF in a new window and go to the 2nd page at (0,842) which has 200% zoom factor.";
        PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Arial", 13f));
        float width = 480f;
        float height = font.Height * 2.2f;
        RectangleF rect = new RectangleF(0, 0, width, height);
        page.Canuas.DrawString(text, font, PdfBrushes.Black, rect);
        PdfDestination dest = new PdfDestination(1, new PointF(0, 842), 2f);
        PdfEmbeddedGoToAction action = new PdfEmbeddedGoToAction(attachment.FileName, dest, true);
        PdfActionAnnotation annotation = new PdfActionAnnotation(rect, action);
        (page as PdfNewPage).Annotations.Add(annotation);
        pdf.SaveToFile(outputFolder + "929.pdf");
    }
    
  • Support to create cloud markup.
  • using (PdfDocument pdf = new PdfDocument())
     {
         PdfPageBase page = pdf.Pages.Add();
         page.Canvas.DrawString("Test Polygon Annotation by Burning!", new PdfFont(PdfFontFamily.Helvetica, 13f), PdfBrushes.Black,
         PointF.Empty);
         PdfPolygonAnnotation polygon = new PdfPolygonAnnotation(page, new PointF[] { new PointF(0, 30), new PointF(30, 30), new PointF(30, 60), new PointF(0, 60), new PointF(0, 30) });
         polygon.Color = Color.Lime;
         polygon.Text = "Test Polygon annotation by Burning!";
         polygon.Author = "Burning";
         polygon.Subject = "Polygon";
         polygon.BorderEffect = PdfBorderEffect.BigCloud;
         polygon.ModifiedDate = DateTime.Now;
         (page as PdfNewPage).Annotations.Add(polygon);
         pdf.SaveToFile(outputFolder + "out942.pdf");
     }
    

Bug solutions:

  • Fixes the issue that caused wrong content when printing PDF.
  • Fixes the issue that caused IndexOutOfRangeException when converting PDF to image.
  • Fixes the issue that caused the layer blending wrong when converting PDF to image.
  • Fixes the issue that caused "unknown segment in GBIG2 stream" exception when converting PDF to image.
  • Fixes the issue that caused blank image when converting PDF to image.
  • Fixes the issue that caused incorrect bookmark when use Pdfdoc.InsertPage method.
  • Fixes the issue that caused content lost when loading PDF file.
  • Fixes the issue that caused some text is unable to be found.
  • Fixes the issue that caused NullReferenceException when gets PdfFormWidget.

Get the most recent version of Spire.PDF 3.8.121 here:

http://www.e-iceblue.com/Download/download-pdf-for-net-now.html