From c792ab0fadaab6fe24a3c24caa9e5855d62fcf0a Mon Sep 17 00:00:00 2001 From: Julien R Date: Wed, 6 Aug 2025 10:36:02 +0200 Subject: [PATCH 1/5] nuget metadata --- src/Directory.Build.props | 4 ++-- .../nuget/src/Directory.Build.props | 12 ++++++------ .../nuget/src/PDFsharp.NuGet/Description.txt | 6 ++++++ .../src/PDFsharp.NuGet/PDFsharp.NuGet.csproj | 6 +++--- .../src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec | 2 +- .../nuget/src/PDFsharp.NuGet/README.md | 6 ++++++ .../nuget/src/PDFsharp.NuGet/ReleaseNotes.txt | 19 ++++++++++++++++++- 7 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index ec393bfd..2f5764e4 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -28,8 +28,8 @@ PDFsharp empira Software © 2025 empira - PDFsharp Team - empira Software GmbH + PDFsharp Team, KDS-NTG + KDS-NTG diff --git a/src/foundation/nuget/src/Directory.Build.props b/src/foundation/nuget/src/Directory.Build.props index 618588a9..c8a25500 100644 --- a/src/foundation/nuget/src/Directory.Build.props +++ b/src/foundation/nuget/src/Directory.Build.props @@ -1,4 +1,4 @@ - + @@ -12,11 +12,11 @@ @(ReleaseNotesFileContents->'%(Identity)', '%0d') ***** THIS IS A DEBUG BUILD - DO NOT PUBLISH *****%0d - - https://docs.pdfsharp.net - PDFsharp PDF creation - MigraDoc PDFsharp PDF Document Generation - + + https://github.com/KDS/PDFsharp/tree/pdfsharp-6-1-0-extended + PDFsharp PDF creation signature + MigraDoc PDFsharp PDF Document Generation + diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt b/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt index b6b011a5..0e823504 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt +++ b/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt @@ -3,3 +3,9 @@ PDFsharp is the Open Source library for creating and modifying PDF documents usi This package does not depend on Windows and can be used on any .NET compatible platform including Linux and macOS. See https://docs.pdfsharp.net for details. + +EXTENDED: this is an extended version with additional features: +* Digital signature (PKCS#7), signature timestamp from TSA +* Do not override XMP metadata if using option ManualXmpGeneration +* File attachment annotations +* Embedded file checksum property diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj index 1139a742..2688ce67 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj +++ b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj @@ -13,10 +13,10 @@ true true $(MSBuildThisFileDirectory)$(MSBuildProjectName).nuspec - PDFsharp - PDFsharp for Windows and Linux + PDFsharp-extended + PDFsharp for Windows and Linux, with extra features: digital signatures with timestamping, file attachment annotations, preservation of XMP data, etc. $(DebugBuildMessage)%0D$(NuGetDescription) - A .NET library for processing PDF. + A .NET library for processing PDF. With extra features: digital signatures with timestamping, file attachment annotations, preservation of XMP data, etc. $(NuGetTags_PdfSharp) diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec index 4c01c173..1daa9f52 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec +++ b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec @@ -15,7 +15,7 @@ $releaseNotes$ $copyright$ $tags$ - + $title$ diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/README.md b/src/foundation/nuget/src/PDFsharp.NuGet/README.md index 4e60f763..381872ef 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/README.md +++ b/src/foundation/nuget/src/PDFsharp.NuGet/README.md @@ -5,3 +5,9 @@ PDFsharp is the Open Source library for creating and modifying PDF documents usi This package does not depend on Windows and can be used on any .NET compatible platform including Linux and macOS. See [docs.pdfsharp.net](https://docs.pdfsharp.net) for details. + +EXTENDED: this is an extended version with additional features: +* Digital signature (PKCS#7), signature timestamp from TSA +* Do not override XMP metadata if using option ManualXmpGeneration +* File attachment annotations +* Embedded file checksum property \ No newline at end of file diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt b/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt index f5df80ae..007f8239 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt +++ b/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt @@ -1,6 +1,23 @@ -This is a version of PDFsharp compatible with .NET 6 and higher. +This is a version of PDFsharp compatible with .NET 6 and higher. The package ‘PdfSharp’ can be used on any platform including Windows and Linux. The Target Frameworks are ‘net6.0’, ‘net8.0’ and ‘netstandard2.0’. The packages ‘PDFsharp-gdi’ and ‘PDFsharp-wpf’ can be used under Windows only. The Target Frameworks are ‘net6.0-windows’, ‘net8.0-windows’ and ‘net462’. We also publish packages that contain PDFsharp plus MigraDoc. See the project docs site for further information: https://docs.pdfsharp.net/link/readme-v6.2.html + + + +PDFsharp-extended: + +v1.2.0 +* Synchronized with PdfSharp 6.1.0 (including natively multi-targeting netstandard/fx/net6) +* Ability to timestamp digital signatures with TSA (only on net6+) +v1.1.1 +* Fix issue #80 (allow detection of JPEG APP2 ICC_PROFILE headers) +v1.1.0 +* Merged PR#2 (ability to define on which page the signature is attached) +v1.0.2 +* Workaround for issue #69 (rendering special chars as unknown char instead of just crashing. proper support/fix is still to be done) +* Fix issue #71 (multiple PdfFileSpecification referencing the same PdfEmbeddedFileStream is now handled without crash) +v1.0.1 +* Fixed issue #61 (XImage.PointHeight returning width) \ No newline at end of file From 08001a78183edf01ca8c7e1365fc70c396c9b8cb Mon Sep 17 00:00:00 2001 From: Julien R Date: Tue, 11 Jun 2024 14:16:55 +0200 Subject: [PATCH 2/5] strong naming assemblies for .net framework file StrongnameKey.snk should be placed at repo's root when building --- .../PDFsharp/src/PdfSharp.Charting/PdfSharp.Charting.csproj | 6 ++++++ src/foundation/src/PDFsharp/src/PdfSharp/PdfSharp.csproj | 6 ++++++ .../src/shared/src/PdfSharp.Quality/PdfSharp.Quality.csproj | 6 ++++++ .../shared/src/PdfSharp.Snippets/PdfSharp.Snippets.csproj | 6 ++++++ .../src/shared/src/PdfSharp.System/PdfSharp.System.csproj | 6 ++++++ .../src/shared/src/PdfSharp.WPFonts/PdfSharp.WPFonts.csproj | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/src/foundation/src/PDFsharp/src/PdfSharp.Charting/PdfSharp.Charting.csproj b/src/foundation/src/PDFsharp/src/PdfSharp.Charting/PdfSharp.Charting.csproj index 0cb4ed7b..cb542354 100644 --- a/src/foundation/src/PDFsharp/src/PdfSharp.Charting/PdfSharp.Charting.csproj +++ b/src/foundation/src/PDFsharp/src/PdfSharp.Charting/PdfSharp.Charting.csproj @@ -8,6 +8,12 @@ ..\..\..\..\..\StrongnameKey.snk + + true + false + ..\..\..\..\..\..\StrongnameKey.snk + + true diff --git a/src/foundation/src/PDFsharp/src/PdfSharp/PdfSharp.csproj b/src/foundation/src/PDFsharp/src/PdfSharp/PdfSharp.csproj index 6fb9e5af..8e7d3feb 100644 --- a/src/foundation/src/PDFsharp/src/PdfSharp/PdfSharp.csproj +++ b/src/foundation/src/PDFsharp/src/PdfSharp/PdfSharp.csproj @@ -11,6 +11,12 @@ true + + true + false + ..\..\..\..\..\..\StrongnameKey.snk + + true diff --git a/src/foundation/src/shared/src/PdfSharp.Quality/PdfSharp.Quality.csproj b/src/foundation/src/shared/src/PdfSharp.Quality/PdfSharp.Quality.csproj index 997f5f03..055b91ac 100644 --- a/src/foundation/src/shared/src/PdfSharp.Quality/PdfSharp.Quality.csproj +++ b/src/foundation/src/shared/src/PdfSharp.Quality/PdfSharp.Quality.csproj @@ -7,6 +7,12 @@ ..\..\..\..\..\StrongnameKey.snk + + true + false + ..\..\..\..\..\..\StrongnameKey.snk + + true diff --git a/src/foundation/src/shared/src/PdfSharp.Snippets/PdfSharp.Snippets.csproj b/src/foundation/src/shared/src/PdfSharp.Snippets/PdfSharp.Snippets.csproj index f43843c7..e705bb9e 100644 --- a/src/foundation/src/shared/src/PdfSharp.Snippets/PdfSharp.Snippets.csproj +++ b/src/foundation/src/shared/src/PdfSharp.Snippets/PdfSharp.Snippets.csproj @@ -9,6 +9,12 @@ ..\..\..\..\..\StrongnameKey.snk + + true + false + ..\..\..\..\..\..\StrongnameKey.snk + + false diff --git a/src/foundation/src/shared/src/PdfSharp.System/PdfSharp.System.csproj b/src/foundation/src/shared/src/PdfSharp.System/PdfSharp.System.csproj index e817514b..baf02fe4 100644 --- a/src/foundation/src/shared/src/PdfSharp.System/PdfSharp.System.csproj +++ b/src/foundation/src/shared/src/PdfSharp.System/PdfSharp.System.csproj @@ -10,6 +10,12 @@ true + + true + false + ..\..\..\..\..\..\StrongnameKey.snk + + true diff --git a/src/foundation/src/shared/src/PdfSharp.WPFonts/PdfSharp.WPFonts.csproj b/src/foundation/src/shared/src/PdfSharp.WPFonts/PdfSharp.WPFonts.csproj index ba2d9d2f..3d4970e7 100644 --- a/src/foundation/src/shared/src/PdfSharp.WPFonts/PdfSharp.WPFonts.csproj +++ b/src/foundation/src/shared/src/PdfSharp.WPFonts/PdfSharp.WPFonts.csproj @@ -6,6 +6,12 @@ True ..\..\..\..\..\StrongnameKey.snk + + + true + false + ..\..\..\..\..\..\StrongnameKey.snk + true From 90d6a60873ab01904caca492c424386314d407b7 Mon Sep 17 00:00:00 2001 From: Julien R Date: Wed, 6 Aug 2025 10:37:32 +0200 Subject: [PATCH 3/5] allow gitversion to recognize pdfsharp-extended branch as a release config --- gitversion.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitversion.yml b/gitversion.yml index 19d2b4ec..f4c27692 100644 --- a/gitversion.yml +++ b/gitversion.yml @@ -20,7 +20,7 @@ branches: release: # Release and preview versions. # branch: release/6.0.0-preview-3 -- must be same as git tag without leading 'v'. # version: {6-0-0-preview-3} -- taken from git tag only - regex: ^(release[/-]|master) + regex: ^(release[/-]|master|pdfsharp-extended) # Must not have mode set to be mainline? increment: None tag: '' From da63390a74fb3412ca63589f000305bfc5643c2f Mon Sep 17 00:00:00 2001 From: Julien R Date: Tue, 11 Jun 2024 17:45:56 +0200 Subject: [PATCH 4/5] set correct Producer tool name to use in documents --- .../PdfSharp/Properties/PdfSharpProductVersionInformation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/foundation/src/PDFsharp/src/PdfSharp/Properties/PdfSharpProductVersionInformation.cs b/src/foundation/src/PDFsharp/src/PdfSharp/Properties/PdfSharpProductVersionInformation.cs index d989e384..32d470eb 100644 --- a/src/foundation/src/PDFsharp/src/PdfSharp/Properties/PdfSharpProductVersionInformation.cs +++ b/src/foundation/src/PDFsharp/src/PdfSharp/Properties/PdfSharpProductVersionInformation.cs @@ -17,7 +17,7 @@ public static class PdfSharpProductVersionInformation /// /// The title of the product. /// - public const string Title = "PDFsharp"; + public const string Title = "PDFsharp-extended"; /// /// A characteristic description of the product. From 6f504a6fa639a80fef8fbd918e0ae1c34e66e158 Mon Sep 17 00:00:00 2001 From: Julien R Date: Wed, 6 Aug 2025 10:53:44 +0200 Subject: [PATCH 5/5] 6.2.1 metadata adjustments for nuget --- src/foundation/nuget/src/Directory.Build.props | 2 +- src/foundation/nuget/src/PDFsharp.NuGet/Description.txt | 4 +++- .../nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj | 4 ++-- .../nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec | 2 +- src/foundation/nuget/src/PDFsharp.NuGet/README.md | 6 ++++-- src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt | 3 +-- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/foundation/nuget/src/Directory.Build.props b/src/foundation/nuget/src/Directory.Build.props index c8a25500..4a6e7b24 100644 --- a/src/foundation/nuget/src/Directory.Build.props +++ b/src/foundation/nuget/src/Directory.Build.props @@ -13,7 +13,7 @@ ***** THIS IS A DEBUG BUILD - DO NOT PUBLISH *****%0d - https://github.com/KDS/PDFsharp/tree/pdfsharp-6-1-0-extended + https://github.com/KDS/PDFsharp/tree/pdfsharp-6-2-1-extended PDFsharp PDF creation signature MigraDoc PDFsharp PDF Document Generation diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt b/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt index 0e823504..eab1affb 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt +++ b/src/foundation/nuget/src/PDFsharp.NuGet/Description.txt @@ -5,7 +5,9 @@ This package does not depend on Windows and can be used on any .NET compatible p See https://docs.pdfsharp.net for details. EXTENDED: this is an extended version with additional features: -* Digital signature (PKCS#7), signature timestamp from TSA * Do not override XMP metadata if using option ManualXmpGeneration * File attachment annotations * Embedded file checksum property +And bug fixes: +* https://github.com/empira/PDFsharp/issues/248 (signature failing when document is malformed) +* https://github.com/empira/PDFsharp/issues/71 (Exception when pointing multiple PdfFileSpecification to a single PdfEmbeddedFileStream) \ No newline at end of file diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj index 2688ce67..8ba63529 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj +++ b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.csproj @@ -14,9 +14,9 @@ true $(MSBuildThisFileDirectory)$(MSBuildProjectName).nuspec PDFsharp-extended - PDFsharp for Windows and Linux, with extra features: digital signatures with timestamping, file attachment annotations, preservation of XMP data, etc. + PDFsharp for Windows and Linux, with extra features: file attachment annotations, embedded file checksum, preservation of XMP data, and bug fixes. $(DebugBuildMessage)%0D$(NuGetDescription) - A .NET library for processing PDF. With extra features: digital signatures with timestamping, file attachment annotations, preservation of XMP data, etc. + A .NET library for processing PDF. With extra features: file attachment annotations, embedded file checksum, preservation of XMP data, and bug fixes. $(NuGetTags_PdfSharp) diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec index 1daa9f52..cdade499 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec +++ b/src/foundation/nuget/src/PDFsharp.NuGet/PDFsharp.NuGet.nuspec @@ -15,7 +15,7 @@ $releaseNotes$ $copyright$ $tags$ - + $title$ diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/README.md b/src/foundation/nuget/src/PDFsharp.NuGet/README.md index 381872ef..ec206725 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/README.md +++ b/src/foundation/nuget/src/PDFsharp.NuGet/README.md @@ -7,7 +7,9 @@ This package does not depend on Windows and can be used on any .NET compatible p See [docs.pdfsharp.net](https://docs.pdfsharp.net) for details. EXTENDED: this is an extended version with additional features: -* Digital signature (PKCS#7), signature timestamp from TSA * Do not override XMP metadata if using option ManualXmpGeneration * File attachment annotations -* Embedded file checksum property \ No newline at end of file +* Embedded file checksum property +And bug fixes: +* https://github.com/empira/PDFsharp/issues/248 (signature failing when document is malformed) +* https://github.com/empira/PDFsharp/issues/71 (Exception when pointing multiple PdfFileSpecification to a single PdfEmbeddedFileStream) \ No newline at end of file diff --git a/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt b/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt index 007f8239..c8a45500 100644 --- a/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt +++ b/src/foundation/nuget/src/PDFsharp.NuGet/ReleaseNotes.txt @@ -10,8 +10,7 @@ https://docs.pdfsharp.net/link/readme-v6.2.html PDFsharp-extended: v1.2.0 -* Synchronized with PdfSharp 6.1.0 (including natively multi-targeting netstandard/fx/net6) -* Ability to timestamp digital signatures with TSA (only on net6+) +* Synchronized with PdfSharp 6.2.1 (including natively multi-targeting netstandard/fx/net6 and digital signatures) v1.1.1 * Fix issue #80 (allow detection of JPEG APP2 ICC_PROFILE headers) v1.1.0