|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary> it.stefanochizzolini.clown.documents.Page
public class Page
Document page [PDF:1.6:3.6.2].
Nested Class Summary | |
---|---|
static class |
Page.TabOrderEnum
Annotations tab order [PDF:1.6:3.6.2]. |
Constructor Summary | |
---|---|
Page(Document context)
Creates a new page within the given document context, using default resources. |
|
Page(Document context,
Dimension2D size,
Resources resources)
Creates a new page within the given document context, using custom resources. |
|
Page(PdfDirectObject baseObject)
For internal use only. |
Method Summary | |
---|---|
Page |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
PageActions |
getActions()
Gets the page's behavior in response to trigger events. |
PageAnnotations |
getAnnotations()
Gets the annotations associated to the page. |
Rectangle2D |
getBox()
Gets the bounding box associated with the object, either explicitly (directly associated to the object) or (if not explicitly available) implicitly (inherited from a higher level object). |
Contents |
getContents()
Gets the contents collection representing the content stream. |
double |
getDuration()
Gets the page's display duration. |
int |
getIndex()
Gets the index of the page. |
protected PdfDirectObject |
getInheritableAttribute(PdfName key)
|
Resources |
getResources()
Gets the resources associated with the object, either explicitly (directly associated to the object) or (if not explicitly available) implicitly (inherited from a higher-level object). |
Dimension2D |
getSize()
Gets the page size. |
Page.TabOrderEnum |
getTabOrder()
Gets the tab order to be used for annotations on the page. |
Transition |
getTransition()
Gets the transition effect to be used when displaying the page during presentations. |
void |
setActions(PageActions value)
|
void |
setAnnotations(PageAnnotations value)
|
void |
setDuration(double value)
|
void |
setSize(Dimension2D value)
|
void |
setTabOrder(Page.TabOrderEnum value)
|
void |
setTransition(Transition value)
|
ContentObject |
toInlineObject(PrimitiveFilter context)
Converts the entity to its equivalent inline (dependent) object representation [PDF:1.6:4.8.6]. |
XObject |
toXObject(Document context)
Converts the entity to its equivalent external (independent) object representation [PDF:1.6:4.7]. |
static Page |
wrap(PdfReference reference)
|
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper |
---|
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Page(Document context)
public Page(Document context, Dimension2D size, Resources resources)
public Page(PdfDirectObject baseObject)
Method Detail |
---|
public static Page wrap(PdfReference reference)
public Page clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfDictionary>
context
- Which document the clone has to be registered in.public PageActions getActions()
public PageAnnotations getAnnotations()
public double getDuration()
The page's display duration (also called its advance timing) is the maximum length of time, in seconds, that the page is displayed during presentations before the viewer application automatically advances to the next page.
By default, the viewer does not advance automatically.
public int getIndex()
The page index is not an explicit datum, therefore it needs to be inferred from the position of the page object inside the page tree, requiring a significant amount of computation: invoke it sparingly!
public Dimension2D getSize()
public Page.TabOrderEnum getTabOrder()
public Transition getTransition()
public void setActions(PageActions value)
getActions()
public void setAnnotations(PageAnnotations value)
getAnnotations()
public void setDuration(double value)
getDuration()
public void setSize(Dimension2D value)
getSize()
public void setTabOrder(Page.TabOrderEnum value)
getTabOrder()
public void setTransition(Transition value)
getTransition()
public Rectangle2D getBox()
IContentContext
The box represents the physical-coordinates frame expressed in default user-space units. This frame is crucial for the proper positioning of graphic elements on the canvas, as the spec [PDF:1.6:4.2] states that the coordinate system is positively-oriented, although the typographic coordinates would be conveniently expressed as negatively-oriented.
getBox
in interface IContentContext
public Contents getContents()
IContentContext
getContents
in interface IContentContext
public Resources getResources()
IContentContext
The implementing class MUST ensure that the returned object isn't null.
getResources
in interface IContentContext
public ContentObject toInlineObject(PrimitiveFilter context)
IContentEntity
This method creates and shows an inline object within the target content context, returning it.
Due to its direct-content nature (opposite to the indirect-content nature of
external objects (see IContentEntity.toXObject(Document)
)), the resulting object should be shown
only one time in order not to wastefully duplicate its data.
toInlineObject
in interface IContentEntity
context
- Target content context.
public XObject toXObject(Document context)
IContentEntity
This method creates an external object within the target document, returning it. To show it
in a content context (for example: a page), then it must be applied in an appropriate manner (see
PrimitiveFilter
object).
toXObject
in interface IContentEntity
context
- Target document.
protected PdfDirectObject getInheritableAttribute(PdfName key)
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |