public class PdfDecoderFX extends javafx.scene.layout.Pane implements Printable, Pageable, PdfDecoderInt
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Field and Description |
|---|---|
javafx.scene.layout.Pane |
highlightsPane |
protected Border |
myBorder
border for component
|
Display |
pages |
protected int |
specialMode |
boolean |
useNewGraphicsMode |
NO_SUCH_PAGE, PAGE_EXISTSUNKNOWN_NUMBER_OF_PAGESCLIPPEDIMAGES, FINALIMAGES, NOTEXTPRINT, RASTERIZE_FORMS, RAWCOMMANDS, RAWIMAGES, REMOVE_NOFORMS, REMOVE_RENDERSHAPES, RENDERIMAGES, RENDERTEXT, STANDARDTEXTSTRINGPRINT, SUBSTITUTE_FONT_USING_FAMILY_NAME, SUBSTITUTE_FONT_USING_FILE_NAME, SUBSTITUTE_FONT_USING_FULL_FONT_NAME, SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME, SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME_USE_FAMILY_NAME_IF_DUPLICATES, TEXT, TEXTCOLOR, TEXTGLYPHPRINT, TEXTSTRINGPRINT, version, XFORMMETADATA| Constructor and Description |
|---|
PdfDecoderFX()
Recommend way to create a PdfDecoder for renderer only viewer (not
recommended for server extraction only processes)
|
PdfDecoderFX(boolean newRender)
Recommend way to create a PdfDecoder if no rendering of page may be
required
Otherwise use PdfDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalHandler(Object newHandler,
int type)
not part of API used internally
|
void |
clearScreen()
remove all displayed objects for JPanel display (wipes current page)
|
void |
closePdfFile()
convenience method to close the current PDF file and release all resources/delete any temporary files
|
void |
decodePage(int rawPage)
decode a page, - page must be between 1 and
PdfDecoder.getPageCount() - Will kill off if already running
|
void |
decodePageInBackground(int i)
decode a page as a background thread (use other background methods to access data)
|
void |
dispose()
convenience method to remove all items from memory
If you wish to clear all static objects as well, you will also need to call
disposeAllStatic()
|
static void |
disposeAllStatic()
remove all static elements - only do once completely finished with JPedal
as will not be reinitialised
|
void |
drawAdditionalObjectsOverPage(int page,
int[] type,
Color[] colors,
Object[] obj)
allow user to add grapical content on top of page - for display ONLY
Additional calls will overwrite current settings on page
ONLY works in SINGLE VIEW displaymode
|
void |
flushAdditionalObjectsOnPage(int page)
allow user to remove all additional graphical content from the page (only for display)
ONLY works in SINGLE VIEW displaymode
|
void |
flushObjectValues(boolean reinit)
provide method for outside class to clear store of objects once written out to reclaim memory
|
PdfGroupingAlgorithms |
getBackgroundGroupingObject()
returns object containing grouped text from background grouping - Please
see org.jpedal.examples.text for example code
|
static int |
getCurrentPrintPage()
return page currently being printed or -1 if finished
|
DecoderOptions |
getDecoderOptions()
Return decoder options as object for cases where value is needed externally and can't be static
|
DisplayOffsets |
getDisplayOffsets() |
int |
getDisplayRotation()
current page rotation (in addition to rotation in file) in degrees
So if user turns page by 90 degrees, value will be 90
|
int |
getDisplayView()
returns view mode used - ie SINGLE_PAGE,CONTINUOUS,FACING,CONTINUOUS_FACING (no effect in OS versions)
|
DPIFactory |
getDPIFactory()
return handle on PDFFactory which adjusts display size so matches size in Acrobat
|
DynamicVectorRenderer |
getDynamicRenderer()
Not part of API - used internally
|
DynamicVectorRenderer |
getDynamicRenderer(boolean reset)
Not part of API - used internally
|
ExternalHandlers |
getExternalHandler() |
Object |
getExternalHandler(int type)
not part of API used internally
|
PdfFileInformation |
getFileInformationData()
method to return null or object giving access info fields and metadata.
|
String |
getFileName()
currently open PDF file name
|
AcroRenderer |
getFormRenderer()
Allow user to access Forms renderer object if needed
|
PdfGroupingAlgorithms |
getGroupingObject()
returns object containing grouped text of last decoded page
- if no page decoded, a Runtime exception is thrown to warn user
Please see org.jpedal.examples.text for example code.
|
float |
getHiResUpscaleFactor()
return scaleup factor applied to last Hires image of page generated
negative values mean no upscaling applied and should be ignored
|
String |
getInfo(int type)
Returns list of the fonts used on the current page decoded or null
type can be PdfDictionary.Font or PdfDictionary.Image
|
int |
getInsetH()
Return amount to inset the page rectangle height by
|
int |
getInsetW()
Return amount to inset the page rectangle width by
|
PdfObjectReader |
getIO()
allow access to PDF file
|
Javascript |
getJavaScript()
Allow user to access javascript object if needed
|
Object |
getJPedalObject(int id)
Not part of API - used internally
|
int |
getlastPageDecoded()
return page number for last page decoded (only use in SingleDisplay mode)
|
Document |
getMarkedContent()
return markedContent object as XML Document
|
int[] |
getMaximumSize()
get sizes of panel
This is the PDF pagesize (as set in the PDF from pagesize) - It now includes any scaling factor you have set (ie a PDF size 800 * 600 with a scaling factor of 2 will return 1600 *1200) |
int[] |
getMaxSizeWH() |
int |
getNumberOfPages()
part of pageable interface - used only in printing
Use getPageCount() for number of pages
|
ObjectStore |
getObjectStore()
return object which provides access to file images and name
|
Document |
getOutlineAsXML()
return a DOM document containing the PDF Outline object as a DOM Document - may return null
|
OutlineData |
getOutlineData()
provide direct access to outlineData object
|
int |
getPageAlignment()
return type of alignment for pages if smaller than panel
- see options in Display class.
|
BufferedImage |
getPageAsHiRes(int pageIndex) |
BufferedImage |
getPageAsHiRes(int pageIndex,
boolean isTransparent) |
BufferedImage |
getPageAsHiRes(int pageIndex,
Map params) |
BufferedImage |
getPageAsHiRes(int pageIndex,
Map params,
boolean isTransparent) |
BufferedImage |
getPageAsImage(int pageIndex)
generate BufferedImage of a page in current file
|
BufferedImage |
getPageAsImage(int pageIndex,
float scaling)
generate BufferedImage of a page in current file with the given scaling
|
BufferedImage |
getPageAsTransparentImage(int pageIndex)
generate BufferedImage of a page in current file
|
int |
getPageCount()
get page count of current PDF file
|
String |
getPageDecodeReport()
return any errors or other messages while calling decodePage() - zero length is no problems
|
boolean |
getPageDecodeStatus(int status)
returns booleans based on flags in class org.jpedal.parser.DecoderStatus
|
String |
getPageDecodeStatusReport(int status)
get page statuses (flags in class org.jpedal.parser.DecoderStatus)
|
static String |
getPageFailureMessage()
Return String with all error messages from last printed (useful for debugging)
|
PageFormat |
getPageFormat(int p)
part of pageable interface
|
int |
getPageFromObjectRef(String ref)
given a ref, what is the page
|
Iterator |
getPageInfo(int type)
return details on page for type (defined in org.jpedal.constants.PageInfo) or null if no values
Unrecognised key will throw a RunTime exception
|
int |
getPageNumber()
current logical page number
|
Display |
getPages() |
int[] |
getPaneBounds() |
PdfData |
getPdfBackgroundData()
NOT PART OF API
|
PdfImageData |
getPdfBackgroundImageData()
provide method for outside class to get data object containing images.
|
PdfData |
getPdfData()
Access should not generally be required to
this class but used in examples.
|
int |
getPDFHeight()
get sizes of panel -
This is the PDF pagesize
|
PdfImageData |
getPdfImageData()
provide method for outside class to get data object containing images
|
PdfPageData |
getPdfPageData()
Provides method for outside class to get data
object containing information on the page for calculating grouping
Please note: Structure of PdfPageData is not guaranteed to remain constant. |
String |
getPDFVersion()
get PDF version in file
|
int |
getPDFWidth()
get sizes of panel
This is the PDF pagesize (as set in the PDF from pagesize) - It now includes any scaling factor you have set |
Printable |
getPrintable(int page)
part of pageable interface
|
protected PdfResources |
getRes() |
float |
getScaling()
returns current scaling value used internally
|
int |
getScrollInterval()
return amount to scroll window by when scrolling (default is 10)
|
BufferedImage |
getSelectedRectangleOnscreen(float t_x1,
float t_y1,
float t_x2,
float t_y2,
float scaling)
If running in GUI mode, will extract a section of rendered page as
BufferedImage -coordinates are PDF co-ordinates.
|
int |
getSpecialMode() |
TextLines |
getTextLines()
access textlines object
|
int |
getTextPrint() |
Point |
getUserOffsets(int mode)
not part of API used internally
|
Rectangle |
getVisibleRect() |
boolean |
hasAllImages()
flag to show if we suspect problem with some images
|
boolean |
hasEmbeddedFonts()
shows if embedded fonts present on page just decoded
|
boolean |
hasOutline()
flag to show if PDF document contains an outline
|
static void |
init(boolean newEmbedWidthData)
This will be needed for text extraction and set to true
as paramter makes sure widths included in text stream
|
boolean |
isBorderPresent() |
boolean |
isEncrypted()
return true if the current pdf file is encrypted
check isFileViewable(), if file is encrypted and not viewable - a user specified password is needed. |
boolean |
isExtractionAllowed()
show if content can be extracted
|
boolean |
isFileViewable()
show if encrypted file can be viewed,
if false a password needs entering |
boolean |
isForm()
return true if currently open PDF file is a PDF form
|
boolean |
isLoadingLinearizedPDF()
track if file still loaded in background
|
boolean |
isOpen()
see if the file is open - may not be if the user interrupted open or encountered a problem
|
boolean |
isPageAvailable(int rawPage)
see if page available if in Linearized mode or return true
|
static boolean |
isPageSuccessful()
shows if page reported any errors while printing.
|
boolean |
isPasswordSupplied()
show if encryption password has been supplied or set a certificate
|
boolean |
isXMLExtraction()
shows if text extraction is XML or pure text
|
static void |
modifyJPedalParameters(Map values)
allow user to alter certain values in software such as Colour,
|
void |
modifyNonstaticJPedalParameters(Map values)
allow user to alter certain values in software
such as Colour,
|
void |
openPdfArray(byte[] data)
routine to open a byte stream containing the PDF file and extract key info
from pdf file so we can decode any pages.
|
void |
openPdfArray(byte[] data,
String password)
routine to open a byte stream containing the PDF file and extract key info
from pdf file so we can decode any pages.
|
void |
openPdfFile(String filename)
routine to open PDF file and extract key info from pdf file so we can
decode any pages.
|
void |
openPdfFile(String filename,
Certificate certificate,
PrivateKey key)
allow user to open file using Certificate and key
|
void |
openPdfFile(String filename,
String password)
routine to open PDF file and extract key info from pdf file so we can
decode any pages which also sets password.
|
boolean |
openPdfFileFromInputStream(InputStream is,
boolean supportLinearized)
routine to open PDF file via InputStream and extract key info from pdf file so we
can decode any pages - Does not actually decode the pages themselves -
You must explicitly close any open files with closePdfFile() to Java will not release all the memory |
boolean |
openPdfFileFromInputStream(InputStream is,
boolean supportLinearized,
String password)
routine to open PDF file via InputStream and extract key info from pdf file so we
can decode any pages - Does not actually decode the pages themselves -
You must explicitly close any open files with closePdfFile() to Java will not release all the memory |
void |
openPdfFileFromStream(Object filename,
String password)
routine to open PDF file and extract key info from pdf file so we can
decode any pages which also sets password.
|
boolean |
openPdfFileFromURL(String pdfUrl,
boolean supportLinearized)
routine to open PDF file via URL and extract key info from pdf file so we
can decode any pages - Does not actually decode the pages themselves -
Also reads the form data - Based on an idea by Peter Jacobsen
You must explicitly close any open files with closePdfFile() so Java will release all the memory |
boolean |
openPdfFileFromURL(String pdfUrl,
boolean supportLinearized,
String password)
routine to open PDF file via URL and extract key info from pdf file so we
can decode any pages - Does not actually decode the pages themselves -
Also reads the form data - Based on an idea by Peter Jacobsen
You must explicitly close any open files with closePdfFile() so Java will release all the memory |
int |
print(Graphics graphics,
PageFormat pageFormat,
int page)
Implements the standard Java printing functionality.
|
void |
repaint() |
void |
repaintPane(int page) |
void |
resetCurrentPrintPage() |
void |
resetForNonPDFPage(int pageCount)
used for non-PDF files to reset page
|
void |
resetViewableArea()
NOT PART OF API
turns off the viewable area, scaling the page back to original scaling
|
void |
scrollRectToVisible(Rectangle rectangle) |
void |
setBorderPresent(boolean borderPresent) |
void |
setDefaultCursor(javafx.scene.Cursor c)
When changing the mouse mode we call this method to set the mouse mode default cursor
|
void |
setDisplayRotation(int newRotation) |
void |
setEncryptionPassword(String password)
set a password for encryption - software will resolve if user or owner
password- calls verifyAccess() from 2.74 so no separate call needed
|
void |
setExtractionMode(int mode)
set extraction mode telling JPedal what to extract -
(TEXT,RAWIMAGES,FINALIMAGES - add together to combine) - See
org.jpedal.examples for specific extraction examples
|
void |
setExtractionMode(int mode,
float scaling)
Please do not use for general usage.
|
void |
setHardwareAccelerationforScreen(boolean useAcceleration)
Enables/Disables hardware acceleration of screen rendering (default is on)
|
void |
setInset(int width,
int height)
set an inset display so that display will not touch edge of panel
|
void |
setObjectStore(ObjectStore newStore)
return object which provides access to file images and name (use not recommended)
|
void |
setPageDisplayMode(int pageDisplayMode)
NOT PART OF API
|
void |
setPageMode(int mode)
Not part of API - used internally
|
void |
setPageNumber(int newPage) |
void |
setPageParameters(float scaling,
int pageNumber)
initialise panel and set size to fit PDF page
intializes display with rotation set to the default, specified in the PDF document scaling value of -1 means keep existing setting |
void |
setPageParameters(float scaling,
int pageNumber,
int newRotation)
calls setPageParameters(scaling,pageNumber) after setting rotation to draw page
|
void |
setPDFBorder(Border newBorder)
set border for screen and print which will be displayed
Setting a new value will enable screen and border painting - disable with disableBorderForPrinting() |
void |
setPreviewThumbnail(BufferedImage previewImage,
String previewText)
internal method used by Viewer to provide preview of PDF in Viewer
|
void |
setRenderMode(int mode)
set render mode to state what is displayed onscreen (ie
RENDERTEXT,RENDERIMAGES) - only generally required if you do not wish to
show all objects on screen (default is all).
|
void |
setScaling(float x) |
void |
setScrollInterval(int scrollInterval)
set amount to scroll window by when scrolling
|
void |
setStatusBarObject(StatusBar statusBar)
Not part of API - used internally
|
void |
setStreamCacheSize(int size)
allows user to cache large objects to disk to avoid memory issues,
setting minimum size in bytes (of uncompressed stream) above which object
will be stored on disk if possible (default is -1 bytes which is all
objects stored in memory) - Must be set before file opened.
|
void |
setUserOffsets(int x,
int y,
int mode)
not part of API used internally
allow user to 'move' display of PDF
mode is a Constant in org.jpedal.external.OffsetOptions (ie OffsetOptions.SWING_DISPLAY,OffsetOptions.PRINTING)
|
void |
updateCursorBoxOnScreen(int[] rectParams,
int outlineColor)
update rectangle we draw to highlight an area -
See Viewer example for example code showing current usage.
|
boolean |
useNewGraphicsMode() |
void |
useNewGraphicsMode(boolean b) |
void |
useTextExtraction()
XML extraction is the default - pure text extraction is much faster
|
void |
useXMLExtraction()
XML extraction is the default - pure text extraction is much faster
|
void |
waitForDecodingToFinish()
wait for decoding to finish
|
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthPropertygetBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrequestFocuspublic boolean useNewGraphicsMode
public Display pages
protected Border myBorder
protected int specialMode
public final javafx.scene.layout.Pane highlightsPane
public PdfDecoderFX(boolean newRender)
newRender - flag to show if pages are being rendered (true) or only extraction taking place (flase).public PdfDecoderFX()
public boolean isOpen()
isOpen in interface PdfDecoderIntpublic Document getMarkedContent()
getMarkedContent in interface PdfDecoderIntpublic ExternalHandlers getExternalHandler()
getExternalHandler in interface PdfDecoderIntprotected PdfResources getRes()
public int getDisplayRotation()
getDisplayRotation in interface PdfDecoderIntpublic int getPageNumber()
getPageNumber in interface PdfDecoderIntpublic void setPageNumber(int newPage)
public void setDisplayRotation(int newRotation)
setDisplayRotation in interface PdfDecoderIntpublic Display getPages()
getPages in interface PdfDecoderIntpublic int getlastPageDecoded()
getlastPageDecoded in interface PdfDecoderIntpublic Iterator getPageInfo(int type)
null returned if JPedal not clear on result
getPageInfo in interface PdfDecoderIntpublic OutlineData getOutlineData()
getOutlineData in interface PdfDecoderIntpublic boolean isLoadingLinearizedPDF()
isLoadingLinearizedPDF in interface PdfDecoderIntpublic boolean useNewGraphicsMode()
useNewGraphicsMode in interface PdfDecoderIntpublic void useNewGraphicsMode(boolean b)
useNewGraphicsMode in interface PdfDecoderIntpublic int getSpecialMode()
getSpecialMode in interface PdfDecoderIntpublic void scrollRectToVisible(Rectangle rectangle)
public void resetViewableArea()
resetViewableArea in interface PdfDecoderIntpublic int getPageAlignment()
getPageAlignment in interface PdfDecoderIntpublic static void init(boolean newEmbedWidthData)
newEmbedWidthData - - flag to embed width data in text fragments
for use by grouping algorithmspublic void setPageDisplayMode(int pageDisplayMode)
Recommend you use Viewer class if you want this functionality
pageDisplayMode - public static void disposeAllStatic()
public final void dispose()
dispose in interface PdfDecoderIntpublic final void closePdfFile()
closePdfFile in interface PdfDecoderIntpublic final PdfData getPdfBackgroundData()
Access should not generally be required to this class. Please look at getBackgroundGroupingObject() - provide method for outside class to get data object containing text and metrics of text. - Viewer can only access data for finding on page
public final PdfData getPdfData() throws PdfException
getPdfData in interface PdfDecoderIntPdfExceptionpublic final boolean hasOutline()
hasOutline in interface PdfDecoderIntpublic final Document getOutlineAsXML()
getOutlineAsXML in interface PdfDecoderIntpublic final PdfPageData getPdfPageData()
getPdfPageData in interface PdfDecoderIntpublic int print(Graphics graphics, PageFormat pageFormat, int page) throws PrinterException
print in interface Printablegraphics - the context into which the page is drawnpageFormat - the size and orientation of the page being drawnpage - the zero based index of the page to be drawnPrinterExceptionpublic BufferedImage getPageAsHiRes(int pageIndex) throws PdfException
getPageAsHiRes in interface PdfDecoderIntpageIndex - number of the page we want to extractPdfException - Page size is defined by CropBox
see http://files.idrsolutions.com/samplecode/org/jpedal/examples/images/ConvertPagesToHiResImages.java.html for full detailspublic BufferedImage getPageAsHiRes(int pageIndex, Map params) throws PdfException
getPageAsHiRes in interface PdfDecoderIntpageIndex - number of the page we want to extractparams - list of values to override static settings in modifyJPedalParameters for this instance onlyPdfException - Page size is defined by CropBox
see http://files.idrsolutions.com/samplecode/org/jpedal/examples/images/ConvertPagesToHiResImages.java.html for full detailspublic BufferedImage getPageAsHiRes(int pageIndex, Map params, boolean isTransparent) throws PdfException
getPageAsHiRes in interface PdfDecoderIntpageIndex - number of the page we want to extractparams - list of values to override static settings in modifyJPedalParameters for this instance onlyisTransparent - - set if transparent or has backgroundPdfException - Page size is defined by CropBox
see http://files.idrsolutions.com/samplecode/org/jpedal/examples/images/ConvertPagesToHiResImages.java.html for full detailspublic BufferedImage getPageAsHiRes(int pageIndex, boolean isTransparent) throws PdfException
getPageAsHiRes in interface PdfDecoderIntpageIndex - number of the page we want to extractPdfException - Page size is defined by CropBox
see http://files.idrsolutions.com/samplecode/org/jpedal/examples/images/ConvertPagesToHiResImages.java.html for full detailspublic BufferedImage getPageAsImage(int pageIndex) throws PdfException
Page size is defined by CropBox see http://files.idrsolutions.com/samplecode/org/jpedal/examples/images/ConvertPagesToImages.java.html for full details
getPageAsImage in interface PdfDecoderIntPdfExceptionpublic BufferedImage getPageAsImage(int pageIndex, float scaling) throws PdfException
Page size is defined by CropBox
getPageAsImage in interface PdfDecoderIntPdfExceptionpublic BufferedImage getPageAsTransparentImage(int pageIndex) throws PdfException
Page size is defined by CropBox see http://files.idrsolutions.com/samplecode/org/jpedal/examples/images/ConvertPagesToImages.java.html for full details
getPageAsTransparentImage in interface PdfDecoderIntPdfExceptionpublic float getHiResUpscaleFactor()
getHiResUpscaleFactor in interface PdfDecoderIntpublic final void flushObjectValues(boolean reinit)
flushObjectValues in interface PdfDecoderIntreinit - lag to show if image data flushed as wellpublic final PdfImageData getPdfImageData()
Please look at examples for usage
getPdfImageData in interface PdfDecoderIntpublic final PdfImageData getPdfBackgroundImageData()
Please look at examples for usage
public final void setRenderMode(int mode)
setRenderMode in interface PdfDecoderIntpublic final void setExtractionMode(int mode)
setExtractionMode in interface PdfDecoderIntpublic void modifyNonstaticJPedalParameters(Map values) throws PdfException
Please note all Color and text highlighting values are static and common across the JVM
modifyNonstaticJPedalParameters in interface PdfDecoderIntPdfExceptionpublic static void modifyJPedalParameters(Map values) throws PdfException
If you are using decoder.getPageAsHiRes() after passing additional parameters into JPedal using the static method PdfDecoder.modifyJPedalParameters(), then getPageAsHiRes() wont necessarily be thread safe. If you want to use getPageAsHiRes() and pass in additional parameters, in a thread safe mannor, please use the method getPageAsHiRes(int pageIndex, Map params) or getPageAsHiRes(int pageIndex, Map params, boolean isTransparent) and pass the additional parameters in directly to the getPageAsHiRes() method without calling PdfDecoder.modifyJPedalParameters() first.
Please see http://files.idrsolutions.com/samplecode/org/jpedal/examples/images/ConvertPagesToHiResImages.java.html for example of usage
Please note all Color and text highlighting values except page colour are static and common across the JVM
PdfExceptionpublic final PdfFileInformation getFileInformationData()
getFileInformationData in interface PdfDecoderIntpublic final void setExtractionMode(int mode,
float scaling)
setExtractionMode in interface PdfDecoderIntpublic DPIFactory getDPIFactory()
getDPIFactory in interface PdfDecoderIntpublic void setPageParameters(float scaling,
int pageNumber)
setPageParameters in interface PdfDecoderIntpublic void setPageParameters(float scaling,
int pageNumber,
int newRotation)
setPageParameters in interface PdfDecoderIntpublic void setStatusBarObject(StatusBar statusBar)
set status bar to use when decoding a page - StatusBar provides a GUI object to display progress and messages.
setStatusBarObject in interface PdfDecoderIntpublic void waitForDecodingToFinish()
waitForDecodingToFinish in interface PdfDecoderIntpublic DynamicVectorRenderer getDynamicRenderer()
gets DynamicVector Object
getDynamicRenderer in interface PdfDecoderIntpublic DynamicVectorRenderer getDynamicRenderer(boolean reset)
gets DynamicVector Object - NOT PART OF API and subject to change (DO NOT USE)
getDynamicRenderer in interface PdfDecoderIntpublic void setDefaultCursor(javafx.scene.Cursor c)
c - :: The cursor to set as the defaultpublic final void decodePage(int rawPage)
returns minus page if trying to open linearized page not yet available
decodePage in interface PdfDecoderIntpublic boolean isPageAvailable(int rawPage)
isPageAvailable in interface PdfDecoderIntrawPage - public void drawAdditionalObjectsOverPage(int page,
int[] type,
Color[] colors,
Object[] obj)
throws PdfException
drawAdditionalObjectsOverPage in interface PdfDecoderIntPdfExceptionpublic void flushAdditionalObjectsOnPage(int page)
throws PdfException
flushAdditionalObjectsOnPage in interface PdfDecoderIntPdfExceptionpublic final void decodePageInBackground(int i)
throws Exception
we now recommend you use decodePage as this has been heavily optimised for speed
decodePageInBackground in interface PdfDecoderIntExceptionpublic final int getPageCount()
getPageCount in interface PdfDecoderIntpublic final boolean isEncrypted()
isEncrypted in interface PdfDecoderIntpublic final boolean isPasswordSupplied()
isPasswordSupplied in interface PdfDecoderIntpublic boolean isFileViewable()
isFileViewable in interface PdfDecoderIntpublic boolean isExtractionAllowed()
isExtractionAllowed in interface PdfDecoderIntpublic final void setEncryptionPassword(String password) throws PdfException
setEncryptionPassword in interface PdfDecoderIntPdfExceptionpublic final void openPdfArray(byte[] data,
String password)
throws PdfException
openPdfArray in interface PdfDecoderIntPdfExceptionpublic final void openPdfArray(byte[] data)
throws PdfException
openPdfArray in interface PdfDecoderIntPdfExceptionpublic void openPdfFile(String filename, Certificate certificate, PrivateKey key) throws PdfException
openPdfFile in interface PdfDecoderIntfilename - certificate - key - PdfExceptionpublic final void openPdfFileFromStream(Object filename, String password) throws PdfException
openPdfFileFromStream in interface PdfDecoderIntPdfExceptionpublic final void openPdfFile(String filename) throws PdfException
openPdfFile in interface PdfDecoderIntPdfExceptionpublic final void openPdfFile(String filename, String password) throws PdfException
openPdfFile in interface PdfDecoderIntPdfExceptionpublic final boolean openPdfFileFromURL(String pdfUrl, boolean supportLinearized) throws PdfException
If boolean supportLinearized is true, method will return with true value once Linearized part read
openPdfFileFromURL in interface PdfDecoderIntPdfExceptionpublic final boolean openPdfFileFromURL(String pdfUrl, boolean supportLinearized, String password) throws PdfException
If boolean supportLinearized is true, method will return with true value once Linearized part read
openPdfFileFromURL in interface PdfDecoderIntPdfExceptionpublic final boolean openPdfFileFromInputStream(InputStream is, boolean supportLinearized) throws PdfException
IMPORTANT NOTE: If the stream does not contain enough bytes, test for Linearization may fail If boolean supportLinearized is true, method will return with true value once Linearized part read (we recommend use you false unless you know exactly what you are doing)
openPdfFileFromInputStream in interface PdfDecoderIntPdfExceptionpublic final boolean openPdfFileFromInputStream(InputStream is, boolean supportLinearized, String password) throws PdfException
IMPORTANT NOTE: If the stream does not contain enough bytes, test for Linearization may fail If boolean supportLinearized is true, method will return with true value once Linearized part read (we recommend use you false unless you know exactly what you are doing)
openPdfFileFromInputStream in interface PdfDecoderIntPdfExceptionpublic Object getJPedalObject(int id)
will return some dictionary values - if not a set value, will return null
getJPedalObject in interface PdfDecoderIntpublic void setPageMode(int mode)
setPageMode in interface PdfDecoderIntmode - public boolean isXMLExtraction()
isXMLExtraction in interface PdfDecoderIntpublic void useTextExtraction()
useTextExtraction in interface PdfDecoderIntpublic void useXMLExtraction()
useXMLExtraction in interface PdfDecoderIntpublic void clearScreen()
public void setStreamCacheSize(int size)
setStreamCacheSize in interface PdfDecoderIntpublic boolean hasEmbeddedFonts()
hasEmbeddedFonts in interface PdfDecoderIntpublic int getPageFromObjectRef(String ref)
getPageFromObjectRef in interface PdfDecoderIntref - - PDF object referencepublic String getInfo(int type)
getInfo in interface PdfDecoderIntpublic AcroRenderer getFormRenderer()
getFormRenderer in interface PdfDecoderIntpublic Javascript getJavaScript()
getJavaScript in interface PdfDecoderIntpublic static boolean isPageSuccessful()
public String getPageDecodeReport()
getPageDecodeReport in interface PdfDecoderIntpublic static String getPageFailureMessage()
public BufferedImage getSelectedRectangleOnscreen(float t_x1, float t_y1, float t_x2, float t_y2, float scaling)
getSelectedRectangleOnscreen in interface PdfDecoderIntt_x1 - t_y1 - t_x2 - t_y2 - scaling - public ObjectStore getObjectStore()
getObjectStore in interface PdfDecoderIntpublic void setObjectStore(ObjectStore newStore)
setObjectStore in interface PdfDecoderIntpublic DecoderOptions getDecoderOptions()
getDecoderOptions in interface PdfDecoderIntpublic PdfGroupingAlgorithms getGroupingObject() throws PdfException
getGroupingObject in interface PdfDecoderIntPdfExceptionpublic PdfGroupingAlgorithms getBackgroundGroupingObject()
getBackgroundGroupingObject in interface PdfDecoderIntpublic final String getPDFVersion()
getPDFVersion in interface PdfDecoderIntpublic void resetForNonPDFPage(int pageCount)
resetForNonPDFPage in interface PdfDecoderIntpublic boolean hasAllImages()
public boolean getPageDecodeStatus(int status)
getPageDecodeStatus in interface PdfDecoderIntstatus - public DisplayOffsets getDisplayOffsets()
getDisplayOffsets in interface PdfDecoderIntpublic String getPageDecodeStatusReport(int status)
getPageDecodeStatusReport in interface PdfDecoderIntpublic void addExternalHandler(Object newHandler, int type)
allows external helper classes to be added to JPedal to alter default functionality -
addExternalHandler in interface PdfDecoderIntnewHandler - type - public Object getExternalHandler(int type)
allows external helper classes to be accessed if needed - also allows user to access SwingGUI if running full Viewer package - not all Options available to get - please contact IDRsolutions if you are looking to use
getExternalHandler in interface PdfDecoderInttype - public PdfObjectReader getIO()
getIO in interface PdfDecoderIntpublic String getFileName()
getFileName in interface PdfDecoderIntpublic boolean isForm()
isForm in interface PdfDecoderIntpublic Printable getPrintable(int page) throws IndexOutOfBoundsException
getPrintable in interface PageableIndexOutOfBoundsExceptionpublic TextLines getTextLines()
getTextLines in interface PdfDecoderIntpublic final void setInset(int width,
int height)
setInset in interface PdfDecoderIntpublic void setUserOffsets(int x,
int y,
int mode)
setUserOffsets in interface PdfDecoderIntpublic Point getUserOffsets(int mode)
mode - public final int[] getMaximumSize()
public final void updateCursorBoxOnScreen(int[] rectParams,
int outlineColor)
updateCursorBoxOnScreen in interface PdfDecoderIntpublic final int getPDFWidth()
getPDFWidth in interface PdfDecoderIntpublic final int getPDFHeight()
getPDFHeight in interface PdfDecoderIntpublic final void setPDFBorder(Border newBorder)
setPDFBorder in interface PdfDecoderIntpublic void setHardwareAccelerationforScreen(boolean useAcceleration)
setHardwareAccelerationforScreen in interface PdfDecoderIntpublic int getScrollInterval()
getScrollInterval in interface PdfDecoderIntpublic void setScrollInterval(int scrollInterval)
setScrollInterval in interface PdfDecoderIntpublic int getDisplayView()
getDisplayView in interface PdfDecoderIntpublic float getScaling()
getScaling in interface PdfDecoderIntpublic int getInsetH()
PdfDecoderIntgetInsetH in interface PdfDecoderIntpublic int getInsetW()
PdfDecoderIntgetInsetW in interface PdfDecoderIntpublic int getNumberOfPages()
getNumberOfPages in interface Pageablepublic PageFormat getPageFormat(int p) throws IndexOutOfBoundsException
getPageFormat in interface PageableIndexOutOfBoundsExceptionpublic static int getCurrentPrintPage()
public void resetCurrentPrintPage()
public void setScaling(float x)
setScaling in interface PdfDecoderIntpublic int[] getMaxSizeWH()
getMaxSizeWH in interface PdfDecoderIntpublic int[] getPaneBounds()
getPaneBounds in interface PdfDecoderIntpublic void repaintPane(int page)
repaintPane in interface PdfDecoderIntpublic void setBorderPresent(boolean borderPresent)
setBorderPresent in interface PdfDecoderIntpublic boolean isBorderPresent()
isBorderPresent in interface PdfDecoderIntpublic void setPreviewThumbnail(BufferedImage previewImage, String previewText)
setPreviewThumbnail in interface PdfDecoderIntpublic int getTextPrint()
getTextPrint in interface PdfDecoderIntpublic void repaint()
repaint in interface PdfDecoderIntpublic Rectangle getVisibleRect()
getVisibleRect in interface PdfDecoderIntCopyright © 2017. All rights reserved.