Package de.xima.fc.testhelper.pdf
Class PdfImageExtractor
- java.lang.Object
-
- de.xima.fc.testhelper.pdf.PdfImageExtractor
-
public final class PdfImageExtractor extends Object
Extracts images from a PDF document.- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description PdfImageExtractor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Container>
ContainerextractImagesFromPdf(org.apache.pdfbox.pdmodel.PDDocument document, Collector<? super org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject,?,? extends Container> collector)
Extracts images from a PDF document and collects them using the provided collector.
-
-
-
Method Detail
-
extractImagesFromPdf
public static <Container> Container extractImagesFromPdf(org.apache.pdfbox.pdmodel.PDDocument document, Collector<? super org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject,?,? extends Container> collector) throws IOException
Extracts images from a PDF document and collects them using the provided collector.- Type Parameters:
Container
- The type of the container that the collector collects the images into.- Parameters:
document
- The PDF document to extract images from.collector
- The collector to collect the images with.- Returns:
- The result of the collector.
- Throws:
IOException
- If an I/O error occurs while extracting the images.
-
-