package org.freehep.graphicsio.pdf; import java.io.IOException; /** * Implements the Page Base Node to accomodate Inheritance of Page Attributes * (see Table 3.17) *
* * @author Mark Donszelmann * @version $Id: PDFPageBase.java 8584 2006-08-10 23:06:37Z duns $ */ public abstract class PDFPageBase extends PDFDictionary { protected PDFPageBase(PDF pdf, PDFByteWriter writer, PDFObject object, PDFRef parent) throws IOException { super(pdf, writer, object); entry("Parent", parent); } // // Inheritable items go here // public void setResources(String resources) throws IOException { entry("Resources", pdf.ref(resources)); } public void setMediaBox(double x, double y, double w, double h) throws IOException { double[] rectangle = { x, y, w, h }; entry("MediaBox", rectangle); } public void setCropBox(double x, double y, double w, double h) throws IOException { double[] rectangle = { x, y, w, h }; entry("CropBox", rectangle); } public void setRotate(int rotate) throws IOException { entry("Rotate", rotate); } }