public interface PdfDecoderInt
| Modifier and Type | Field and Description |
|---|---|
static int |
CLIPPEDIMAGES
flag to show extraction of clipped images at highest res
|
static int |
FINALIMAGES
flag to show extraction mode includes final scaled/clipped
|
static int |
NOTEXTPRINT
printing mode using inbuilt java fonts and getting java to rasterize
fonts using Java font if match found (added to get around limitations in
PCL printing via JPS) - this is the default off setting
|
static int |
RASTERIZE_FORMS
flag to tell code to flatten forms
|
static int |
RAWCOMMANDS
flag to show extraction mode includes final scaled/clipped
|
static int |
RAWIMAGES
flag to show extraction mode should includes original images
|
static int |
REMOVE_NOFORMS
flag to stop forms on decodePage
|
static int |
REMOVE_RENDERSHAPES
flag to show render mode includes any images
|
static int |
RENDERIMAGES
flag to show render mode includes any images
|
static int |
RENDERTEXT
flag to show render mode includes any text
|
static int |
STANDARDTEXTSTRINGPRINT
printing mode using inbuilt java fonts and getting java to rasterize
fonts using Java font if match found (added to get around limitations in
PCL printing via JPS) - overrides embedded fonts for standard fonts (ie Arial)
|
static int |
SUBSTITUTE_FONT_USING_FAMILY_NAME |
static int |
SUBSTITUTE_FONT_USING_FILE_NAME |
static int |
SUBSTITUTE_FONT_USING_FULL_FONT_NAME |
static int |
SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME |
static int |
SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME_USE_FAMILY_NAME_IF_DUPLICATES |
static int |
TEXT
flag to show extraction mode should include any text
|
static int |
TEXTCOLOR
flag to show extraction of clipped images at highest res
|
static int |
TEXTGLYPHPRINT
printing mode using inbuilt java fonts and getting java to rasterize
fonts using Java font if match found (added to get around limitations in
PCL printing via JPS)
|
static int |
TEXTSTRINGPRINT
printing mode using inbuilt java fonts and getting java to rasterize
fonts using Java font if match found (added to get around limitations in
PCL printing via JPS)
|
static String |
version
build number of this version
|
static int |
XFORMMETADATA
flag to show extraction of xforms metadata
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalHandler(Object newHandler,
int type)
not part of API used internally
|
void |
closePdfFile() |
void |
decodePage(int rawPage) |
void |
decodePageInBackground(int i) |
void |
dispose() |
void |
drawAdditionalObjectsOverPage(int page,
int[] type,
Color[] colors,
Object[] obj) |
void |
flushAdditionalObjectsOnPage(int page)
allow user to remove all additional grapical content from the page (only for display)
ONLY works in SINGLE VIEW displaymode
|
void |
flushObjectValues(boolean reinit) |
PdfGroupingAlgorithms |
getBackgroundGroupingObject()
returns object containing grouped text from background grouping - Please
see org.jpedal.examples.text for example code
|
DecoderOptions |
getDecoderOptions() |
DisplayOffsets |
getDisplayOffsets() |
int |
getDisplayRotation() |
int |
getDisplayView() |
DPIFactory |
getDPIFactory() |
DynamicVectorRenderer |
getDynamicRenderer() |
DynamicVectorRenderer |
getDynamicRenderer(boolean reset) |
ExternalHandlers |
getExternalHandler() |
Object |
getExternalHandler(int type) |
PdfFileInformation |
getFileInformationData() |
String |
getFileName() |
AcroRenderer |
getFormRenderer() |
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() |
String |
getInfo(int type) |
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() |
Object |
getJPedalObject(int id) |
int |
getlastPageDecoded() |
Document |
getMarkedContent() |
int[] |
getMaxSizeWH() |
ObjectStore |
getObjectStore() |
Document |
getOutlineAsXML() |
OutlineData |
getOutlineData() |
int |
getPageAlignment() |
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) |
BufferedImage |
getPageAsImage(int pageIndex,
float scaling) |
BufferedImage |
getPageAsTransparentImage(int pageIndex) |
int |
getPageCount() |
String |
getPageDecodeReport() |
boolean |
getPageDecodeStatus(int status) |
String |
getPageDecodeStatusReport(int status) |
int |
getPageFromObjectRef(String ref) |
Iterator |
getPageInfo(int type) |
int |
getPageNumber() |
Display |
getPages() |
int[] |
getPaneBounds() |
PdfData |
getPdfData() |
int |
getPDFHeight() |
PdfImageData |
getPdfImageData() |
PdfPageData |
getPdfPageData() |
String |
getPDFVersion() |
int |
getPDFWidth() |
float |
getScaling() |
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) |
int |
getSpecialMode() |
TextLines |
getTextLines()
access textlines object
|
int |
getTextPrint() |
Rectangle |
getVisibleRect() |
boolean |
hasEmbeddedFonts() |
boolean |
hasOutline() |
boolean |
isBorderPresent() |
boolean |
isEncrypted() |
boolean |
isExtractionAllowed() |
boolean |
isFileViewable() |
boolean |
isForm() |
boolean |
isLoadingLinearizedPDF() |
boolean |
isOpen() |
boolean |
isPageAvailable(int rawPage) |
boolean |
isPasswordSupplied() |
boolean |
isXMLExtraction() |
void |
modifyNonstaticJPedalParameters(Map values) |
void |
openPdfArray(byte[] data) |
void |
openPdfArray(byte[] data,
String password) |
void |
openPdfFile(String filename) |
void |
openPdfFile(String filename,
Certificate certificate,
PrivateKey key) |
void |
openPdfFile(String filename,
String password) |
boolean |
openPdfFileFromInputStream(InputStream is,
boolean supportLinearized) |
boolean |
openPdfFileFromInputStream(InputStream is,
boolean supportLinearized,
String password) |
void |
openPdfFileFromStream(Object filename,
String password) |
boolean |
openPdfFileFromURL(String pdfUrl,
boolean supportLinearized) |
boolean |
openPdfFileFromURL(String pdfUrl,
boolean supportLinearized,
String password) |
void |
repaint() |
void |
repaintPane(int page) |
void |
requestFocus() |
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 |
setBorderPresent(boolean borderPresent) |
void |
setDisplayRotation(int newRotation) |
void |
setEncryptionPassword(String password) |
void |
setExtractionMode(int mode) |
void |
setExtractionMode(int mode,
float scaling) |
void |
setHardwareAccelerationforScreen(boolean useAcceleration) |
void |
setInset(int width,
int height) |
void |
setObjectStore(ObjectStore newStore) |
void |
setPageMode(int mode) |
void |
setPageParameters(float scaleBy,
int page) |
void |
setPageParameters(float scaling,
int pageNumber,
int newRotation) |
void |
setPDFBorder(Border newBorder) |
void |
setPreviewThumbnail(BufferedImage previewImage,
String previewText) |
void |
setRenderMode(int mode) |
void |
setScaling(float x) |
void |
setScrollInterval(int scrollInterval)
Sets the ammount to scroll the window by (default is 10).
|
void |
setStatusBarObject(StatusBar statusBar) |
void |
setStreamCacheSize(int size) |
void |
setUserOffsets(int x,
int y,
int mode) |
void |
updateCursorBoxOnScreen(int[] rectParams,
int outlineColor) |
boolean |
useNewGraphicsMode() |
void |
useNewGraphicsMode(boolean b) |
void |
useTextExtraction() |
void |
useXMLExtraction() |
void |
waitForDecodingToFinish() |
static final String version
static final int TEXT
static final int RAWIMAGES
static final int FINALIMAGES
static final int RAWCOMMANDS
static final int CLIPPEDIMAGES
static final int TEXTCOLOR
static final int XFORMMETADATA
static final int RASTERIZE_FORMS
static final int RENDERTEXT
static final int RENDERIMAGES
static final int REMOVE_RENDERSHAPES
static final int REMOVE_NOFORMS
static final int NOTEXTPRINT
static final int TEXTGLYPHPRINT
static final int TEXTSTRINGPRINT
static final int STANDARDTEXTSTRINGPRINT
static final int SUBSTITUTE_FONT_USING_FILE_NAME
static final int SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME
static final int SUBSTITUTE_FONT_USING_FAMILY_NAME
static final int SUBSTITUTE_FONT_USING_FULL_FONT_NAME
static final int SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME_USE_FAMILY_NAME_IF_DUPLICATES
PdfGroupingAlgorithms getGroupingObject() throws PdfException
PdfExceptionvoid addExternalHandler(Object newHandler, int type)
allows external helper classes to be added to JPedal to alter default functionality -
newHandler - type - Object getExternalHandler(int type)
PdfObjectReader getIO()
TextLines getTextLines()
PdfGroupingAlgorithms getBackgroundGroupingObject()
Document getMarkedContent()
boolean isOpen()
int getDisplayRotation()
int getPageNumber()
int getlastPageDecoded()
Iterator getPageInfo(int type)
OutlineData getOutlineData()
boolean isLoadingLinearizedPDF()
int getPageAlignment()
void dispose()
void closePdfFile()
PdfData getPdfData() throws PdfException
PdfExceptionboolean hasOutline()
Document getOutlineAsXML()
PdfPageData getPdfPageData()
int getPDFWidth()
int getPDFHeight()
BufferedImage getPageAsImage(int pageIndex) throws PdfException
PdfExceptionBufferedImage getPageAsImage(int pageIndex, float scaling) throws PdfException
PdfExceptionBufferedImage getPageAsHiRes(int pageIndex) throws PdfException
PdfExceptionBufferedImage getPageAsHiRes(int pageIndex, Map params) throws PdfException
PdfExceptionBufferedImage getPageAsHiRes(int pageIndex, Map params, boolean isTransparent) throws PdfException
PdfExceptionBufferedImage getPageAsHiRes(int pageIndex, boolean isTransparent) throws PdfException
PdfExceptionBufferedImage getPageAsTransparentImage(int pageIndex) throws PdfException
PdfExceptionfloat getHiResUpscaleFactor()
int getInsetH()
int getInsetW()
int getScrollInterval()
void setScrollInterval(int scrollInterval)
scrollInterval - void resetViewableArea()
void resetForNonPDFPage(int pageCount)
void setPDFBorder(Border newBorder)
void flushObjectValues(boolean reinit)
PdfImageData getPdfImageData()
void setRenderMode(int mode)
void setExtractionMode(int mode)
void modifyNonstaticJPedalParameters(Map values) throws PdfException
PdfExceptionPdfFileInformation getFileInformationData()
void setExtractionMode(int mode,
float scaling)
void setHardwareAccelerationforScreen(boolean useAcceleration)
DPIFactory getDPIFactory()
void waitForDecodingToFinish()
DynamicVectorRenderer getDynamicRenderer()
DynamicVectorRenderer getDynamicRenderer(boolean reset)
boolean isPageAvailable(int rawPage)
void updateCursorBoxOnScreen(int[] rectParams,
int outlineColor)
int getPageCount()
boolean isEncrypted()
boolean isPasswordSupplied()
boolean isForm()
boolean isFileViewable()
boolean isExtractionAllowed()
void setEncryptionPassword(String password) throws PdfException
PdfExceptionvoid openPdfFile(String filename) throws PdfException
PdfExceptionvoid openPdfFile(String filename, String password) throws PdfException
PdfExceptionvoid openPdfArray(byte[] data)
throws PdfException
PdfExceptionvoid openPdfArray(byte[] data,
String password)
throws PdfException
PdfExceptionvoid openPdfFile(String filename, Certificate certificate, PrivateKey key) throws PdfException
PdfExceptionvoid openPdfFileFromStream(Object filename, String password) throws PdfException
PdfExceptionboolean openPdfFileFromURL(String pdfUrl, boolean supportLinearized) throws PdfException
PdfExceptionboolean openPdfFileFromURL(String pdfUrl, boolean supportLinearized, String password) throws PdfException
PdfExceptionboolean openPdfFileFromInputStream(InputStream is, boolean supportLinearized) throws PdfException
PdfExceptionboolean openPdfFileFromInputStream(InputStream is, boolean supportLinearized, String password) throws PdfException
PdfExceptionObject getJPedalObject(int id)
void setPageMode(int mode)
boolean isXMLExtraction()
void useTextExtraction()
void useXMLExtraction()
void setStreamCacheSize(int size)
void setUserOffsets(int x,
int y,
int mode)
boolean hasEmbeddedFonts()
int getPageFromObjectRef(String ref)
String getInfo(int type)
AcroRenderer getFormRenderer()
Javascript getJavaScript()
String getPageDecodeReport()
ObjectStore getObjectStore()
void setObjectStore(ObjectStore newStore)
int getDisplayView()
BufferedImage getSelectedRectangleOnscreen(float t_x1, float t_y1, float t_x2, float t_y2, float scaling)
float getScaling()
void setScaling(float x)
void setDisplayRotation(int newRotation)
Display getPages()
void setPageParameters(float scaleBy,
int page)
void drawAdditionalObjectsOverPage(int page,
int[] type,
Color[] colors,
Object[] obj)
throws PdfException
PdfExceptionvoid flushAdditionalObjectsOnPage(int page)
throws PdfException
PdfExceptionString getFileName()
boolean getPageDecodeStatus(int status)
String getPageDecodeStatusReport(int status)
String getPDFVersion()
ExternalHandlers getExternalHandler()
int getSpecialMode()
boolean useNewGraphicsMode()
void useNewGraphicsMode(boolean b)
void setPageParameters(float scaling,
int pageNumber,
int newRotation)
void setStatusBarObject(StatusBar statusBar)
void setInset(int width,
int height)
DecoderOptions getDecoderOptions()
int[] getMaxSizeWH()
int[] getPaneBounds()
void repaintPane(int page)
void requestFocus()
void setBorderPresent(boolean borderPresent)
boolean isBorderPresent()
void setPreviewThumbnail(BufferedImage previewImage, String previewText)
Rectangle getVisibleRect()
DisplayOffsets getDisplayOffsets()
int getTextPrint()
void repaint()
Copyright © 2017. All rights reserved.