public class PdfStreamDecoder extends BaseDecoder
| Modifier and Type | Field and Description |
|---|---|
protected StructuredContentHandler |
contentHandler |
static float |
currentThreshold |
protected ImageHandler |
customImageHandler |
protected boolean |
getSamplingOnly |
boolean |
ignoreColors
shows if t3 glyph uses internal colour or current colour
|
protected static String |
indent
used to debug
|
protected boolean |
isDataValid
show if possible error in stream data
|
protected GraphicsState |
newGS |
protected ObjectStore |
objectStoreStreamRef |
protected byte[] |
pageStream |
static boolean |
showCommands
internal development flag which should not be used
|
static boolean |
useTextPrintingForNonEmbeddedFonts |
current, GenerateGlyphOnRender, gs, isHTML, multiplyer, parserOptions, streamType| Constructor and Description |
|---|
PdfStreamDecoder(PdfObjectReader currentPdfFile) |
PdfStreamDecoder(PdfObjectReader currentPdfFile,
PdfLayerList layers)
create new StreamDecoder to create display
|
| Modifier and Type | Method and Description |
|---|---|
T3Size |
decodePageContent(PdfObject pdfObject)
objects off the page, stitch into a stream and decode and put into our
data object.
|
String |
decodeStreamIntoObjects(byte[] stream,
boolean returnText)
decode the actual 'Postscript' stream into text and images by extracting
commands and decoding each.
|
void |
dispose() |
int |
getBlendMode() |
boolean |
getBooleanValue(int key)
return boolean flags with appropriate ket
|
PdfObjectCache |
getObjectCache() |
Object |
getObjectValue(int key)
return the data
|
void |
incrementTokenNumber() |
void |
readResources(PdfObject Resources,
boolean resetList)
read page header and extract page metadata
|
void |
setBBox(float[] BBox)
pass in BBox so we can work out if we ignore scaling
|
void |
setBooleanValue(int key,
boolean value)
NOT PART OF API tells software to generate glyph when first rendered not
when decoded.
|
void |
setDefaultColors(PdfPaint strokeCol,
PdfPaint nonstrokeCol)
used internally to allow for colored streams
|
void |
setFormLevel(int value) |
void |
setIntValue(int key,
int value) |
void |
setObjectValue(int key,
Object obj) |
void |
setParameters(boolean isPageContent,
boolean renderPage,
int renderMode,
int extractionMode,
boolean isPrinting,
boolean useJavaFX) |
void |
setXMLExtraction(boolean isXMLExtraction) |
setGS, setMultiplyer, setParams, setRenderer, setStreamTypeprotected StructuredContentHandler contentHandler
protected GraphicsState newGS
protected byte[] pageStream
protected boolean getSamplingOnly
public boolean ignoreColors
public static final float currentThreshold
protected ImageHandler customImageHandler
public static final boolean showCommands
protected static String indent
protected boolean isDataValid
protected ObjectStore objectStoreStreamRef
public static boolean useTextPrintingForNonEmbeddedFonts
public PdfStreamDecoder(PdfObjectReader currentPdfFile)
public PdfStreamDecoder(PdfObjectReader currentPdfFile, PdfLayerList layers)
public T3Size decodePageContent(PdfObject pdfObject) throws PdfException
pdfObject - PdfExceptionpublic void setObjectValue(int key,
Object obj)
public void setBooleanValue(int key,
boolean value)
key - value - public void setDefaultColors(PdfPaint strokeCol, PdfPaint nonstrokeCol)
public Object getObjectValue(int key)
public final void readResources(PdfObject Resources, boolean resetList) throws PdfException
PdfExceptionpublic String decodeStreamIntoObjects(byte[] stream, boolean returnText)
public boolean getBooleanValue(int key)
public void dispose()
public void setIntValue(int key,
int value)
public void setXMLExtraction(boolean isXMLExtraction)
public void setParameters(boolean isPageContent,
boolean renderPage,
int renderMode,
int extractionMode,
boolean isPrinting,
boolean useJavaFX)
public void setFormLevel(int value)
public PdfObjectCache getObjectCache()
public void setBBox(float[] BBox)
BBox - public int getBlendMode()
public void incrementTokenNumber()
Copyright © 2017. All rights reserved.