public class ImageGraphicsEngine
extends org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
Modifier and Type | Field and Description |
---|---|
protected EmbeddedDocumentExtractor |
embeddedDocumentExtractor |
protected boolean |
extractInlineImageMetadataOnly |
protected AtomicInteger |
imageCounter |
protected static List<String> |
JB2 |
protected static List<String> |
JP2 |
protected static List<String> |
JPEG |
protected static long |
MAX_IMAGE_LENGTH_BYTES |
protected int |
pageNumber |
protected Metadata |
parentMetadata |
protected ParseContext |
parseContext |
protected PDFParserConfig |
pdfParserConfig |
protected Map<org.apache.pdfbox.cos.COSStream,Integer> |
processedInlineImages |
protected boolean |
useDirectJPEG |
protected XHTMLContentHandler |
xhtml |
Modifier | Constructor and Description |
---|---|
protected |
ImageGraphicsEngine(org.apache.pdfbox.pdmodel.PDPage page,
int pageNumber,
EmbeddedDocumentExtractor embeddedDocumentExtractor,
PDFParserConfig pdfParserConfig,
Map<org.apache.pdfbox.cos.COSStream,Integer> processedInlineImages,
AtomicInteger imageCounter,
XHTMLContentHandler xhtml,
Metadata parentMetadata,
ParseContext parseContext) |
Modifier and Type | Method and Description |
---|---|
void |
appendRectangle(Point2D p0,
Point2D p1,
Point2D p2,
Point2D p3) |
void |
clip(int windingRule) |
void |
closePath() |
protected static void |
copyUpToMaxLength(InputStream is,
OutputStream os) |
void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
void |
drawImage(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage) |
void |
endPath() |
protected void |
extractInlineImageMetadataOnly(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage,
Metadata metadata) |
void |
fillAndStrokePath(int windingRule) |
void |
fillPath(int windingRule) |
Point2D |
getCurrentPoint() |
List<IOException> |
getExceptions() |
protected String |
getSuffix(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage,
Metadata metadata) |
protected void |
handleCatchableIOE(IOException e) |
protected static boolean |
hasMasks(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage) |
void |
lineTo(float x,
float y) |
void |
moveTo(float x,
float y) |
protected void |
processImage(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage,
int imageNumber) |
void |
run() |
void |
shadingFill(org.apache.pdfbox.cos.COSName shadingName) |
protected void |
showGlyph(org.apache.pdfbox.util.Matrix textRenderingMatrix,
org.apache.pdfbox.pdmodel.font.PDFont font,
int code,
String unicode,
org.apache.pdfbox.util.Vector displacement) |
void |
strokePath() |
protected BufferedImage |
writeToBuffer(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage,
String suffix,
boolean directJPEG,
OutputStream out) |
addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, registerOperatorProcessor, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
protected static final long MAX_IMAGE_LENGTH_BYTES
protected final int pageNumber
protected final EmbeddedDocumentExtractor embeddedDocumentExtractor
protected final PDFParserConfig pdfParserConfig
protected final Map<org.apache.pdfbox.cos.COSStream,Integer> processedInlineImages
protected final AtomicInteger imageCounter
protected final Metadata parentMetadata
protected final XHTMLContentHandler xhtml
protected final ParseContext parseContext
protected final boolean extractInlineImageMetadataOnly
protected boolean useDirectJPEG
protected ImageGraphicsEngine(org.apache.pdfbox.pdmodel.PDPage page, int pageNumber, EmbeddedDocumentExtractor embeddedDocumentExtractor, PDFParserConfig pdfParserConfig, Map<org.apache.pdfbox.cos.COSStream,Integer> processedInlineImages, AtomicInteger imageCounter, XHTMLContentHandler xhtml, Metadata parentMetadata, ParseContext parseContext)
protected BufferedImage writeToBuffer(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage, String suffix, boolean directJPEG, OutputStream out) throws IOException, TikaException
IOException
TikaException
protected static void copyUpToMaxLength(InputStream is, OutputStream os) throws IOException, TikaException
IOException
TikaException
protected static boolean hasMasks(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage) throws IOException
IOException
public void run() throws IOException
IOException
public void drawImage(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage) throws IOException
drawImage
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void appendRectangle(Point2D p0, Point2D p1, Point2D p2, Point2D p3) throws IOException
appendRectangle
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void clip(int windingRule) throws IOException
clip
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void moveTo(float x, float y) throws IOException
moveTo
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void lineTo(float x, float y) throws IOException
lineTo
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3) throws IOException
curveTo
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public Point2D getCurrentPoint() throws IOException
getCurrentPoint
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void closePath() throws IOException
closePath
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void endPath() throws IOException
endPath
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
protected void showGlyph(org.apache.pdfbox.util.Matrix textRenderingMatrix, org.apache.pdfbox.pdmodel.font.PDFont font, int code, String unicode, org.apache.pdfbox.util.Vector displacement) throws IOException
showGlyph
in class org.apache.pdfbox.contentstream.PDFStreamEngine
IOException
public void strokePath() throws IOException
strokePath
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void fillPath(int windingRule) throws IOException
fillPath
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void fillAndStrokePath(int windingRule) throws IOException
fillAndStrokePath
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
public void shadingFill(org.apache.pdfbox.cos.COSName shadingName) throws IOException
shadingFill
in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
IOException
protected void processImage(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage, int imageNumber) throws IOException, TikaException, SAXException
IOException
TikaException
SAXException
protected void extractInlineImageMetadataOnly(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage, Metadata metadata) throws IOException, SAXException
IOException
SAXException
protected String getSuffix(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage, Metadata metadata) throws IOException
IOException
protected void handleCatchableIOE(IOException e) throws IOException
IOException
public List<IOException> getExceptions()
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.