You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Creation > PdfSetMetadata Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PdfSetMetadata Method

Sets the document metadata for a PDF. The metadata must be a valid XMP string, see Adobe's website for XMP documentation.

C#
public Boolean PdfSetMetadata(
    int PdfID, 
    String XMP
);
Visual Basic
Public Function PdfSetMetadata(
    ByVal PdfID As Integer, 
    ByVal XMP As String
) As Boolean
Parameters
Parameters 
Description 
PdfID 
A PDF identifier returned by one of these functions: PdfNewPdf(), PdfOCRStart(), PdfOcrStartStream(), TwainPDFStart() or TwainPdfStartStream().  
XMP 
The XMP metadata.  
Returns

True if the metadata have been added else False.

This function must be called before adding resource to the document. 

This function can only be used with a PDF created by one of these functions: PdfNewPdf(), PdfOCRStart() or PdfOcrStartStream(). 

This function is not available for PDF/A.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.