com.crionics.jpdf.destination
Class RemotePageDestination

java.lang.Object
  extended by PdfObjectContainer
      extended by com.crionics.jpdf.destination.AbstractDestinationPage
          extended by com.crionics.jpdf.destination.RemotePageDestination

public class RemotePageDestination
extends AbstractDestinationPage

A Destination Object defining the page and the zoom configuration of a page within another PDF Document.

A description of Destination Object is presented here: AbstractDestinationPage


Method Summary
static RemotePageDestination createInstance(PdfDocument doc)
          Allows the creation of a new Destination Object.
 int getPageIndex()
          Returns the index of the Page defined into the external PDF document.
 AbstractZoom getZoom(java.awt.print.PageFormat pageformat)
          Returns the zoom configuration defined into this Destination object.
 void setPageIndex(int index)
          Sets the index of the page present in the external PDF document, to which this destination object should be referring to.
 void setZoom(AbstractZoom zoom, java.awt.print.PageFormat pageformat)
          Sets the zoom configuration for this destination object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static RemotePageDestination createInstance(PdfDocument doc)
                                            throws PdfException,
                                                   java.io.IOException
Allows the creation of a new Destination Object.

Parameters:
doc - The Document into which the Destination object is to be created.
Returns:
The Destination Object.
Throws:
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.

getPageIndex

public int getPageIndex()
                 throws PdfException,
                        java.io.IOException
Returns the index of the Page defined into the external PDF document.

Returns:
The index of the page (First page start at index=1 !).
Throws:
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.

getZoom

public AbstractZoom getZoom(java.awt.print.PageFormat pageformat)
                     throws PdfException,
                            java.io.IOException
Returns the zoom configuration defined into this Destination object.

Parameters:
pageformat - The page format of the page into the external document. (Used to translate the coordinate from the PDF System of coordinate into the Java System of Coordinate)
Returns:
The zoom configuration.
Throws:
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.

setPageIndex

public void setPageIndex(int index)
                  throws PdfException,
                         java.io.IOException
Sets the index of the page present in the external PDF document, to which this destination object should be referring to.

Parameters:
index - The index of the page (First page start at index=1 !).
Throws:
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.

setZoom

public void setZoom(AbstractZoom zoom,
                    java.awt.print.PageFormat pageformat)
             throws PdfException,
                    java.io.IOException
Sets the zoom configuration for this destination object.

NOTE : This destination object must contains a valid Page Index before applying a new zoom configuration.

Parameters:
zoom - The zoom configuration.
pageformat - The page format of the page into the external document. (Used to translate the coordinate from the PDF System of coordinate into the Java System of Coordinate)
Throws:
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.


Copyright © 1999-2007 Crionics. All Rights Reserved.