Version 26.6 Release Notes - SelectPdf Library for .NET | |
Encryption and digital signature fixes, PDF/A-3 file attachments, Chromium engine fixes, engine packages for packages.config projects and ASP.NET Web Sites, and .NET 11.
Engine packages in packages.config projects - the Chromium and Blink engine packages now deploy the engine with the application in projects that use packages.config (ASP.NET Web Forms and MVC 5 applications, older desktop projects), on build and on publish. For an ASP.NET Web Site (a site without a project file), see Installation.
PDF/A-3 file attachments - a PDF/A-3 document can carry file attachments.
.NET 11 - the library runs on .NET 11.
AI coding assistants - the main NuGet packages include an agent skill for AI coding assistants.
Web fonts - the Chromium engine waits for web fonts that are still loading before it converts the page, so text added by a script after the page loads keeps its font.
Securing a document with empty passwords and restricted permissions lets anyone open the file, and the restrictions apply. With empty passwords and no restrictions, the document is not encrypted.
PdfDocument.Append keeps the page labels of the appended document. Appending a document to itself throws PdfDocumentException: load the document a second time and append that copy.
PdfToText.ExtractText throws PdfToTextException for a page number that is not a page of the document.
With the Chromium engine, a page that calls window.print() is converted normally. Earlier versions waited until the conversion timed out.
With the Chromium engine and EnableOfflineMode, a URL to a local file or an HTML string no longer loads images, styles or scripts from the network.
When the engine folder cannot be found, the error message names the folders that were searched and how to fix it (install the engine package, copy the engine folder next to the application, or set CefEnginePath / BlinkEnginePath).
Encryption - encrypted files open in every PDF viewer, including AES-256 files with passwords that contain non-ASCII characters. Securing, unsecuring and re-saving a document keeps its document information and metadata, and an encrypted PDF loaded with its password saves correctly. Bookmark titles of encrypted documents are read correctly. Some AES-256 files opened with the owner password gave unreadable content.
Digital signatures - signatures made with PdfDigitalSignatureElement are accepted by signature validators. Signing works with AES-256 protected PFX files. A time-stamp server that returns an invalid reply gives an error that names the server. A crash when signing under heavy load is fixed.
Embedded files - attached files are listed under their file names, an attachment can be added from a stream that is closed before the document is saved, and the files of PdfPortfolioManager keep the names they were given.
Chromium engine - a page with smooth scrolling no longer has its sticky header drawn over the content; a right-to-left page is no longer shifted sideways and cut off; an empty HTML string converts to an empty page instead of failing; an image conversion of an HTML string with a local base URL is refused when local file access is denied, as the PDF conversion is.
The Chromium and Blink engines work from folders with paths longer than 260 characters.
With the WebKit engine, hyphens, spaces, semicolons and middle dots are extracted from the PDF as they were typed.
Security kept - PdfManager saves a password protected document with the same security it was loaded with. Earlier versions saved it unprotected. Set the new RemoveSecurity property before loading to save it unprotected.
A PDF protected only with an owner password opens from a stream and from a byte array, as it does from a file.
PdfFormManager.Save saves a PDF that has no form instead of throwing NullReferenceException.
PdfCompressor with RemoveUnusedFontGlyphs makes the fonts smaller; earlier versions left them unchanged.
DocumentInformation.LastModifiedDate is the modification date of the loaded file, not the time it was loaded.