←Select platform

Creator Property

Summary
Creator of the PDF document. This is optional.
Syntax
C#
C++/CLI
Java
publicstringCreator {get;set; }
publicString getCreator();publicvoidsetCreator(java.lang.String string);
public:propertyString^ Creator {String^ get();voidset ( String^);}

Property Value

A System.String that contain the creator of the PDF document. The default value isnull.

Remarks

PDF property item strings must be 126 characters or less. This is defined by thePDFDocument.MaximumStringLengthconstant. LEADTOOLS will automatically truncate the string if required.

Example
C#
usingLeadtools.WinForms;usingLeadtools;usingLeadtools.Codecs;usingLeadtools.Controls;usingLeadtools.Drawing;usingLeadtools.ImageProcessing;usingLeadtools.Pdf;usingLeadtools.Svg;publicvoidPDFFileExample(){stringsourceFileName = Path.Combine(LEAD_VARS.ImagesDir,@"Leadtools.pdf");stringdestFileName = Path.Combine(LEAD_VARS.ImagesDir,@"LEAD_14.pdf");//Load the properties of the fileShowProperties("Source file", sourceFileName);//Update the properties of the filePDFFile file =newPDFFile(sourceFileName);file.DocumentProperties =newPDFDocumentProperties();file.DocumentProperties.Author ="Me";file.DocumentProperties.Title ="My title";file.DocumentProperties.Subject ="My subject";file.DocumentProperties.Creator ="My application";file.DocumentProperties.Modified = DateTime.Now;file.SetDocumentProperties(destFileName);//Show the properties of the new fileShowProperties("Destination file", destFileName);}privatestaticvoidShowProperties(stringmessage,stringfileName){Console.WriteLine(message);//Get the properties of the filePDFFile file =newPDFFile(fileName);file.Load();PDFDocumentProperties props = file.DocumentProperties;Console.WriteLine(" Title: {0}", props.Title);Console.WriteLine(" Author: {0}", props.Author);Console.WriteLine(" Subject: {0}", props.Subject);Console.WriteLine(" Keywords: {0}", props.Keywords);Console.WriteLine(" Creator: {0}", props.Creator);Console.WriteLine(" Producer: {0}", props.Producer);Console.WriteLine(" Created: {0}", props.Created);Console.WriteLine(" Modified: {0}", props.Modified);Console.WriteLine("----------:");}staticclassLEAD_VARS{publicconststringImagesDir =@“C: \ LEADTOOLS22 \ Resources \图片”;}
Requirements

Target Platforms

Leadtools.Pdf Assembly
188金宝搏的网址客服|Support|Contact Us|在tellectual Property Notices
© 1991-2023LEAD Technologies, Inc.All Rights Reserved.