Skip to content

Commit 1430fb4

Browse files
authored
respect custom properties (#122)
1 parent 74cb884 commit 1430fb4

44 files changed

Lines changed: 403 additions & 122 deletions

File tree

Some content is hidden

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

readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ Supports Excel (xlsx), Word (docx), and PowerPoint (pptx) documents.
1616

1717
* Converts workbooks to CSV format for each worksheet
1818
* Extracts formulas and displays them alongside cell values
19-
* Captures document metadata (title, subject, creator, keywords, category, etc.)
19+
* Captures document properties (title, subject, keywords, description, category, status, company, manager)
20+
* Captures custom document properties
2021
* Supports date scrubbing and GUID scrubbing for deterministic tests
2122
* Generates deterministic XLSX output using DeterministicIoPackaging
2223

2324

2425
### Word (docx)
2526

2627
* Extracts document text content from paragraphs and tables
27-
* Captures document properties (title, subject, creator, keywords, etc.)
28+
* Captures document properties (title, subject, keywords, description, category, status, revision)
2829
* Captures custom document properties
2930
* Extracts font information
3031
* Generates deterministic DOCX output using DeterministicIoPackaging
@@ -34,7 +35,7 @@ Supports Excel (xlsx), Word (docx), and PowerPoint (pptx) documents.
3435
### PowerPoint (pptx)
3536

3637
* Extracts slide text from every slide, separated by `---`
37-
* Captures document properties (title, subject, creator, keywords, etc.)
38+
* Captures document properties (title, subject, keywords, description, category, status, revision)
3839
* Reports slide count
3940
* Generates deterministic PPTX output using DeterministicIoPackaging
4041

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649;CA1416;NU1608;NU1109</NoWarn>
5-
<Version>1.17.0</Version>
6-
<LangVersion>preview</LangVersion>
5+
<Version>1.18.0</Version>
6+
<LangVersion>14.0</LangVersion>
77
<AssemblyVersion>1.0.0</AssemblyVersion>
88
<PackageTags>OpenXML, Verify</PackageTags>
99
<Description>Extends Verify (https://github.com/VerifyTests/Verify) to allow verification via OpenXML https://github.com/dotnet/Open-XML-SDK</Description>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Header
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
Sheets: [
3+
{
4+
Name: Sheet1,
5+
Columns: [
6+
{
7+
Name: Header,
8+
ContainsRichText: false,
9+
RequiredHighlight: false
10+
}
11+
]
12+
}
13+
],
14+
WorksheetCount: 1,
15+
Title: Q1 staff snapshot,
16+
Subject: Headcount,
17+
Keywords: staff, q1,
18+
Description: Generated by Excelsior,
19+
Category: HR,
20+
ContentStatus: Final,
21+
Company: Papyrine,
22+
Manager: Jane,
23+
CustomProperties: {
24+
Project: Excelsior,
25+
Reviewed: true,
26+
Revision: 3
27+
}
28+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Header
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
Sheets: [
3+
{
4+
Name: Sheet1,
5+
Columns: [
6+
{
7+
Name: Header,
8+
ContainsRichText: false,
9+
RequiredHighlight: false
10+
}
11+
]
12+
}
13+
],
14+
WorksheetCount: 1,
15+
Title: Q1 staff snapshot,
16+
Subject: Headcount,
17+
Keywords: staff, q1,
18+
Description: Generated by Excelsior,
19+
Category: HR,
20+
ContentStatus: Final,
21+
Company: Papyrine,
22+
Manager: Jane,
23+
CustomProperties: {
24+
Project: Excelsior,
25+
Reviewed: true,
26+
Revision: 3
27+
}
28+
}
Binary file not shown.

src/Tests.ImageSharp/Samples.VerifyPowerpoint#00.verified.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
Properties: {
3-
Creator: Verify.OpenXml Tests,
43
Title: Sample Presentation
54
},
65
SlideCount: 1,

src/Tests.ImageSharp/Samples.VerifyPowerpointStream#00.verified.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
Properties: {
3-
Creator: Verify.OpenXml Tests,
43
Title: Sample Presentation
54
},
65
SlideCount: 1,

src/Tests.ImageSharp/Samples.VerifyPresentationDocument#00.verified.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
Properties: {
3-
Creator: Verify.OpenXml Tests,
43
Title: Sample Presentation
54
},
65
SlideCount: 1,

0 commit comments

Comments
 (0)