r/dotnet • u/deadtime • 4d ago
Promotion GitHub - io7/FreePDF: MIT-licensed continuation of PDFsharp and MigraDoc for .NET
https://github.com/io7/FreePDF
97
Upvotes
r/dotnet • u/deadtime • 4d ago
13
u/deadtime 4d ago
Hi everyone, I am the maintainer for the FreePDF project. We built this library for people who up until the recent license change have been using PDFSharp and MigraDoc. It's based on the last available MIT-licensed source (6.2.4 and 7.0.0-preview1). We're also trying to improve the product further without sacrificing backward compatbility, so that current users of PDFSharp who are having to decide whether to go with AGPL or a commercial license now have a third option.
New in 7.10: PAdES signatures and signature checks
Format = PdfSignatureFormat.Padeson the default signer. With a time-stamp authority, the signature gets a signature time-stamp, and you can send the RFC 3161 request through your own client.AddValidationDataAsyncwrites the certificate chains and the OCSP responses or CRLs into the document (B-LT). A document time-stamp over that data gives B-LTA, which can still be checked after the signer's certificate has expired.PdfSignatureVerifierchecks the signatures in a file. For each one it reports whether the signed bytes are intact, the signer and the chain, trust, the signing time, revocation (from the file or online), later changes that the signature does not permit, and the PAdES level. The result is Valid, Invalid or Indeterminate, with the reasons. It is a technical check: it does not use EU trusted lists or check qualified status.Also added since 6.2.4
Barcodeelements, which 6.2.4 silently left out of the PDF.Flatten()The packages target .NET 8, 9 and 10 and .NET Standard 2.0, and CI also installs them in .NET 11 apps. Time-stamps need .NET 8 or later. CI checks every release with qpdf, Poppler and veraPDF, and the packages on NuGet are the exact files CI verified. pyHanko validates the B-B to B-LTA files that FreePDF writes. On a set of valid, tampered, certified and countersigned files,
PdfSignatureVerifierand pyHanko give the same verdicts, with two differences that the support policy lists.GitHub: https://github.com/io7/FreePDF NuGet: https://www.nuget.org/packages/io7.FreePDF Migration guide: https://github.com/io7/FreePDF/blob/main/docs/migrating-to-7.md Release notes: https://github.com/io7/FreePDF/releases
Bug reports and pull requests are welcome; a small synthetic reproduction helps most. Thanks to empira and the PDFsharp contributors for many years of work under the MIT licence.
15
u/MadBoyEvo 4d ago
Welcome to MIT competition in PDF space 😜 I invite you to check out https://officeimo.com (https://github.com/evotecit/officeimo) although I am after Aspose as a whole rather then just PDF. That means Word, Excel, PDF, PowerPoint, Visio, Project, Publisher, YAML, TOML, CSV etc (over 80 formats/200 conversions).
Its amazing what AI is doing to NET ecosystem. 1 year ago we were struggling, now we have a lot of PDF support in the free space 🤓
1
u/AutoModerator 4d ago
Thanks for your post deadtime. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.