publicstringCreator {get;set; }
publicString getCreator();
publicvoidsetCreator(
java.lang.String string
);
A System.String that contain the creator of the PDF document. The default value isnull.
PDF property item strings must be 126 characters or less. This is defined by thePDFDocument.MaximumStringLengthconstant. LEADTOOLS will automatically truncate the string if required.
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 file
ShowProperties("Source file", sourceFileName);
//Update the properties of the file
PDFFile 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 file
ShowProperties("Destination file", destFileName);
}
privatestaticvoidShowProperties(stringmessage,stringfileName)
{
Console.WriteLine(message);
//Get the properties of the file
PDFFile 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 \图片”;
}
Help Collections
Raster.NET|C API|C++ Class Library|HTML5 JavaScript
Document.NET|C API|C++ Class Library|HTML5 JavaScript
Medical.NET|C API|C++ Class Library|HTML5 JavaScript
Medical Web Viewer.NET
188宝金博怎么下载
Media Foundation.NET|C API|Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.