![]() Save this code in a file with name AddingAttributes.java. Here, we will create a PDF document named doc_attributes.pdf, add various attributes to it, and save it in the path C:/PdfBox_Examples/. This example demonstrates how to add properties such as Author, Title, Date, and Subject to a PDF document. VIDÉO Cétait il y a 39 jours : la voiture de Pierre Palmade percutait celle dune famille sur une route de Seine-et-Marne. And you can insert DocProperty fields where you want the data to appear. These methods can set various properties to the document and retrieve them. You can add as many custom document properties as you want to hold different data. PDFBox provides a class called PDDocumentInformation and this class provides various methods. This method is used to set the value for the property of the PDF document named Keywords. This method is used to set the value for the property of the PDF document named ModificationDate. Pour la première fois, ce dernier témoigne au 20H de TF1. À son bord, une femme enceinte, son beau-frère et le fils de ce dernier, âgé de 6 ans, lourdement blessé dans laccident. This method is used to set the value for the property of the PDF document named CreationDate. VIDÉO Cétait il y a 39 jours : la voiture de Pierre Palmade percutait celle dune famille sur une route de Seine-et-Marne. This method is used to set the value for the property of the PDF document named Subject. This method is used to set the value for the property of the PDF document named Creator. This method is used to set the value for the property of the PDF document named Title. This method is used to set the value for the property of the PDF document named Author. The setter methods of this class are used to set values to various properties of a document and getter methods which are used to retrieve these values.įollowing are the setter methods of the PDDocumentInformation class. This class has a set of setter and getter methods. They include details such as title, author name. PDFBox provides you a class named PDDocumentInformation. Document properties, also known as metadata, are details about a file that describe or identify it. Using this property, you can set the Application of the document.įollowing is a screenshot of the document properties table of a PDF document. Using this property, you can set the date modified for the document. ![]() This information can be viewed by anyone who. Using this property, you can set the date created for the document. Document Properties The Properties dialog (Figures 2 and 4) enables you to store information about a document. Using this property, you can list the keywords with which we can search the document. Using this property, you can specify the subject of the PDF document. Using this property, you can set the name of the author for the document. Using this property, you can set the title for the document. This property holds the name of the file. ![]() Each property gives particular information about the document.įollowing are the properties of a PDF document − S.No. Like other files, a PDF document also has document properties.
0 Comments
Leave a Reply. |