News & Releases
|
|

Spire.PDF 7.5.7 adds new features related to timestamp servers
We are happy to announce the release of Spire.PDF 7.5.7. This version adds new features related to timestamp servers, enhances the conversions from PDF to Image/Excel/SVG and also fixes the issues occurred in the process of printing and merging PDF. More details are listed as follows.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | SPIREPDF-4222 | The PdfOrdinarySignatureMaker API supports digitally signing a PDF document with a timestamp server.
static void Main(string[] args)
{
X509Certificate2 x509 = new X509Certificate2(inputFile_pfx, password);
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(inputFile);
PdfPKCS7Formatter formatter = new PdfPKCS7Formatter(x509, false);
formatter.TimestampService = new TSAHttpService("http://time.certum.pl");
PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, formatter);
IPdfSignatureAppearance signatureAppearance = new PdfCustomSignatureAppearance();
signatureMaker.MakeSignature("sign", doc.Pages[0], 100, 100, 100, 100, signatureAppearance);
doc.SaveToFile(outputFile, FileFormat.PDF);
doc.Close();
}
public class PdfCustomSignatureAppearance : IPdfSignatureAppearance
{
public void Generate(PdfCanvas g)
{
float fontSize = 10;
PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Arial", fontSize), true);
g.DrawString("AAAAAAAAAAA", font, PdfBrushes.Red, new PointF(0, 0));
}
}
|
| New feature | SPIREPDF-4226 | Supports setting the username and password of the timestamp server when digitally signing a PDF document.
string url = "http://test1.tsa.cn/tsa"; signature.ConfigureTimestamp(url, "tsademo", "tsademo"); |
| Bug | SPIREPDF-2785 | Fixes the issue that the content was incorrect after converting PDF to images. |
| Bug | SPIREPDF-4134 | Fixes the issue that the added signature was invalid. |
| Bug | SPIREPDF-4223 | Fixes the issue that the signing time of the added signature was incorrect. |
| Bug | SPIREPDF-4231 | Fixes the issue that the console printed the text "-------------AGAIN" when converting PDF to Excel. |
| Bug | SPIREPDF-4232 | Fixes the issue that the content was incorrect after converting XPS to PDF. |
| Bug | SPIREPDF-4248 | Fixes the issue that the printout was incorrect after printing the PDF. |
| Bug | SPIREPDF-4258 | Fixes the issue that an error prompted when opening the result file after merging the PDF files. |
| Bug | SPIREPDF-4262 | Fixes the issue that it failed to get the correct image location when using .NET Standard library. |
| Bug | SPIREPDF-4263 | Fixes the issue that the text location was changed after flattening the fields. |
| Bug | SPIREPDF-4265 | Removes the set method of Security.Permissions. |
| Bug | SPIREPDF-4270 | Fixes the issue the generated file did not conform to the standard of PDF/A-3B after digital signing PDFA/3B files. |
| Bug | SPIREPDF-4297 | Fixes the issue there were content errors after converting PDF to SVG. |
Click the link to download Spire.PDF 7.5.7:
More information of Spire.PDF new release or hotfix: