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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.