i searching for methods or libarys to edit metadata of a pdf file like the programm becypdfmetaedit.
I want to write a program and i need this opton in this program. Perhaps you have some samples for c#.
Thanks
i searching for methods or libarys to edit metadata of a pdf file like the programm becypdfmetaedit.
I want to write a program and i need this opton in this program. Perhaps you have some samples for c#.
Thanks
Pimping here - my company, Atalasoft, makes .NET components for working with images. Part of the suite includes the ability to read/write PDF document metadata. It's not free, but it is run-time royalty free for desktop applications.
The code for reading is simple:
to edit it and write it back to the same stream:
Custom fields are supported through a hashtable.
I suppose you can do it with iTextSharp.
Docotic.Pdf library can be used to read and update metadata in PDF documents.
There is
PdfDocument.Info
property that can be used to change metadata of a PDF document (properties such as "Author", "Title").And there is also
PdfDocument.Metadata
property that is useful if you need to access embedded XMP metadata in a PDF document. The library supports pre-defined XMP schemas and can also be used to set custom application-defined properties.The library is free for non-commercial applications.(The library is no longer free since the 15th of February 2012)Disclaimer: I work for the company.
Aspose.PDF or Aspose.PDF.Kit can do this for you.
Using PDF Sharp works like this:
}
Does the PdfDocumentInformation class from PDF Sharp fulfill your requirements.