|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pdfclown.objects.PdfObjectWrapper<PdfDictionary> org.pdfclown.documents.Document
@PDF(value=PDF10) public final class Document
PDF document [PDF:1.6:3.6.1].
Nested Class Summary | |
---|---|
static class |
Document.Configuration
Document configuration. |
static class |
Document.PageLayoutEnum
Page layout to be used when the document is opened [PDF:1.6:3.6.1]. |
static class |
Document.PageModeEnum
Page mode specifying how the document should be displayed when opened [PDF:1.6:3.6.1]. |
Field Summary | |
---|---|
Hashtable<PdfReference,Object> |
cache
For internal use only. |
Fields inherited from interface java.awt.print.Pageable |
---|
UNKNOWN_NUMBER_OF_PAGES |
Constructor Summary | |
---|---|
Document(File context)
For internal use only. |
|
Document(PdfDirectObject baseObject)
For internal use only. |
Method Summary | ||
---|---|---|
Document |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
|
void |
exclude(Collection<? extends PdfObjectWrapper<?>> objects)
Deletes the objects from this document context. |
|
void |
exclude(PdfObjectWrapper<?> object)
Deletes the object from this document context. |
|
DocumentActions |
getActions()
Gets the document's behavior in response to trigger events. |
|
Articles |
getArticles()
Gets the article threads. |
|
Bookmarks |
getBookmarks()
Gets the bookmark collection. |
|
Document.Configuration |
getConfiguration()
Gets the configuration of this document. |
|
Form |
getForm()
Gets the interactive form (AcroForm). |
|
Information |
getInformation()
Gets common document metadata. |
|
LayerDefinition |
getLayer()
Gets the optional content properties. |
|
Names |
getNames()
Gets the name dictionary. |
|
int |
getNumberOfPages()
|
|
PageFormat |
getPageFormat(int pageIndex)
|
|
PageLabels |
getPageLabels()
Gets the page label ranges. |
|
Document.PageLayoutEnum |
getPageLayout()
Gets the page layout to be used when the document is opened. |
|
Document.PageModeEnum |
getPageMode()
Gets the page mode, that is how the document should be displayed when is opened. |
|
Pages |
getPages()
Gets the page collection. |
|
Dimension2D |
getPageSize()
Gets the default page size [PDF:1.6:3.6.2]. |
|
Printable |
getPrintable(int pageIndex)
|
|
Resources |
getResources()
Gets the default resource collection [PDF:1.6:3.6.2]. |
|
Dimension2D |
getSize()
Gets the document size, that is the maximum page dimensions across the whole document. |
|
Version |
getVersion()
Gets the version of the PDF specification this document conforms to. |
|
ViewerPreferences |
getViewerPreferences()
Gets the way the document is to be presented. |
|
Collection<? extends PdfObjectWrapper<?>> |
include(Collection<? extends PdfObjectWrapper<?>> objects)
Clones the specified collection objects within this document context. |
|
PdfObjectWrapper<?> |
include(PdfObjectWrapper<?> object)
Clones the specified object within this document context. |
|
static
|
resolve(Class<T> type,
PdfDirectObject baseObject)
|
|
|
resolveName(Class<T> type,
PdfDirectObject namedBaseObject)
Forces a named base object to be expressed as its corresponding high-level representation. |
|
void |
setActions(DocumentActions value)
|
|
void |
setArticles(Articles value)
|
|
void |
setBookmarks(Bookmarks value)
|
|
void |
setConfiguration(Document.Configuration value)
|
|
void |
setForm(Form value)
|
|
void |
setInformation(Information value)
|
|
void |
setLayer(LayerDefinition value)
|
|
void |
setNames(Names value)
|
|
void |
setPageLabels(PageLabels value)
|
|
void |
setPageLayout(Document.PageLayoutEnum value)
|
|
void |
setPageMode(Document.PageModeEnum value)
|
|
void |
setPages(Pages value)
|
|
void |
setPageSize(Dimension2D value)
|
|
void |
setResources(Resources value)
|
|
void |
setVersion(Version value)
|
|
void |
setViewerPreferences(ViewerPreferences value)
|
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
---|
checkCompatibility, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Hashtable<PdfReference,Object> cache
Constructor Detail |
---|
public Document(File context)
public Document(PdfDirectObject baseObject)
Method Detail |
---|
public static <T extends PdfObjectWrapper<?>> T resolve(Class<T> type, PdfDirectObject baseObject)
public Document clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfDictionary>
context
- Which document the clone has to be registered in.public void exclude(PdfObjectWrapper<?> object)
public void exclude(Collection<? extends PdfObjectWrapper<?>> objects)
@PDF(value=PDF14) public DocumentActions getActions()
@PDF(value=PDF11) public Articles getArticles()
public Bookmarks getBookmarks()
public final Document.Configuration getConfiguration()
@PDF(value=PDF12) public Form getForm()
public Information getInformation()
@PDF(value=PDF15) public LayerDefinition getLayer()
@PDF(value=PDF12) public Names getNames()
@PDF(value=PDF13) public PageLabels getPageLabels()
public Document.PageLayoutEnum getPageLayout()
public Document.PageModeEnum getPageMode()
public Pages getPages()
public Dimension2D getPageSize()
getSize()
public Resources getResources()
The default resource collection is used as last resort by every page that doesn't reference one explicitly (and doesn't reference an intermediate one implicitly).
public Dimension2D getSize()
getPageSize()
@PDF(value=PDF14) public Version getVersion()
@PDF(value=PDF12) public ViewerPreferences getViewerPreferences()
public PdfObjectWrapper<?> include(PdfObjectWrapper<?> object)
public Collection<? extends PdfObjectWrapper<?>> include(Collection<? extends PdfObjectWrapper<?>> objects)
public <T extends PdfObjectWrapper<?>> T resolveName(Class<T> type, PdfDirectObject namedBaseObject)
public void setActions(DocumentActions value)
getActions()
public void setArticles(Articles value)
getArticles()
public void setBookmarks(Bookmarks value)
getBookmarks()
public void setConfiguration(Document.Configuration value)
getConfiguration()
public void setForm(Form value)
getForm()
public void setInformation(Information value)
getInformation()
public void setLayer(LayerDefinition value)
getLayer()
public void setNames(Names value)
getNames()
public void setPageLabels(PageLabels value)
getPageLabels()
public void setPageLayout(Document.PageLayoutEnum value)
getPageLayout()
public void setPageMode(Document.PageModeEnum value)
getPageMode()
public void setPages(Pages value)
getPages()
public void setPageSize(Dimension2D value)
getPageSize()
public void setResources(Resources value)
getResources()
public void setVersion(Version value)
getVersion()
public void setViewerPreferences(ViewerPreferences value)
getViewerPreferences()
public int getNumberOfPages()
getNumberOfPages
in interface Pageable
public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException
getPageFormat
in interface Pageable
IndexOutOfBoundsException
public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException
getPrintable
in interface Pageable
IndexOutOfBoundsException
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |