FileDocCategorySizeDatePackage
PDFObject.javaAPI DocExample683Wed May 17 18:11:48 BST 2000com.darwinsys.spdf

PDFObject

public abstract class PDFObject extends Object
A PDFObject represents one node in the tree of a PDF file.
author
Ian Darwin, ian@darwinsys.com

Fields Summary
protected PDF
master
The containing PDF file
Constructors Summary
PDFObject(PDF m)

		master = m;
	
Methods Summary
protected voidendObj()

		master.println("endobj");
	
protected abstract voidprint()
Write the object to the Output Writer

protected voidstartObj()

		// Record the starting position of this Obj in the xref table
		master.addXref();

		// Print out e.g., "42 0 obj"
		master.print(master.currObj++);
	 	master.print(" 0 obj");
		master.println();