diff --git a/OfficeWhitener/OfficeDocumentWhitener.cs b/OfficeWhitener/OfficeDocumentWhitener.cs index ead0931..2037f7b 100644 --- a/OfficeWhitener/OfficeDocumentWhitener.cs +++ b/OfficeWhitener/OfficeDocumentWhitener.cs @@ -243,6 +243,7 @@ OpenXmlPart coreFilePropertiesPart .Nodes() .OfType()) 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";