FileDocCategorySizeDatePackage
PDFObject.javaAPI DocExample691Sun Feb 08 21:34:02 GMT 2004com.darwinsys.spdf

PDFObject

public abstract class PDFObject extends Object
A PDFObject represents one node in the tree of a PDF file.
author
Ian Darwin, http://www.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();