ElegantJ PDF Library Java API Specification v1.1

com.elegantj.pdf
Class Pages

java.lang.Object
  extended bycom.elegantj.pdf.PDFObject
      extended bycom.elegantj.pdf.Pages

public class Pages
extends PDFObject

The pages of a document are accessible through a tree of nodes known as the Pages tree. This tree defines the ordering of the pages in the document.


Constructor Summary
Pages(PDF pdf)
          Constructs a Pages object
 
Method Summary
 void add(Page page)
          Method which adds the page to this pages
 Page getPage(int kidObjID)
          Method which returns the child page using the specified id
 int getPageIndex(Page page)
          Returns the page index of the spcified page
 
Methods inherited from class com.elegantj.pdf.PDFObject
getPDFObjectID, getPDFObjectRefStr, getPDFObjectType, setPDFObjectID, setPDFObjectType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pages

public Pages(PDF pdf)
Constructs a Pages object

Parameters:
pdf - The pdf object
Method Detail

add

public void add(Page page)
Method which adds the page to this pages

Parameters:
page - The page which will be added to this pages object

getPage

public Page getPage(int kidObjID)
Method which returns the child page using the specified id

Parameters:
kidObjID - The id of the child page

getPageIndex

public int getPageIndex(Page page)
Returns the page index of the spcified page

Parameters:
page - The Specified page
Returns:
THe index of the spcified page

ElegantJ PDF Library Java API Specification v1.1

For any feedback, suggestion, or query, please revert back to support@elegantjpdf.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjpdf.com
All Rights Reserved.