package org.freehep.graphicsio.pdf;
import java.io.IOException;
/**
* Implements the Viewer Preferences (see Table 7.1).
* <p>
*
* @author Mark Donszelmann
* @version $Id: freehep-graphicsio-pdf/src/main/java/org/freehep/graphicsio/pdf/PDFViewerPreferences.java f493ff6e61b2 2005/12/01 18:46:43 duns $
*/
public class PDFViewerPreferences extends PDFDictionary {
PDFViewerPreferences(PDF pdf, PDFByteWriter writer, PDFObject object)
throws IOException {
super(pdf, writer, object);
}
public void setHideToolbar(boolean hide) throws IOException {
entry("HideToolbar", hide);
}
public void setHideMenubar(boolean hide) throws IOException {
entry("HideMenubar", hide);
}
public void setHideWindowUI(boolean hide) throws IOException {
entry("HideWindowUI", hide);
}
public void setFitWindow(boolean fit) throws IOException {
entry("FitWindow", fit);
}
public void setCenterWindow(boolean center) throws IOException {
entry("CenterWindow", center);
}
public void setNonFullScreenPageMode(String mode) throws IOException {
entry("NonFullScreenPageMode", pdf.name(mode));
}
public void setDirection(String direction) throws IOException {
entry("Direction", pdf.name(direction));
}
}