com.qoppa.pdfWriter
Class PDFPage

java.lang.Object
  extended bycom.qoppa.pdfWriter.PDFPage

public class PDFPage
extends Object

One page in a PDF document.


Method Summary
 Graphics2D createGraphics()
          Returns a Graphics2D object used to draw to this page.
 PDFDocument getDocument()
          Returns the PDFDocument object that this page belongs to.
 void setTransitionParams(double dispDuration, double transDuration, String transEffect)
          Sets this page's presentation information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createGraphics

public Graphics2D createGraphics()
Returns a Graphics2D object used to draw to this page. The object returned is actually a PDFGraphics object, which extends Graphics2D.

Returns:
Graphics2D Object used to draw to this page.

getDocument

public PDFDocument getDocument()
Returns the PDFDocument object that this page belongs to.

Returns:
PDFDocument PDFDocument object that owns this page.

setTransitionParams

public void setTransitionParams(double dispDuration,
                                double transDuration,
                                String transEffect)
Sets this page's presentation information. This information is used by some viewers to display the PDF file in a "presentation" mode. That is, each page is displayed for some time and then the next page is transitioned in.

Parameters:
dispDuration - The page's display duration, in seconds. The viewer will display this page for this duration before advancing to the next page.
transDuration - The duration of the transition, in seconds.
transEffect - The name of the transition effect to use to display the next page. Possible values for the transition are:
  • Split
  • Blinds
  • Box
  • Wipe
  • Dissolve
  • Glitter
  • R