Skip to content

Commit 6aacefa

Browse files
committed
1 parent 3af34ac commit 6aacefa

File tree

148 files changed

+4531
-1643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+4531
-1643
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2001-2024 empira Software GmbH, Troisdorf (Cologne Area), Germany
1+
Copyright (c) 2001-2025 empira Software GmbH, Troisdorf (Cologne Area), Germany
22

33
http://docs.pdfsharp.net
44

PdfSharp.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ EndProject
104104
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{31FE507C-F342-4DA4-9BE5-B3D2ED93E9CC}"
105105
ProjectSection(SolutionItems) = preProject
106106
.editorconfig = .editorconfig
107+
gitversion-6.x.yml = gitversion-6.x.yml
107108
gitversion.yml = gitversion.yml
108109
LICENSE = LICENSE
109110
README.md = README.md

PdfSharp.sln.DotSettings

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=TSA/@EntryIndexedValue">TSA</s:String>
1515
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=URI/@EntryIndexedValue">URI</s:String>
1616
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=URL/@EntryIndexedValue">URL</s:String>
17+
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=0A4664ADE151C349B62FB87D8470A5D9/TodoIconStyle/@EntryValue">None</s:String>
18+
<s:Boolean x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=30C0E1AC7A361D44A0EBB26FFB540F64/CaseSensitive/@EntryValue">True</s:Boolean>
19+
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=4386F01B791C56499C7EA059B55FFB54/Name/@EntryValue">BUG</s:String>
20+
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=4386F01B791C56499C7EA059B55FFB54/TodoIconStyle/@EntryValue">Warning</s:String>
21+
<s:Boolean x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=961894CCC510410ABE2B99132B253C80/CaseSensitive/@EntryValue">True</s:Boolean>
22+
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=961894CCC510410ABE2B99132B253C80/Name/@EntryValue">TODO</s:String>
23+
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=961894CCC510410ABE2B99132B253C80/TodoIconStyle/@EntryValue">Edit</s:String>
1724
<s:Boolean x:Key="/Default/UserDictionary/Words/=AESV/@EntryIndexedValue">True</s:Boolean>
1825
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=ID/@EntryIndexedValue">ID</s:String>
1926
<s:Boolean x:Key="/Default/UserDictionary/Words/=ARGB/@EntryIndexedValue">True</s:Boolean>
@@ -40,6 +47,7 @@
4047
<s:Boolean x:Key="/Default/UserDictionary/Words/=inititalize/@EntryIndexedValue">True</s:Boolean>
4148
<s:Boolean x:Key="/Default/UserDictionary/Words/=Invers/@EntryIndexedValue">True</s:Boolean>
4249
<s:Boolean x:Key="/Default/UserDictionary/Words/=iref/@EntryIndexedValue">True</s:Boolean>
50+
<s:Boolean x:Key="/Default/UserDictionary/Words/=irefs/@EntryIndexedValue">True</s:Boolean>
4351
<s:Boolean x:Key="/Default/UserDictionary/Words/=iter/@EntryIndexedValue">True</s:Boolean>
4452
<s:Boolean x:Key="/Default/UserDictionary/Words/=lucida/@EntryIndexedValue">True</s:Boolean>
4553
<s:Boolean x:Key="/Default/UserDictionary/Words/=mdddl/@EntryIndexedValue">True</s:Boolean>
@@ -50,6 +58,7 @@
5058
<s:Boolean x:Key="/Default/UserDictionary/Words/=parallelize/@EntryIndexedValue">True</s:Boolean>
5159
<s:Boolean x:Key="/Default/UserDictionary/Words/=parms/@EntryIndexedValue">True</s:Boolean>
5260
<s:Boolean x:Key="/Default/UserDictionary/Words/=punctuator/@EntryIndexedValue">True</s:Boolean>
61+
<s:Boolean x:Key="/Default/UserDictionary/Words/=rasterizer/@EntryIndexedValue">True</s:Boolean>
5362
<s:Boolean x:Key="/Default/UserDictionary/Words/=referenceable/@EntryIndexedValue">True</s:Boolean>
5463
<s:Boolean x:Key="/Default/UserDictionary/Words/=reflectored/@EntryIndexedValue">True</s:Boolean>
5564
<s:Boolean x:Key="/Default/UserDictionary/Words/=renderers/@EntryIndexedValue">True</s:Boolean>

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# PDFsharp & MigraDoc 6
22

3-
Version **6.2.0 Preview 2**
4-
Published **2024-12-10**
3+
Version **6.2.0 Preview 3**
4+
Published **2025-02-06**
55

66
This is a preview version of the **PDFsharp** project, the main project of PDFsharp & MigraDoc 6 with updates for C# 12 and .NET 6.
77

8-
PDFsharp: Copyright (c) 2005-2024 empira Software GmbH, Troisdorf (Cologne Area), Germany
9-
MigraDoc: Copyright (c) 2001-2024 empira Software GmbH, Troisdorf (Cologne Area), Germany
8+
PDFsharp: Copyright (c) 2005-2025 empira Software GmbH, Troisdorf (Cologne Area), Germany
9+
MigraDoc: Copyright (c) 2001-2025 empira Software GmbH, Troisdorf (Cologne Area), Germany
1010
Published Open Source under the [MIT License](https://docs.pdfsharp.net/LICENSE.html)
1111

1212
For more information see [docs.pdfsharp.net](https://docs.pdfsharp.net/)

dev/build-local-nuget-packages-release.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ try {
1919

2020
Push-Location ..
2121
try {
22-
Write-Host "Invoking dotnet build’"
22+
Write-Host "Invoking dotnet build’"
2323
dotnet build -c release
2424
$build = $LASTEXITCODE
25-
Write-Host "dotnet build’ has finished"
25+
Write-Host "dotnet build’ has finished"
2626
}
2727
finally {
2828
Pop-Location
2929
}
3030

3131
if ($build -gt 0) {
32-
Write-Host "dotnet build’ failed with code " $build
33-
throw "dotnet build’ failed with code " + $build
32+
Write-Host "dotnet build’ failed with code " $build
33+
throw "dotnet build’ failed with code " + $build
3434
}
3535

3636
.\update-local-nuget-packages-release.ps1

dev/set-en.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Sets UI language for dotnet build to en-US.
2+
#Requires -Version 7
3+
#Requires -PSEdition Core
4+
5+
# I want to see English messages on my German Windows dev machine
6+
# when I run e.g. dotnet build.
7+
8+
# What works:
9+
$env:VSLANG = 1033
10+
Write-Output "Compiler output language set to en-US."
11+
12+
# What does not work:
13+
#$env:DOTNET_CLI_UI_LANG = 'en-US'
14+
#$env:PreferredUILang = 'en-US'
15+
#powershell -ExecutionPolicy Bypass -NoExit -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = 'en-US'; [System.Threading.Thread]::CurrentThread.CurrentUICulture = 'en-US';"
16+
#powershell -ExecutionPolicy Bypass -NoExit -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = 'en-US'; [System.Threading.Thread]::CurrentThread.CurrentUICulture = 'en-US';"

docs/MigraDoc/changes/v6.2.0-log.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
MigraDoc changes come here.
66

7-
TODO / JUST A COPY OF PDFSHARP CHANTE LOG
7+
TODO / JUST A COPY OF PDFSHARP CHANGE LOG
88

99
### PDFsharp 6.2.0 Preview 1
1010

@@ -37,7 +37,7 @@ Some assemblies had a subfolder `de` containing German messages.
3737
We removed all `.restext` resources. All messages are now available in US English only.
3838

3939
**PDFsharp.Shared**
40-
Code that grants friendly access to all PDFsharp Foundation assemblies lives in this new assembly.
40+
Code that grants friendly access to all PDFsharp assemblies lives in this new assembly.
4141

4242
**Bug in parsing object referenced**
4343
Lexer now supports white-space within object references.

docs/_READ-THIS-FIRST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Read this first
22

3-
This folder is **not* the documentation of PDFsharp.
3+
This folder is ***not*** the documentation of PDFsharp.
44
It contains internal technical information for/from the PDFsharp team.
55

66
You find the documentation of PDFsharp [here](https://docs.pdfsharp.net/).

docs/change-log/v6.2.0-log.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,48 @@ This text is copied to `docs.pdfsharp.net`.
44

55
## Version 6.2
66

7-
### PDFsharp 6.2.0 Preview 3
7+
### PDFsharp 6.2.0 (final release)
88

99
*not yet released*
1010

11+
### PDFsharp 6.2.0 Preview 3
12+
13+
#### General issues
14+
15+
#### PDFsharp features
16+
17+
**Improved access to CropBox, ArtBox, BleedBox, TrimBox**
18+
PdfPage now has new properties that make access to those boxes easier.
19+
These are `HasBleedBox`, `BleedBoxReadOnly`, and `EffectiveBleedBoxReadOnly`.
20+
Same applies to ArtBox, CropBox and TrimBox.
21+
22+
**Loading images: Improved access to buffer of MemoryStream**
23+
LoadImage from MemoryStream now works with a buffer that is not publicly visible.
24+
For better performance, set 'publiclyVisible' to true when creating the MemoryStream.
25+
26+
#### PDFsharp issues
27+
28+
**Lexer.ScanNumber and CLexer.ScanNumber**
29+
Based on a bug that crashes PDFsharp if a number in a PDFfile has to much leading zeros, we revised the code of **Lexer.ScanNumber** and **CLexer.ScanNumber**.
30+
31+
**No more commas allowed in XUnit**
32+
An old hack allows **XUnit** to be assigned from a string that uses a comma as decimal separator.
33+
This was a introduced for languages like German, that use a comma instead of a point as decimal separator.
34+
Now you get an exception. Applies also to **XUnitPt**.
35+
36+
#### MigraDoc features
37+
38+
**MigraDoc Preview user control restored for GDI build**
39+
The MigraDoc Preview user control is again available in the GDI+ build.
40+
MigraDoc Preview samples for GDI and WPF have been added to the samples repository.
41+
42+
**Color.Parse no longer causes exceptions when invoked with a number value**
43+
If Color.Parse is invoked with a number value, as in `var color = Color.Parse("#f00");`,
44+
it no longer throws a handled exception internally.
45+
46+
#### MigraDoc issues
47+
48+
1149
---
1250

1351
### PDFsharp 6.2.0 Preview 2
@@ -140,7 +178,7 @@ We added .NET 8 (`net8.0`) to `<TargetFrameworks>`.
140178
PDF documents can now be PDF/A conforming. We are still working on this feature, so currently there are some limitations.
141179

142180
**PDFsharp.Shared**
143-
Code that grants friendly access to all PDFsharp Foundation assemblies lives in this new assembly.
181+
Code that grants friendly access to all PDFsharp Project assemblies lives in this new assembly.
144182

145183
#### Bug fixes
146184

docs/publishing/BoilerplateText.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
## PDFsharp
66

7-
PDFsharp project - PDFsharp
8-
PDFsharp Foundation - PDFsharp library
9-
MigraDoc Foundation - MigraDoc library
7+
PDFsharp Project - PDFsharp
8+
PDFsharp Library - PDFsharp
9+
MigraDoc Library - Library
1010

1111

1212
Source
@@ -66,17 +66,17 @@ MigraDoc is a .NET library that allows developers to create documents such as PD
6666
Note: Do not replicate information from the metadata (like "6.0.0" or "prerelease").
6767

6868
PDFsharp:
69-
This is a version of PDFsharp using .NET 6.
70-
The package PdfSharp’ can be used on any platform including Windows and Linux. The Target Frameworks are net6.0’ and netstandard2.0’.
71-
The packages PDFsharp-gdi’ and PDFsharp-wpf’ can be used under Windows only. The Target Frameworks are net6.0-windows’ and net462’.
69+
This is a version of PDFsharp compatible with .NET 6 and higher.
70+
The package PdfSharp’ can be used on any platform including Windows and Linux. The Target Frameworks are net6.0’, ‘net8.0’ and netstandard2.0’.
71+
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’.
7272
We also publish packages that contain PDFsharp plus MigraDoc.
7373
See the project docs site for further information:
7474
https://docs.pdfsharp.net/link/readme-v6.2.html
7575

7676

7777
PDFsharp & MigraDoc:
78-
This is a version of PDFsharp and MigraDoc Foundation using .NET 6.
79-
The package PDFsharp-MigraDoc’ can be used on any platform including Windows and Linux. The Target Frameworks are net6.0’ and netstandard2.0’.
80-
The packages PDFsharp-MigraDoc-GDI’ and PDFsharp-MigraDoc-WPF’ can be used under Windows only. The Target Frameworks are net6.0-windows’ and net462’.
78+
This is a version of PDFsharp and MigraDoc compatible with .NET 6 and higher.
79+
The package PDFsharp-MigraDoc’ can be used on any platform including Windows and Linux. The Target Frameworks are net6.0’, ‘net8.0’ and netstandard2.0’.
80+
The packages PDFsharp-MigraDoc-GDI’ and PDFsharp-MigraDoc-WPF’ can be used under Windows only. The Target Frameworks are net6.0-windows’, ‘net8.0-windows’ and net462’.
8181
See the project docs site for further information:
8282
https://docs.pdfsharp.net/link/readme-v6.2.html

0 commit comments

Comments
 (0)