Package de.rototor.pdfbox.graphics2d
Interface IPdfBoxGraphics2DImageEncoder
-
- All Known Implementing Classes:
PdfBoxGraphics2DLosslessImageEncoder
public interface IPdfBoxGraphics2DImageEncoderEncode and compress an image as PDImageXObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIPdfBoxGraphics2DImageEncoder.IPdfBoxGraphics2DImageEncoderEnvEnvironment for image encoding
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.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 Detail
-
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
-
-