Skip to main content
All docs
V25.1
  • XmpDocument.PdfProperties Property

    Gets properties used to define the Adobe PDF namespace.

    Namespace: DevExpress.Pdf.Xmp

    Assembly: DevExpress.Pdf.v25.1.Core.dll

    NuGet Package: DevExpress.Pdf.Core

    Declaration

    public AdobePdfProperties PdfProperties { get; }

    Property Value

    Type Description
    AdobePdfProperties

    An object that contains Adobe PDF namespace properties.

    Example

    The code sample below adds items from the Adobe PDF schema to the packet:

    using DevExpress.Pdf;
    using DevExpress.Pdf.Xmp;
    //...
    
    using (PdfDocumentProcessor pdfDocumentProcessor = new PdfDocumentProcessor())
    {
        // Load a document:
        pdfDocumentProcessor.LoadDocument("Documents//Invoice.pdf");
        PdfDocument document = pdfDocumentProcessor.Document;
    
        // Create a new XMP packet:
        XmpDocument metadata = new XmpDocument();
    
        AdobePdfProperties adobePdfProperties = metadata.PdfProperties;
        adobePdfProperties.Keywords = "Invoice, Northwind, PDF, XMP";
        adobePdfProperties.PDFVersion = "1.3";
        adobePdfProperties.Producer = "PDF Document API";
        adobePdfProperties.Trapped = false;
    
        // Embed metadata in the document:
        document.SetMetadata(metadata);
    
        // Save the result:
        pdfDocumentProcessor.SaveDocument("Invoice_Upd.pdf");
    }
    
    See Also