Spire.PDF 6.12.3

Spire.PDF 6.12.3 supports adding page label

We are glad to announce the release of Spire.PDF 6.12.3. This version supports adding page label as well as supports converting PDF to PDFX1A, and also enhances the conversions from PDF to Image/TIFF. More details are listed as follows.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPDF-3736 Supports adding page label
//When PDF file doesn't have page labels
PdfDocument doc = new PdfDocument(inputFile);
doc.PageLabels = new PdfPageLabels();
doc.PageLabels.AddRange(0, PdfPageLabels.Decimal_Arabic_Numerals_Style, "label ");
doc.SaveToFile(outputPDF);

//When PDF file has page labels
PdfDocument doc = new PdfDocument(inputFile);
PdfPageLabels label = doc.PageLabels;
label.AddRange(2, PdfPageLabels.Decimal_Arabic_Numerals_Style, "new label ");
doc.SaveToFile(outputPDF);
New Feature SPIREPDF-993
SPIREPDF-3652
Supports converting PDF to PDFX1A.
PdfStandardsConverter converter = new PdfStandardsConverter("in.pdf");
converter.ToPdfX1A2001("out.pdf");
New Feature SPIREPDF-3284
SPIREPDF-3649
Supports customizing text/image's locations when adding digital signatures.
signature.ConfigureCustomGraphics(DrawGraphics);
private void DrawGraphics(PdfCanvas g)
{
g.DrawString("Signed by:Tom", new PdfFont(PdfFontFamily.Helvetica, 12f), PdfBrushes.Red, new Rectangle(0, 0, 120, 20));
string inputFile = "C:/image.png";
PdfImage img = PdfImage.FromFile(inputFile);
g.DrawImage(img, 0, 60, 150, 50);
}
Bug SPIREPDF-844 Fixes the issue that the signed PDF could not be opened with foxit reader.
Bug SPIREPDF-1620 Fixes the issue that the application threw "out of memory" exception when retrieving images.
Bug SPIREPDF-2681 Fixes the issue that the content was incorrect when converting PDF to Image.
Bug SPIREPDF-3640 Fixes the issue that the annotations were missing when converting PDF to Tiff.
Bug SPIREPDF-3759 Fixes the issue that the images were missing when printing PDF.
Bug SPIREPDF-3776 Fixes the issue that content overlapped when adding superscript and parenthesis in PdfGrid cell.
Click the link to download Spire.PDF 6.12.3:
More information of Spire.PDF new release or hotfix: