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 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
|
org.jpedal.parser.DecoderOptions |
getDecoderOptions() |
org.jpedal.display.DisplayOffsets |
getDisplayOffsets() |
int |
getDisplayRotation() |
int |
getDisplayView() |
DPIFactory |
getDPIFactory() |
org.jpedal.render.DynamicVectorRenderer |
getDynamicRenderer() |
org.jpedal.render.DynamicVectorRenderer |
getDynamicRenderer(boolean reset) |
ExternalHandlers |
getExternalHandler() |
Object |
getExternalHandler(int type) |
PdfFileInformation |
getFileInformationData() |
String |
getFileName() |
org.jpedal.objects.acroforms.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
|
org.jpedal.io.PdfObjectReader |
getIO()
allow access to PDF file
|
org.jpedal.objects.Javascript |
getJavaScript() |
Object |
getJPedalObject(int id) |
int |
getlastPageDecoded() |
Document |
getMarkedContent() |
int[] |
getMaxSizeWH() |
ObjectStore |
getObjectStore() |
Document |
getOutlineAsXML() |
org.jpedal.objects.outlines.OutlineData |
getOutlineData() |
int |
getPageAlignment() |
BufferedImage |
getPageAsHiRes(int pageIndex) |
BufferedImage |
getPageAsHiRes(int pageIndex,
boolean isTransparent) |
BufferedImage |
getPageAsHiRes(int pageIndex,
Map<Integer,Object> params) |
BufferedImage |
getPageAsHiRes(int pageIndex,
Map<Integer,Object> 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<Integer> |
getPageInfo(int type) |
int |
getPageNumber() |
org.jpedal.display.Display |
getPages() |
int[] |
getPaneBounds() |
org.jpedal.objects.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()
retusn a value defined in SpecialOptions used internally and in custom JPedal releases
|
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<Integer,Object> 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 |
setBorderPresent(boolean borderPresent) |
void |
setDisplayRotation(int newRotation) |
void |
setEncryptionPassword(String password) |
void |
setEncryptTempFiles()
ensure that files are always encrypted if cached to disk
regardless of whether file has a password set
|
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 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
PdfException
void addExternalHandler(Object newHandler, int type)
allows external helper classes to be added to JPedal to alter default functionality -
newHandler
- handler to addtype
- type of handlerObject getExternalHandler(int type)
org.jpedal.io.PdfObjectReader getIO()
void setEncryptTempFiles()
TextLines getTextLines()
PdfGroupingAlgorithms getBackgroundGroupingObject()
Document getMarkedContent()
boolean isOpen()
int getDisplayRotation()
int getPageNumber()
int getlastPageDecoded()
org.jpedal.objects.outlines.OutlineData getOutlineData()
boolean isLoadingLinearizedPDF()
int getPageAlignment()
void dispose()
void closePdfFile()
org.jpedal.objects.PdfData getPdfData() throws PdfException
PdfException
boolean hasOutline()
Document getOutlineAsXML()
PdfPageData getPdfPageData()
int getPDFWidth()
int getPDFHeight()
BufferedImage getPageAsImage(int pageIndex) throws PdfException
PdfException
BufferedImage getPageAsImage(int pageIndex, float scaling) throws PdfException
PdfException
BufferedImage getPageAsHiRes(int pageIndex) throws PdfException
PdfException
BufferedImage getPageAsHiRes(int pageIndex, Map<Integer,Object> params) throws PdfException
PdfException
BufferedImage getPageAsHiRes(int pageIndex, Map<Integer,Object> params, boolean isTransparent) throws PdfException
PdfException
BufferedImage getPageAsHiRes(int pageIndex, boolean isTransparent) throws PdfException
PdfException
BufferedImage getPageAsTransparentImage(int pageIndex) throws PdfException
PdfException
float getHiResUpscaleFactor()
int getInsetH()
int getInsetW()
int getScrollInterval()
void setScrollInterval(int scrollInterval)
scrollInterval
- scroll intervalvoid resetForNonPDFPage(int pageCount)
void setPDFBorder(Border newBorder)
void flushObjectValues(boolean reinit)
PdfImageData getPdfImageData()
void setRenderMode(int mode)
void setExtractionMode(int mode)
void modifyNonstaticJPedalParameters(Map<Integer,Object> values) throws PdfException
PdfException
PdfFileInformation getFileInformationData()
void setExtractionMode(int mode, float scaling)
void setHardwareAccelerationforScreen(boolean useAcceleration)
DPIFactory getDPIFactory()
void waitForDecodingToFinish()
org.jpedal.render.DynamicVectorRenderer getDynamicRenderer()
org.jpedal.render.DynamicVectorRenderer getDynamicRenderer(boolean reset)
void decodePage(int rawPage)
boolean isPageAvailable(int rawPage)
void updateCursorBoxOnScreen(int[] rectParams, int outlineColor)
void decodePageInBackground(int i)
int getPageCount()
boolean isEncrypted()
boolean isPasswordSupplied()
boolean isForm()
boolean isFileViewable()
boolean isExtractionAllowed()
void setEncryptionPassword(String password) throws PdfException
PdfException
void openPdfFile(String filename) throws PdfException
PdfException
void openPdfFile(String filename, String password) throws PdfException
PdfException
void openPdfArray(byte[] data) throws PdfException
PdfException
void openPdfArray(byte[] data, String password) throws PdfException
PdfException
void openPdfFile(String filename, Certificate certificate, PrivateKey key) throws PdfException
PdfException
void openPdfFileFromStream(Object filename, String password) throws PdfException
PdfException
boolean openPdfFileFromURL(String pdfUrl, boolean supportLinearized) throws PdfException
PdfException
boolean openPdfFileFromURL(String pdfUrl, boolean supportLinearized, String password) throws PdfException
PdfException
boolean openPdfFileFromInputStream(InputStream is, boolean supportLinearized) throws PdfException
PdfException
boolean openPdfFileFromInputStream(InputStream is, boolean supportLinearized, String password) throws PdfException
PdfException
Object 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)
org.jpedal.objects.acroforms.AcroRenderer getFormRenderer()
org.jpedal.objects.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)
org.jpedal.display.Display getPages()
void setPageParameters(float scaleBy, int page)
void drawAdditionalObjectsOverPage(int page, int[] type, Color[] colors, Object[] obj) throws PdfException
PdfException
void flushAdditionalObjectsOnPage(int page)
String 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)
org.jpedal.parser.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()
org.jpedal.display.DisplayOffsets getDisplayOffsets()
int getTextPrint()
void repaint()
Copyright 2018 IDRsolutions ltd. All rights reserved.