Skip to content

Commit 3d3918f

Browse files
committed
bugfixes and version dump
1 parent 9080674 commit 3d3918f

File tree

4 files changed

+35
-38
lines changed

4 files changed

+35
-38
lines changed

ZUGFeRD.PDF.Test/ZUGFeRD.PDF.Test.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZUGFeRD.PDF.Test", "ZUGFeRD
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZUGFeRD.PDF", "..\ZUGFeRD.PDF\ZUGFeRD.PDF.csproj", "{CDDB1672-F63B-4469-ABCA-B0B293C85697}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZUGFeRD", "..\ZUGFeRD\ZUGFeRD.csproj", "{2FCAE01A-C1A1-4CB4-A1D4-FC6A342BA681}"
11-
EndProject
1210
Global
1311
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1412
Debug|Any CPU = Debug|Any CPU
@@ -23,10 +21,6 @@ Global
2321
{CDDB1672-F63B-4469-ABCA-B0B293C85697}.Debug|Any CPU.Build.0 = Debug|Any CPU
2422
{CDDB1672-F63B-4469-ABCA-B0B293C85697}.Release|Any CPU.ActiveCfg = Release|Any CPU
2523
{CDDB1672-F63B-4469-ABCA-B0B293C85697}.Release|Any CPU.Build.0 = Release|Any CPU
26-
{2FCAE01A-C1A1-4CB4-A1D4-FC6A342BA681}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27-
{2FCAE01A-C1A1-4CB4-A1D4-FC6A342BA681}.Debug|Any CPU.Build.0 = Debug|Any CPU
28-
{2FCAE01A-C1A1-4CB4-A1D4-FC6A342BA681}.Release|Any CPU.ActiveCfg = Release|Any CPU
29-
{2FCAE01A-C1A1-4CB4-A1D4-FC6A342BA681}.Release|Any CPU.Build.0 = Release|Any CPU
3024
EndGlobalSection
3125
GlobalSection(SolutionProperties) = preSolution
3226
HideSolutionNode = FALSE

ZUGFeRD.PDF/InvoiceDescriptorPdfSaver.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,20 @@ private static Stream _CreateFacturXStream(Stream pdfStream, Stream xmlStream, Z
131131
outputDocument.Internals.AddObject(fStreamDict);
132132

133133

134+
string relationship = "";
135+
switch (profile)
136+
{
137+
case Profile.Minimum:
138+
case Profile.BasicWL:
139+
relationship = "Data";
140+
break;
141+
default:
142+
relationship = "Alternative";
143+
break;
144+
};
145+
134146
PdfDictionary af0Dict = new PdfDictionary();
135-
af0Dict.Elements.Add("/AFRelationship", new PdfName("/Data"));
147+
af0Dict.Elements.Add("/AFRelationship", new PdfName("$/{relationship}"));
136148
af0Dict.Elements.Add("/Desc", new PdfString("Factur-X XML file"));
137149
af0Dict.Elements.Add("/Type", new PdfName("/Filespec"));
138150
af0Dict.Elements.Add("/F", new PdfString(invoiceFilename));

ZUGFeRD.PDF/ZUGFeRD.PDF.csproj

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net480;net8.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net480;net8.0</TargetFrameworks>
55
<Authors>Stephan Stapel</Authors>
66
<Company>s2 industries</Company>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -16,10 +16,11 @@
1616
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1717
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
1818
<RootNamespace>s2industries.ZUGFeRD.PDF</RootNamespace>
19-
<Version>16.0.0-alpha</Version>
20-
<PackageReleaseNotes>16.0.0: Initial version</PackageReleaseNotes>
19+
<Version>16.1.0</Version>
20+
<PackageReleaseNotes>16.1.0: first full working version
21+
16.0.0: Initial version</PackageReleaseNotes>
2122
<AssemblyName>s2industries.ZUGFeRD.PDF</AssemblyName>
22-
<AssemblyVersion>16.0.0</AssemblyVersion>
23+
<AssemblyVersion>16.1.0</AssemblyVersion>
2324
<Description>ZUGFeRD and it's successor Factur-X/ XRechnung are initiatives from German (respectively European) government to foster electronic invoices.
2425
It is based on using PDF/A-3 to store invoices along with embedded xml descriptor for easy processing.
2526
A special favor is the so-called XRechnung which is also supported by this library.
@@ -28,7 +29,8 @@ This library allows to load and create PDF/A files.
2829
</Description>
2930
<Copyright>Stephan Stapel, s2 industries, 2024</Copyright>
3031
<PackageProjectUrl>https://github.com/stephanstapel/ZUGFeRD-csharp/</PackageProjectUrl>
31-
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
32+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
33+
<SignAssembly>True</SignAssembly>
3234
</PropertyGroup>
3335

3436
<ItemGroup>
@@ -43,11 +45,8 @@ This library allows to load and create PDF/A files.
4345

4446
<ItemGroup>
4547
<PackageReference Include="PDFsharp-extended" Version="1.1.1" />
46-
<PackageReference Include="ZUGFeRD-csharp" Version="16.0.0" />
47-
</ItemGroup>
48-
49-
<ItemGroup>
50-
<ProjectReference Include="..\ZUGFeRD\ZUGFeRD.csproj" />
48+
<PackageReference Include="System.Text.Encoding.CodePages" Version="9.0.0" />
49+
<PackageReference Include="ZUGFeRD-csharp" Version="16.0.3" />
5150
</ItemGroup>
5251

5352
</Project>

ZUGFeRD/ZUGFeRD.csproj

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net480;net8.0</TargetFrameworks>
4-
<Version>16.0.3</Version>
4+
<Version>16.1.0</Version>
55
<Authors>Stephan Stapel</Authors>
66
<Company>s2 industries</Company>
77
<Description>ZUGFeRD and it's successor Factur-X/ XRechnung are initiatives from German (respectively European) government to foster electronic invoices.
@@ -22,15 +22,23 @@ https://github.com/stephanstapel/ZUGFeRD-csharp</Description>
2222
<PackageProjectUrl>https://github.com/stephanstapel/ZUGFeRD-csharp/</PackageProjectUrl>
2323
<PackageTags>zugferd xml</PackageTags>
2424
<Copyright>Stephan Stapel, s2 industries, 2024</Copyright>
25-
<AssemblyVersion>16.0.3</AssemblyVersion>
25+
<AssemblyVersion>16.1.0</AssemblyVersion>
2626
<AssemblyTrademark>http://www.s2-industries.com</AssemblyTrademark>
27-
<FileVersion>16.0.3</FileVersion>
27+
<FileVersion>16.1.0</FileVersion>
2828
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2929
<AssemblyName>s2industries.ZUGFeRD</AssemblyName>
3030
<SignAssembly>true</SignAssembly>
3131
<AssemblyOriginatorKeyFile>ZUGFeRD.snk</AssemblyOriginatorKeyFile>
3232
<GenerateDocumentationFile>true</GenerateDocumentationFile>
33-
<PackageReleaseNotes>16.0.3
33+
<PackageReleaseNotes>16.1.0
34+
* New codes
35+
* Bugfixes
36+
* Minor new features
37+
For details see:
38+
https://github.com/stephanstapel/ZUGFeRD-csharp/releases/tag/16.1.0
39+
40+
41+
16.0.3
3442
* Bugfix for ApplicableTradeTax
3543
* Bugfix for Comments
3644

@@ -44,23 +52,7 @@ https://github.com/stephanstapel/ZUGFeRD-csharp</Description>
4452
* UTF-8 Encoding without BOM
4553
* Dozens of bugfixes
4654
For details see:
47-
https://github.com/stephanstapel/ZUGFeRD-csharp/releases/tag/16.0.0
48-
49-
15.0.0
50-
** General **
51-
This is the biggest release of the component since supporting multiple ZUGFeRD/ XRechnung versions. Big progress on UBL handling, enhanced validator conformance. Thanks to all who contributed.
52-
ZUGFeRD-csharp is largely based on spare-time work.
53-
Please sponsor the development of ZUGFeRD-csharp: https://github.com/sponsors/stephanstapel
54-
55-
** Breaking Changes **
56-
* Support for ZUGFeRD 2.3, dropping ZUGFeRD 2.2
57-
* Better support for DesignatedProductClassification
58-
* Support for multiple invoice referenced documents
59-
* Parameter reordering of AdditionalReferencedDocuments
60-
* AllowanceChargeBasisAmount is optional
61-
62-
Many more changes:
63-
https://github.com/stephanstapel/ZUGFeRD-csharp/releases/tag/15.0.0</PackageReleaseNotes>
55+
https://github.com/stephanstapel/ZUGFeRD-csharp/releases/tag/16.0.0</PackageReleaseNotes>
6456
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6557
<PackageId>ZUGFeRD-csharp</PackageId>
6658
<PackageReadmeFile>README.md</PackageReadmeFile>

0 commit comments

Comments
 (0)