com.cete.dynamicpdf
Class Document


Example: Gets or sets a value indicating the custom properties of the Document.

import com.cete.dynamicpdf.CustomPropertyList;
import com.cete.dynamicpdf.Document;
import com.cete.dynamicpdf.Page;
import com.cete.dynamicpdf.pageelements.Label;


class MyClass
{
  static void Main()
  {
    Document document = new Document();
 	Page page = new Page();
	document.getPages().add(page);
	page.getElements().add(new Label("Document custom properties", 0, 0, 400, 100));
	
	// Add custom properties to the document
	CustomPropertyList list = document.getCustomProperties();
	list.add("name1", "value1");
	list.add("name2", "value2");
	list.add("name3", "value3");
	list.add("name4", "value4");

	// Save the PDF document
	document.draw("C:\MyDocument.pdf");
  }
 }