|
Tutorial - Edit Document Information |
Top Previous Next |
|
This example sets all the properties for the loaded PDF document using the properties of gtPDFDocumentX component. This code mentioned below adds Title, author subject keywords and creator to the generated 'Output.pdf' document.
[VB]
PDFDoc.LoadFromFile (InputFile3) PDFDoc.DocInfo.Author = "Gnostice Information Technologies" PDFDoc.DocInfo.Title = "Document Information" PDFDoc.DocInfo.Subject = "Testing Document Information" PDFDoc.ShowSetupDialog = False PDFDoc.OpenAfterSave = True PDFDoc.SaveToFile (OutputFile)
[VC++]
PDFDoc.LoadFromFile(InputFile3); CgtPDFInfoX DocInfo; DocInfo = PDFDoc.GetDocInfo(); DocInfo.SetAuthor("Gnostice Information Technologies"); DocInfo.SetTitle("Document Information"); DocInfo.SetSubject("Testing Document Information"); PDFDoc.SetShowSetupDialog(False); PDFDoc.SetOpenAfterSave(True); PDFDoc.SaveToFile(OutputFile);
[CS]
PDFDoc.LoadFromFile(InputFile3); PDFDoc.DocInfo.Author = "Gnostice Information Technologies"; PDFDoc.DocInfo.Title = "Document Information"; PDFDoc.DocInfo.Subject = "Testing Document Information"; PDFDoc.ShowSetupDialog = False; PDFDoc.OpenAfterSave = True; PDFDoc.SaveToFile(OutputFile);
|