Created
August 11, 2022 07:28
-
-
Save conholdate-docs-gists/84c24a9c9dba1c15d7a43d439887f9fa to your computer and use it in GitHub Desktop.
Remove metadata of a document | https://docs.conholdate.com/net/remove-metadata/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (Metadata metadata = new Metadata(Constants.InputPdf)) | |
{ | |
// Remove detected metadata packages | |
var affected = metadata.Sanitize(); | |
Console.WriteLine("Properties removed: {0}", affected); | |
metadata.Save(Constants.OutputPdf); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read the complete article: https://docs.conholdate.com/net/remove-metadata/