Skip to content

Commit

Permalink
Additionally removes cp:lastPrinted tag from core.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzauros committed Nov 20, 2015
1 parent 4520beb commit 9a86aa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OfficeWhitener/OfficeDocumentWhitener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ OpenXmlPart coreFilePropertiesPart
.Nodes()
.OfType<XText>())
textNode.Value = "";
coreFilePropertiesXDoc.Elements(cp + "coreProperties").Elements(cp + "lastPrinted").Remove();
XElement revision = coreFilePropertiesXDoc.Elements(cp + "coreProperties").Elements(cp + "revision").FirstOrDefault();
if (revision != null)
revision.Value = "1";
Expand Down

0 comments on commit 9a86aa0

Please sign in to comment.