public final class PdfMetadataExtractor extends MetadataExtractor
Provides the functionality to extract the metadata from PDF documents.
Extracting the metadata:
// Create a metadata extractor for PDFs
MetadataExtractor metadataExtractor = new PdfMetadataExtractor();
// Extract a metadata from the stream
MetadataCollection metadata = metadataExtractor.extractMetadata(stream);
Constructor and Description |
---|
PdfMetadataExtractor()
Initializes a new instance of the
PdfMetadataExtractor class. |
Modifier and Type | Method and Description |
---|---|
protected MetadataCollection |
extractMetadataFromStream(InputStream stream,
LoadOptions loadOptions)
Extracts the metadata from the
stream . |
extractMetadata, extractMetadata, extractMetadata, extractMetadata
public PdfMetadataExtractor()
Initializes a new instance of the PdfMetadataExtractor
class.
protected MetadataCollection extractMetadataFromStream(InputStream stream, LoadOptions loadOptions)
Extracts the metadata from the stream
.
extractMetadataFromStream
in class MetadataExtractor
stream
- The stream of the document.loadOptions
- The options of loading the file.
Copyright © 2019. All rights reserved.