PTPDFDocInfo

@interface PTPDFDocInfo : NSObject

PDFDocInfo is a high-level utility class that can be used to read and modify document’s metadata.

  • Declaration

    Objective-C

    - (NSString *)GetTitle;

    Swift

    func getTitle() -> String!

    Return Value

    The document’s title.

  • Declaration

    Objective-C

    - (PTObj *)GetTitleObj;

    Swift

    func getTitleObj() -> PTObj!

    Return Value

    SDF/Cos string object representing document’s title.

  • Set document’s title.

    Declaration

    Objective-C

    - (void)SetTitle:(NSString *)title;

    Swift

    func setTitle(_ title: String!)

    Parameters

    title

    New title of the document.

  • Declaration

    Objective-C

    - (NSString *)GetAuthor;

    Swift

    func getAuthor() -> String!

    Return Value

    The name of the person who created the document.

  • Declaration

    Objective-C

    - (PTObj *)GetAuthorObj;

    Swift

    func getAuthorObj() -> PTObj!

    Return Value

    SDF/Cos string object representing document’s author.

  • Set the author of the document.

    Declaration

    Objective-C

    - (void)SetAuthor:(NSString *)author;

    Swift

    func setAuthor(_ author: String!)

    Parameters

    author

    The name of the person who created the document.

  • Declaration

    Objective-C

    - (NSString *)GetSubject;

    Swift

    func getSubject() -> String!

    Return Value

    The subject of the document.

  • Declaration

    Objective-C

    - (PTObj *)GetSubjectObj;

    Swift

    func getSubjectObj() -> PTObj!

    Return Value

    SDF/Cos string object representing document’s subject.

  • Set the subject of the document

    Declaration

    Objective-C

    - (void)SetSubject:(NSString *)subject;

    Swift

    func setSubject(_ subject: String!)

    Parameters

    subject

    The subject of the document.

  • Declaration

    Objective-C

    - (NSString *)GetKeywords;

    Swift

    func getKeywords() -> String!

    Return Value

    Keywords associated with the document.

  • Declaration

    Objective-C

    - (PTObj *)GetKeywordsObj;

    Swift

    func getKeywordsObj() -> PTObj!

    Return Value

    SDF/Cos string object representing document’s keywords.

  • Set keywords associated with the document.

    Declaration

    Objective-C

    - (void)SetKeywords:(NSString *)keywords;

    Swift

    func setKeywords(_ keywords: String!)

    Parameters

    keywords

    Keywords associated with the document.

  • Declaration

    Objective-C

    - (NSString *)GetCreator;

    Swift

    func getCreator() -> String!

    Return Value

    If the document was converted to PDF from another format, the name of the application that created the original document from which it was converted.

  • Declaration

    Objective-C

    - (PTObj *)GetCreatorObj;

    Swift

    func getCreatorObj() -> PTObj!

    Return Value

    SDF/Cos string object representing document’s creator.

  • Set document’s creator.

    Declaration

    Objective-C

    - (void)SetCreator:(NSString *)creator;

    Swift

    func setCreator(_ creator: String!)

    Parameters

    creator

    The name of the application that created the original document.

  • Declaration

    Objective-C

    - (NSString *)GetProducer;

    Swift

    func getProducer() -> String!

    Return Value

    If the document was converted to PDF from another format, the name of the application (for example, Distiller) that converted it to PDF.

  • Declaration

    Objective-C

    - (PTObj *)GetProducerObj;

    Swift

    func getProducerObj() -> PTObj!

    Return Value

    SDF/Cos string object representing document’s producer.

  • Set document’s producer.

    Declaration

    Objective-C

    - (void)SetProducer:(NSString *)producer;

    Swift

    func setProducer(_ producer: String!)

    Parameters

    producer

    The name of the application that generated PDF.

  • Declaration

    Objective-C

    - (PTDate *)GetCreationDate;

    Swift

    func getCreationDate() -> PTDate!

    Return Value

    The date and time the document was created, in human-readable form.

  • Set document’s creation date.

    Declaration

    Objective-C

    - (void)SetCreationDate:(PTDate *)creation_date;

    Swift

    func setCreationDate(_ creation_date: PTDate!)

    Parameters

    creation_date

    The date and time the document was created.

  • Declaration

    Objective-C

    - (PTDate *)GetModDate;

    Swift

    func getModDate() -> PTDate!

    Return Value

    The date and time the document was most recently modified, in human-readable form.

  • Set document’s modification date.

    Declaration

    Objective-C

    - (void)SetModDate:(PTDate *)mod_date;

    Swift

    func setModDate(_ mod_date: PTDate!)

    Parameters

    mod_date

    The date and time the document was most recently modified.

  • Declaration

    Objective-C

    - (PTObj *)GetSDFObj;

    Swift

    func getSDFObj() -> PTObj!

    Return Value

    document’s SDF/Cos ‘Info’ dictionary or NULL if the info dictionary is not available.

  • PDFDocInfo constructor. Typically this constructor is never used since it is easier to obtain DocInfo using PDFDoc.GetDocInfo()

    Declaration

    Objective-C

    - (instancetype)initWithTr:(PTObj *)tr;

    Swift

    init!(tr: PTObj!)