Uses of Class
org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject
Packages that use PDImageXObject
Package
Description
The PDModel package represents a high level API for creating and manipulating PDF documents.
This package deals with images that are stored in a PDF document.
This is the visual signature part that help creating the visual representation for the digital signature.
-
Uses of PDImageXObject in org.apache.pdfbox.pdmodel
Methods in org.apache.pdfbox.pdmodel with parameters of type PDImageXObjectModifier and TypeMethodDescriptionPDResources.add(PDImageXObject image) Adds the given image to the resources of the current page and returns the name for the new resources.voidPDAbstractContentStream.drawImage(PDImageXObject image, float x, float y) Draw an image at the x,y coordinates, with the default size of the image.voidPDAbstractContentStream.drawImage(PDImageXObject image, float x, float y, float width, float height) Draw an image at the x,y coordinates, with the given size.voidPDAbstractContentStream.drawImage(PDImageXObject image, Matrix matrix) Draw an image at the origin with the given transformation matrix.voidPDPageContentStream.drawImage(PDImageXObject image, float x, float y) Draw an image at the x,y coordinates, with the default size of the image.voidPDPageContentStream.drawImage(PDImageXObject image, float x, float y, float width, float height) Draw an image at the x,y coordinates, with the given size.voidPDPageContentStream.drawImage(PDImageXObject image, Matrix matrix) Draw an image at the origin with the given transformation matrix. -
Uses of PDImageXObject in org.apache.pdfbox.pdmodel.graphics.image
Methods in org.apache.pdfbox.pdmodel.graphics.image that return PDImageXObjectModifier and TypeMethodDescriptionprivate static PDImageXObjectPNGConverter.buildImageObject(PDDocument document, PNGConverter.PNGConverterState state) Build the base image object from the IDATs and profile informationprivate static PDImageXObjectPNGConverter.buildIndexImage(PDDocument doc, PNGConverter.PNGConverterState state) Build a indexed imageprivate static PDImageXObjectPNGConverter.buildTransparencyMaskFromIndexedData(PDDocument doc, PDImageXObject image, PNGConverter.PNGConverterState state) private static PDImageXObjectPNGConverter.convertPng(PDDocument doc, PNGConverter.PNGConverterState state) Convert the image using the state.(package private) static PDImageXObjectPNGConverter.convertPNGImage(PDDocument doc, byte[] imageData) Try to convert a PNG into a PDImageXObject.static PDImageXObjectCCITTFactory.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 PDImageXObjectCCITTFactory.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 PDImageXObjectJPEGFactory.createFromByteArray(PDDocument document, byte[] byteArray) Creates a new JPEG Image XObject from a byte array containing JPEG data.static PDImageXObjectPDImageXObject.createFromByteArray(PDDocument document, byte[] byteArray, String name) Create a PDImageXObject from bytes of an image file.static PDImageXObjectCCITTFactory.createFromFile(PDDocument document, File file) Creates a new CCITT Fax compressed image XObject from the first image of a TIFF file.static PDImageXObjectCCITTFactory.createFromFile(PDDocument document, File file, int number) Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file.static PDImageXObjectPDImageXObject.createFromFile(String imagePath, PDDocument doc) Create a PDImageXObject from an image file, seecreateFromFileByExtension(File, PDDocument)for more details.static PDImageXObjectPDImageXObject.createFromFileByContent(File file, PDDocument doc) Create a PDImageXObject from an image file.static PDImageXObjectPDImageXObject.createFromFileByExtension(File file, PDDocument doc) Create a PDImageXObject from an image file.private static PDImageXObjectLosslessFactory.createFromGrayImage(BufferedImage image, PDDocument document) static PDImageXObjectCCITTFactory.createFromImage(PDDocument document, BufferedImage image) Creates a new CCITT group 4 (T6) compressed image XObject from a b/w BufferedImage.static PDImageXObjectJPEGFactory.createFromImage(PDDocument document, BufferedImage image) Creates a new JPEG PDImageXObject from a BufferedImage.static PDImageXObjectJPEGFactory.createFromImage(PDDocument document, BufferedImage image, float quality) Creates a new JPEG PDImageXObject from a BufferedImage and a given quality.static PDImageXObjectJPEGFactory.createFromImage(PDDocument document, BufferedImage image, float quality, int dpi) Creates a new JPEG Image XObject from a BufferedImage, a given quality and dpi metadata.static PDImageXObjectLosslessFactory.createFromImage(PDDocument document, BufferedImage image) Creates a new lossless encoded image XObject from a BufferedImage.static PDImageXObjectCCITTFactory.createFromRandomAccess(PDDocument document, RandomAccess reader) Deprecated.static PDImageXObjectCCITTFactory.createFromRandomAccess(PDDocument document, RandomAccess reader, int number) Deprecated.UseCCITTFactory.createFromFile(PDDocument, File, int)instead.private static PDImageXObjectCCITTFactory.createFromRandomAccessImpl(PDDocument document, RandomAccess reader, int number) Creates a new CCITT Fax compressed image XObject from a TIFF file.private static PDImageXObjectLosslessFactory.createFromRGBImage(BufferedImage image, PDDocument document) static PDImageXObjectJPEGFactory.createFromStream(PDDocument document, InputStream stream) Creates a new JPEG Image XObject from an input stream containing JPEG data.private static PDImageXObjectJPEGFactory.createJPEG(PDDocument document, BufferedImage image, float quality, int dpi) static PDImageXObjectPDImageXObject.createThumbnail(COSStream cosStream) Creates a thumbnail Image XObject from the given COSBase and name.(package private) PDImageXObjectLosslessFactory.PredictorEncoder.encode()Tries to compress the image using a predictor.PDImageXObject.getMask()Returns the Mask Image XObject associated with this image, or null if there is none.PDImageXObject.getSoftMask()Returns the Soft Mask Image XObject associated with this image, or null if there is none.private static PDImageXObjectCCITTFactory.prepareImageXObject(PDDocument document, byte[] byteArray, int width, int height, PDColorSpace initColorSpace) (package private) static PDImageXObjectLosslessFactory.prepareImageXObject(PDDocument document, byte[] byteArray, int width, int height, int bitsPerComponent, PDColorSpace initColorSpace) Create a PDImageXObject using the Flate filter.private PDImageXObjectLosslessFactory.PredictorEncoder.preparePredictorPDImage(ByteArrayOutputStream stream, int bitsPerComponent) Methods in org.apache.pdfbox.pdmodel.graphics.image with parameters of type PDImageXObjectModifier and TypeMethodDescriptionprivate static PDImageXObjectPNGConverter.buildTransparencyMaskFromIndexedData(PDDocument doc, PDImageXObject image, PNGConverter.PNGConverterState state) private float[]PDImageXObject.extractMatte(PDImageXObject softMask) Extract the matte color from a softmask.private static voidPNGConverter.setupIndexedColorSpace(PDDocument doc, PNGConverter.Chunk lookupTable, PDImageXObject image, int highVal) -
Uses of PDImageXObject in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible
Fields in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible declared as PDImageXObjectMethods in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible that return PDImageXObjectModifier and TypeMethodDescriptionPDFTemplateStructure.getImage()Gets the image of visible signatureMethods in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible with parameters of type PDImageXObjectModifier and TypeMethodDescriptionvoidPDFTemplateBuilder.createImageForm(PDResources imageFormResources, PDResources innerFormResource, PDStream imageFormStream, PDRectangle bbox, AffineTransform affineTransform, PDImageXObject img) Creates Image formvoidPDVisibleSigBuilder.createImageForm(PDResources imageFormResources, PDResources innerFormResource, PDStream imageFormStream, PDRectangle bbox, AffineTransform at, PDImageXObject img) voidPDFTemplateStructure.setImage(PDImageXObject image) Sets the image of visible signature -
Uses of PDImageXObject in org.apache.pdfbox.preflight.xobject
Fields in org.apache.pdfbox.preflight.xobject declared as PDImageXObjectConstructors in org.apache.pdfbox.preflight.xobject with parameters of type PDImageXObject
CCITTFactory.createFromFile(PDDocument, File)instead.