|
DocInfo |
Top Previous Next |
|
Use this property to set document information like Author, Creator, Creation Date, Keywords, ModDate, Producer Subject and Title . Provides information about the document.
Syntax
Example Code
[VC++] CgtPDFInfo PDFInfo;
m_PDF.LoadFromFile ("Input.pdf"); PDFInfo = m_PDF.GetDocInfo();
PDFInfo.SetTitle("Document Title"); PDFInfo.SetAuthor("Document Author"); PDFInfo.SetSubject("Document Subject"); PDFInfo.SetKeywords("PDF, KeyWords"); PDFInfo.SetCreator("The Creator");
m_PDF.SaveToFile ("Output.pdf");
[VB] gtPDFDocument1.LoadFromFile ("Input.pdf") With gtPDFDocument1.DocInfo Title = "Document Title" Author = "Document Author" Subject = "Document Subject" Keywords = "PDF, KeyWords" Creator = "The Creator" End With gtPDFDocument1.SaveToFile ("Output.pdf")
See Tutorial - Edit Document Information
|