public class ImagePDF
extends org.apache.xmlgraphics.image.loader.impl.AbstractImage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MIME_PDF
MIME type for PDF
|
static org.apache.xmlgraphics.image.loader.ImageFlavor |
PDFBOX_IMAGE
ImageFlavor for PDF
|
Constructor and Description |
---|
ImagePDF(org.apache.xmlgraphics.image.loader.ImageInfo info,
org.apache.pdfbox.pdmodel.PDDocument doc)
Create an PDF image with the image information.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.xmlgraphics.image.loader.ImageFlavor |
getFlavor() |
org.apache.pdfbox.pdmodel.PDDocument |
getPDDocument()
Returns the root PDDocument instance representing the PDF image.
|
boolean |
isCacheable() |
public static final java.lang.String MIME_PDF
public static final org.apache.xmlgraphics.image.loader.ImageFlavor PDFBOX_IMAGE
public ImagePDF(org.apache.xmlgraphics.image.loader.ImageInfo info, org.apache.pdfbox.pdmodel.PDDocument doc)
info
- the information containing the data and bounding boxdoc
- the PDF documentpublic org.apache.pdfbox.pdmodel.PDDocument getPDDocument()
public org.apache.xmlgraphics.image.loader.ImageFlavor getFlavor()
public boolean isCacheable()
public void close()
Copyright 2007-2022 The Apache Software Foundation. All Rights Reserved.