Package | Description |
---|---|
org.apache.pdfbox.pdmodel |
The PDModel package represents a high level API for creating and manipulating PDF documents.
|
org.apache.pdfbox.pdmodel.graphics.image |
This package deals with images that are stored in a PDF document.
|
org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible |
This is the visual signature part that help creating the visual representation for the digital signature.
|
org.apache.pdfbox.preflight.xobject |
Modifier and Type | Method and Description |
---|---|
COSName |
PDResources.add(PDImageXObject image)
Adds the given image to the resources of the current page and returns the name for the
new resources.
|
void |
PDAbstractContentStream.drawImage(PDImageXObject image,
float x,
float y)
Draw an image at the x,y coordinates, with the default size of the image.
|
void |
PDPageContentStream.drawImage(PDImageXObject image,
float x,
float y)
Draw an image at the x,y coordinates, with the default size of the image.
|
void |
PDAbstractContentStream.drawImage(PDImageXObject image,
float x,
float y,
float width,
float height)
Draw an image at the x,y coordinates, with the given size.
|
void |
PDPageContentStream.drawImage(PDImageXObject image,
float x,
float y,
float width,
float height)
Draw an image at the x,y coordinates, with the given size.
|
void |
PDAbstractContentStream.drawImage(PDImageXObject image,
Matrix matrix)
Draw an image at the origin with the given transformation matrix.
|
void |
PDPageContentStream.drawImage(PDImageXObject image,
Matrix matrix)
Draw an image at the origin with the given transformation matrix.
|
Modifier and Type | Method and Description |
---|---|
private static PDImageXObject |
PNGConverter.buildImageObject(PDDocument document,
PNGConverter.PNGConverterState state)
Build the base image object from the IDATs and profile information
|
private static PDImageXObject |
PNGConverter.buildIndexImage(PDDocument doc,
PNGConverter.PNGConverterState state)
Build a indexed image
|
private static PDImageXObject |
PNGConverter.buildTransparencyMaskFromIndexedData(PDDocument doc,
PDImageXObject image,
PNGConverter.PNGConverterState state) |
private static PDImageXObject |
PNGConverter.convertPng(PDDocument doc,
PNGConverter.PNGConverterState state)
Convert the image using the state.
|
(package private) static PDImageXObject |
PNGConverter.convertPNGImage(PDDocument doc,
byte[] imageData)
Try to convert a PNG into a PDImageXObject.
|
static PDImageXObject |
JPEGFactory.createFromByteArray(PDDocument document,
byte[] byteArray)
Creates a new JPEG Image XObject from a byte array containing JPEG data.
|
static PDImageXObject |
CCITTFactory.createFromByteArray(PDDocument document,
byte[] byteArray)
Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file stored
in a byte array.
|
static PDImageXObject |
CCITTFactory.createFromByteArray(PDDocument document,
byte[] byteArray,
int number)
Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file stored
in a byte array.
|
static PDImageXObject |
PDImageXObject.createFromByteArray(PDDocument document,
byte[] byteArray,
java.lang.String name)
Create a PDImageXObject from bytes of an image file.
|
static PDImageXObject |
CCITTFactory.createFromFile(PDDocument document,
java.io.File file)
Creates a new CCITT Fax compressed image XObject from the first image of a TIFF file.
|
static PDImageXObject |
CCITTFactory.createFromFile(PDDocument document,
java.io.File file,
int number)
Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file.
|
static PDImageXObject |
PDImageXObject.createFromFile(java.lang.String imagePath,
PDDocument doc)
Create a PDImageXObject from an image file, see
createFromFileByExtension(File, PDDocument) for
more details. |
static PDImageXObject |
PDImageXObject.createFromFileByContent(java.io.File file,
PDDocument doc)
Create a PDImageXObject from an image file.
|
static PDImageXObject |
PDImageXObject.createFromFileByExtension(java.io.File file,
PDDocument doc)
Create a PDImageXObject from an image file.
|
private static PDImageXObject |
LosslessFactory.createFromGrayImage(java.awt.image.BufferedImage image,
PDDocument document) |
static PDImageXObject |
JPEGFactory.createFromImage(PDDocument document,
java.awt.image.BufferedImage image)
Creates a new JPEG PDImageXObject from a BufferedImage.
|
static PDImageXObject |
CCITTFactory.createFromImage(PDDocument document,
java.awt.image.BufferedImage image)
Creates a new CCITT group 4 (T6) compressed image XObject from a b/w BufferedImage.
|
static PDImageXObject |
LosslessFactory.createFromImage(PDDocument document,
java.awt.image.BufferedImage image)
Creates a new lossless encoded image XObject from a BufferedImage.
|
static PDImageXObject |
JPEGFactory.createFromImage(PDDocument document,
java.awt.image.BufferedImage image,
float quality)
Creates a new JPEG PDImageXObject from a BufferedImage and a given quality.
|
static PDImageXObject |
JPEGFactory.createFromImage(PDDocument document,
java.awt.image.BufferedImage image,
float quality,
int dpi)
Creates a new JPEG Image XObject from a BufferedImage, a given quality and dpi metadata.
|
static PDImageXObject |
CCITTFactory.createFromRandomAccess(PDDocument document,
RandomAccess reader)
Deprecated.
Use
CCITTFactory.createFromFile(PDDocument, File) instead. |
static PDImageXObject |
CCITTFactory.createFromRandomAccess(PDDocument document,
RandomAccess reader,
int number)
Deprecated.
Use
CCITTFactory.createFromFile(PDDocument, File, int) instead. |
private static PDImageXObject |
CCITTFactory.createFromRandomAccessImpl(PDDocument document,
RandomAccess reader,
int number)
Creates a new CCITT Fax compressed image XObject from a TIFF file.
|
private static PDImageXObject |
LosslessFactory.createFromRGBImage(java.awt.image.BufferedImage image,
PDDocument document) |
static PDImageXObject |
JPEGFactory.createFromStream(PDDocument document,
java.io.InputStream stream)
Creates a new JPEG Image XObject from an input stream containing JPEG data.
|
private static PDImageXObject |
JPEGFactory.createJPEG(PDDocument document,
java.awt.image.BufferedImage image,
float quality,
int dpi) |
static PDImageXObject |
PDImageXObject.createThumbnail(COSStream cosStream)
Creates a thumbnail Image XObject from the given COSBase and name.
|
(package private) PDImageXObject |
LosslessFactory.PredictorEncoder.encode()
Tries to compress the image using a predictor.
|
PDImageXObject |
PDImageXObject.getMask()
Returns the Mask Image XObject associated with this image, or null if there is none.
|
PDImageXObject |
PDImageXObject.getSoftMask()
Returns the Soft Mask Image XObject associated with this image, or null if there is none.
|
(package private) static PDImageXObject |
LosslessFactory.prepareImageXObject(PDDocument document,
byte[] byteArray,
int width,
int height,
int bitsPerComponent,
PDColorSpace initColorSpace)
Create a PDImageXObject using the Flate filter.
|
private static PDImageXObject |
CCITTFactory.prepareImageXObject(PDDocument document,
byte[] byteArray,
int width,
int height,
PDColorSpace initColorSpace) |
private PDImageXObject |
LosslessFactory.PredictorEncoder.preparePredictorPDImage(java.io.ByteArrayOutputStream stream,
int bitsPerComponent) |
Modifier and Type | Method and Description |
---|---|
private static PDImageXObject |
PNGConverter.buildTransparencyMaskFromIndexedData(PDDocument doc,
PDImageXObject image,
PNGConverter.PNGConverterState state) |
private float[] |
PDImageXObject.extractMatte(PDImageXObject softMask)
Extract the matte color from a softmask.
|
private static void |
PNGConverter.setupIndexedColorSpace(PDDocument doc,
PNGConverter.Chunk lookupTable,
PDImageXObject image,
int highVal) |
Modifier and Type | Field and Description |
---|---|
private PDImageXObject |
PDFTemplateStructure.image |
Modifier and Type | Method and Description |
---|---|
PDImageXObject |
PDFTemplateStructure.getImage()
Gets the image of visible signature
|
Modifier and Type | Method and Description |
---|---|
void |
PDFTemplateBuilder.createImageForm(PDResources imageFormResources,
PDResources innerFormResource,
PDStream imageFormStream,
PDRectangle bbox,
java.awt.geom.AffineTransform affineTransform,
PDImageXObject img)
Creates Image form
|
void |
PDVisibleSigBuilder.createImageForm(PDResources imageFormResources,
PDResources innerFormResource,
PDStream imageFormStream,
PDRectangle bbox,
java.awt.geom.AffineTransform at,
PDImageXObject img) |
void |
PDFTemplateStructure.setImage(PDImageXObject image)
Sets the image of visible signature
|
Modifier and Type | Field and Description |
---|---|
protected PDImageXObject |
XObjImageValidator.xImage |
Constructor and Description |
---|
XObjImageValidator(PreflightContext context,
PDImageXObject xobj) |