PDF .NET Library Documentation - PDF Technologies, Inc.
Add a new Meta data schema to the document.

Namespace:  PDFTech
Assembly:  PDFTechLib (in PDFTechLib.dll) Version: 1.0.0.0 (1.7.9.0)

Syntax

C#
public PDFMetaDataSchema AddSchema()
Visual Basic (Declaration)
Public Function AddSchema As PDFMetaDataSchema
Visual C++
public:
PDFMetaDataSchema^ AddSchema()

Return Value

PdfMetaDataSchema represents the PDF Meta Data Schema.

Remarks

Metadata schemas are used add custom properties to a document. These properties may be grouped into schemas and more than one schema can be used.

Examples

The sample below demonstrates how custom property values may be set for a given PDF document.
CopyC#
PDFDocument doc = new PDFDocument("sample.pdf");
PdfMetaDataSchema schema = doc.AddSchema();
schema.StoreSchemaInDocInfo = true;
schema.Properties.Add("Customer", "Joe Doe");
schema.Properties.Add("Company", "Acme Corp.");               
...
doc.Save();

See Also