Interface IPdfBoxGraphics2DImageEncoder
- All Known Implementing Classes:
PdfBoxGraphics2DLosslessImageEncoder
public interface IPdfBoxGraphics2DImageEncoder
Encode and compress an image as PDImageXObject
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEnvironment for image encoding -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pdfbox.pdmodel.graphics.image.PDImageXObjectencodeImage(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.PDPageContentStream contentStream, Image image, IPdfBoxGraphics2DImageEncoder.IPdfBoxGraphics2DImageEncoderEnv env) Encode the given image into the a PDImageXObject
-
Method Details
-
encodeImage
org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject encodeImage(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.PDPageContentStream contentStream, Image image, IPdfBoxGraphics2DImageEncoder.IPdfBoxGraphics2DImageEncoderEnv env) Encode the given image into the a PDImageXObject- Parameters:
document- the PDF documentcontentStream- the content stream of the pageimage- the image to encode- Returns:
- the encoded image
-