Package com.artifex.mupdf.fitz
Class Document
java.lang.Object
com.artifex.mupdf.fitz.Document
- Direct Known Subclasses:
PDFDocument
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasPDF()booleanauthenticatePassword(String password) clampLocation(Location input) intintintcountPages(int chapter) voiddestroy()protected voidfinalize()findBookmark(long mark) formatLinkURI(LinkDestination dest) getMetaData(String key) booleanhasPermission(int permission) booleanisPDF()booleanbooleanlastPage()voidlayout(float width, float height, float em) Outline[]loadPage(int number) loadPage(int chapter, int number) locationFromPageNumber(int number) longmakeBookmark(int chapter, int page) longmakeBookmark(Location loc) booleanstatic DocumentopenDocument(byte[] buffer, String magic) static DocumentopenDocument(byte[] buffer, String magic, byte[] accelerator) static DocumentopenDocument(SeekableInputStream stream, String magic) static DocumentopenDocument(SeekableInputStream stream, String magic, SeekableInputStream accelerator) static DocumentopenDocument(String filename) static DocumentopenDocument(String filename, SeekableInputStream accelerator) static DocumentopenDocument(String filename, String accelerator) protected static DocumentopenNativeWithBuffer(String magic, byte[] buffer, byte[] accelerator) protected static DocumentopenNativeWithPath(String filename, String accelerator) protected static DocumentopenNativeWithPathAndStream(String filename, SeekableInputStream accelerator) protected static DocumentopenNativeWithStream(String magic, SeekableInputStream stream, SeekableInputStream accelerator) voidintpreviousPage(Location loc) static booleanresolveLink(Link link) resolveLink(Outline link) resolveLink(String uri) resolveLinkDestination(Link link) voidsaveAccelerator(String filename) Quad[][]voidsetMetaData(String key, String value) boolean
-
Field Details
-
META_FORMAT
- See Also:
-
META_ENCRYPTION
- See Also:
-
META_INFO_AUTHOR
- See Also:
-
META_INFO_TITLE
- See Also:
-
META_INFO_SUBJECT
- See Also:
-
META_INFO_KEYWORDS
- See Also:
-
META_INFO_CREATOR
- See Also:
-
META_INFO_PRODUCER
- See Also:
-
META_INFO_CREATIONDATE
- See Also:
-
META_INFO_MODIFICATIONDATE
- See Also:
-
pointer
protected long pointer -
PERMISSION_PRINT
public static final int PERMISSION_PRINT- See Also:
-
PERMISSION_COPY
public static final int PERMISSION_COPY- See Also:
-
PERMISSION_EDIT
public static final int PERMISSION_EDIT- See Also:
-
PERMISSION_ANNOTATE
public static final int PERMISSION_ANNOTATE- See Also:
-
PERMISSION_FORM
public static final int PERMISSION_FORM- See Also:
-
PERMISSION_ACCESSBILITY
public static final int PERMISSION_ACCESSBILITY- See Also:
-
PERMISSION_ASSEMBLE
public static final int PERMISSION_ASSEMBLE- See Also:
-
PERMISSION_PRINT_HQ
public static final int PERMISSION_PRINT_HQ- See Also:
-
-
Constructor Details
-
Document
protected Document(long p)
-
-
Method Details
-
finalize
protected void finalize() -
destroy
public void destroy() -
openNativeWithPath
-
openNativeWithBuffer
-
openNativeWithStream
protected static Document openNativeWithStream(String magic, SeekableInputStream stream, SeekableInputStream accelerator) -
openNativeWithPathAndStream
protected static Document openNativeWithPathAndStream(String filename, SeekableInputStream accelerator) -
openDocument
-
openDocument
-
openDocument
-
openDocument
-
openDocument
-
openDocument
-
openDocument
public static Document openDocument(SeekableInputStream stream, String magic, SeekableInputStream accelerator) -
recognize
-
supportsAccelerator
public boolean supportsAccelerator() -
saveAccelerator
-
outputAccelerator
-
needsPassword
public boolean needsPassword() -
authenticatePassword
-
countChapters
public int countChapters() -
countPages
public int countPages(int chapter) -
loadPage
-
countPages
public int countPages() -
loadPage
-
loadPage
-
lastPage
-
nextPage
-
previousPage
-
clampLocation
-
locationFromPageNumber
-
pageNumberFromLocation
-
search
-
resolveLink
-
resolveLink
-
resolveLink
-
resolveLinkDestination
-
resolveLinkDestination
-
resolveLinkDestination
-
resolveLinkDestination
-
loadOutline
-
outlineIterator
-
getMetaData
-
setMetaData
-
isReflowable
public boolean isReflowable() -
layout
public void layout(float width, float height, float em) -
findBookmark
-
makeBookmark
public long makeBookmark(int chapter, int page) -
makeBookmark
-
hasPermission
public boolean hasPermission(int permission) -
isUnencryptedPDF
public boolean isUnencryptedPDF() -
formatLinkURI
-
isPDF
public boolean isPDF() -
asPDF
-