Spire.PDF 3.8.158 supports to draw content with spot color

Spire.PDF

We are pleased to announce a new hotfix version-Spire.PDF 3.8.158 today. In this version. Spire.PDF supports to draw content with spot color. We also fixed the bugs for this version especially for the print function. Viewing the following full description of its enhanced features:

New Features:

  • Support to draw content with spot color.
  • PdfDocument pdf = new PdfDocument();
    PdfPageBase page = pdf.Pages.Add();
    PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", Color.Red);
    //Light
    PdfSeparationColor color = new PdfSeparationColor(cs, 0.1f);
    PdfSolidBrush brush = new PdfSolidBrush(color);
    page.Canvas.DrawString("Test spot color by E-iceblue with 0.1 tints!", new PdfFont(PdfFontFamily.Helvetica, 13f), brush, PointF.Empty);
    //Medium
    color = new PdfSeparationColor(cs, 0.5f);
    brush = new PdfSolidBrush(color);
    page.Canvas.DrawString("Test spot color by E-iceblue with 0.5 tints!", new PdfFont(PdfFontFamily.Helvetica, 13f), brush, new PointF(0, 20));
    //Darkest
    color = new PdfSeparationColor(cs, 1);
    brush = new PdfSolidBrush(color);
    page.Canvas.DrawString("Test spot color by E-iceblue with 1.0 tints!", new PdfFont(PdfFontFamily.Helvetica, 13f), brush, new PointF(0, 40));
    pdf.SaveToFile("SpotColor.pdf");
    

Bug solutions:

  • Fixes the issue that caused the image lost when printing the PDF document.
  • Fixes the issue that badly formed dictionary next should be a name before 809.
  • Resolves the issue where creationDate and modificationDate about attachment in PDF were get incorrectly.
  • Fixes the issue where the watermark didn't work when loading XPS and adding a watermark to each page and then saving it as a Pdf.

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

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