fop-pdf-images 2.3

org.apache.fop.render.pdf.pdfbox
Class ImagePDF

java.lang.Object
  extended by org.apache.xmlgraphics.image.loader.impl.AbstractImage
      extended by org.apache.fop.render.pdf.pdfbox.ImagePDF
All Implemented Interfaces:
org.apache.xmlgraphics.image.loader.Image

public class ImagePDF
extends org.apache.xmlgraphics.image.loader.impl.AbstractImage

Represents a PDF document as an image.


Field Summary
static java.lang.String MIME_PDF
          MIME type for PDF
static org.apache.xmlgraphics.image.loader.ImageFlavor PDFBOX_IMAGE
          ImageFlavor for PDF
 
Constructor Summary
ImagePDF(org.apache.xmlgraphics.image.loader.ImageInfo info, org.apache.pdfbox.pdmodel.PDDocument doc)
          Create an PDF image with the image information.
 
Method Summary
 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()
          
 
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage
getColorSpace, getICCProfile, getInfo, getSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MIME_PDF

public static final java.lang.String MIME_PDF
MIME type for PDF

See Also:
Constant Field Values

PDFBOX_IMAGE

public static final org.apache.xmlgraphics.image.loader.ImageFlavor PDFBOX_IMAGE
ImageFlavor for PDF

Constructor Detail

ImagePDF

public ImagePDF(org.apache.xmlgraphics.image.loader.ImageInfo info,
                org.apache.pdfbox.pdmodel.PDDocument doc)
Create an PDF image with the image information.

Parameters:
info - the information containing the data and bounding box
doc - the PDF document
Method Detail

getPDDocument

public org.apache.pdfbox.pdmodel.PDDocument getPDDocument()
Returns the root PDDocument instance representing the PDF image.

Returns:
the root PDDocument

getFlavor

public org.apache.xmlgraphics.image.loader.ImageFlavor getFlavor()


isCacheable

public boolean isCacheable()


close

public void close()

fop-pdf-images 2.3

Copyright 2007-2018 The Apache Software Foundation. All Rights Reserved.