Class PdfImageExtractionProcessor
Provides functionality to extract images from PDF documents (e.g. to generate thumbnails) by rendering a page to a PNG image using the PDFium renderer.
Inherited Members
Namespace: FulcrumFS.Pdf
Assembly: FulcrumFS.Pdf.dll
Syntax
public sealed class PdfImageExtractionProcessor : FileProcessor, IFileProcessingPipelineProvider, IFileProcessingPipelineSelector
Constructors
| Name | Description |
|---|---|
| PdfImageExtractionProcessor(PdfImageExtractionProcessingOptions) | Initializes a new instance of the PdfImageExtractionProcessor class with the specified options. Note: if you want to do source PDF validation, you need to use a FileFormatValidationProcessor configured with Pdf first and chain this after it, as this class does not perform any validation itself, it just extracts an image from the provided PDF document. Note: PDF rendering is serialized process-wide because the underlying PDFium library is not thread-safe, so only one PDF page can be rendered at a time within the process. |
Properties
| Name | Description |
|---|---|
| AllowedFileExtensions | Gets the file extensions that this processor allows, including the leading dot (e.g., ".jpg", ".png"), or an empty collection if all file extensions are allowed. |
| Options | Gets the options used to configure this PdfImageExtractionProcessor. |
Methods
| Name | Description |
|---|---|
| ProcessAsync(FileProcessingContext) | Processes the file represented by the specified FileProcessingContext. |