Search Results for

    Show / Hide Table of Contents

    Class PdfMetaData

    A class defining PDF file MetaData.

    Allows File MetaData to be read and set including: Authors, File Dates, Keywords, Title and Subject

    Implemented in IronPdf.MetaData.

    Inheritance
    System.Object
    PdfMetaData
    Namespace: IronPdf.MetaData
    Assembly: IronPdf.dll
    Syntax
    public class PdfMetaData : Object

    Properties

    Author

    Gets or sets the Author of the document.

    Declaration
    public string Author { get; set; }
    Property Value
    Type Description
    System.String

    The author name as a string.

    CreationDate

    Gets or sets the PDF file creation DateTime.

    Declaration
    public DateTime CreationDate { get; set; }
    Property Value
    Type Description
    System.DateTime

    DateTime of PDF file creation as a Local Time. Use CreationDate.ToUniversalTime() to return a UTC DateTime

    Creator

    Gets or sets the Creator of the document.

    Declaration
    public string Creator { get; set; }
    Property Value
    Type Description
    System.String

    The creator name as a string.

    CustomProperties

    Property defining custom MetaData properties of the document.

    Declaration
    public PdfCustomMetadataProperties CustomProperties { get; }
    Property Value
    Type Description
    PdfCustomMetadataProperties

    Keywords

    Gets or sets the Keywords of the document. This helps search indexes and operating systems correctly index the PDF.

    Declaration
    public string Keywords { get; set; }
    Property Value
    Type Description
    System.String

    The Keywords of the document as a string. It is customary to use comma separation between keywords.

    ModifiedDate

    Gets or sets the PDF file last-modified DateTime.

    Declaration
    public DateTime ModifiedDate { get; set; }
    Property Value
    Type Description
    System.DateTime

    DateTime of PDF file modification as a Local Time. Use ModifiedDate.ToUniversalTime() to return a UTC DateTime.

    Producer

    Gets or sets the Producer of the document.

    Declaration
    public string Producer { get; set; }
    Property Value
    Type Description
    System.String

    The producer name as a string.

    Subject

    Gets or sets the Subject of the document. This helps search indexes and operating systems correctly index the PDF, and may appear in PDF viewer software.

    Declaration
    public string Subject { get; set; }
    Property Value
    Type Description
    System.String

    The Subject of the document as a string.

    Title

    Gets or sets the Title of the document. This helps search indexes and operating systems correctly index the PDF, and may appear in PDF viewer software.

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    System.String

    The Title of the document as a string.

    Methods

    GetMetaDataDictionary()

    Gets all available MetaData as a dictionary.

    Declaration
    public Dictionary<string, string> GetMetaDataDictionary()
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    Current MetaData dictionary

    Keys()

    Gets all available MetaData keys of the document.

    Declaration
    public List<string> Keys()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    RemoveMetaDataKey(String)

    Removes a MetaData key of the document.

    Declaration
    public void RemoveMetaDataKey(string key)
    Parameters
    Type Name Description
    System.String key

    SetMetaDataDictionary(Dictionary<String, String>)

    Overwrites whole MetaData from a given dictionary.

    This method is the fastest and most efficient way to edit or clear PDF MetaData. Highly recommended for Docker / GRPC usage.

    Declaration
    public void SetMetaDataDictionary(Dictionary<string, string> newDictionary)
    Parameters
    Type Name Description
    System.Collections.Generic.Dictionary<System.String, System.String> newDictionary

    a new MetaData dictionary

    See Also
    GetMetaDataDictionary()
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    IronPDF_for_dotnet_log2o
    Blue key in circleGet started for FREE
    No credit card required
    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    24/5 technical support

    Full access to our support engineering team during your product trial

    Grey key in circleGet started for FREE
    The trial form was submitted successfully.
    Calendar in circleBook Free Live Demo
    No contact, no card details, no commitments Book a 30-minute, personal demo.
    Here's what to expect:

    A live demo of our product and its key features

    Get project specific feature recommendations

    All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)

    Grey key in circleBook Free Live Demo
    Your booking has been completed Check your e-mail for confirmation
    Support Team Member 6 related to The C# PDF Library Support Team Member 14 related to The C# PDF Library Support Team Member 4 related to The C# PDF Library Support Team Member 2 related to The C# PDF Library
    Online 24/5
    Need help? Our sales team would be glad to help you.
    Try the Enterprise Trial
    ironpdf_for_dotnet_log2o
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    bullet_checkedNo credit card or account creation required
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    Blue key in circleNo credit card or account creation required
    Green Check in orange circle
    The trial form was submitted successfully.
    badge_greencheck_in_yellowcircle
    Thank you for starting a trial

    Please check your email for the trial license key.

    If you don’t receive an email, please start a live chat or email support@ironsoftware.com

    Install with NuGet
    View Licensing
    • Logo Aetna
    • Logo NASA
    • Logo GE
    • Logo Porsche
    • Logo USDA
    • Logo Qatar
    Join Millions of Engineers who’ve tried IronPDF