Solid Framework SDK 10.0.12602
SDK for converting and extracting value from PDFs
|
Converts PDF to PDF/A 1b or 2b compliant document.
This class is used to convert from PDF to PDF/A. If you wish to convert to a PDF that is non-PDF/A then use the PdfToPdfConverter instead.
More...
Public Member Functions | |
override void | Dispose () |
PdfToPdfAConverter () | |
Initializes a new instance of the PdfToPdfAConverter class. This class is used to convert from PDF to PDF/A. If you wish to convert to a PDF that is non-PDF/A then use the PdfToPdfConverter instead. | |
void | Validate () |
Check whether the PDF file passes PDF/A validation for the current validation mode. | |
void | Validate (SolidFramework.Plumbing.ValidationMode mode) |
Check whether the PDF file passes PDF/A validation for the specified mode. More... | |
void | Verify () |
Verify that the PDF file passes PDF/A validation with the ValidationMode that it claims to be. | |
override void | Convert () |
Starts the conversion of a PDF file to a PDF/A 1b or 2b file. More... | |
override void | AddSourceFile (string fullpath) |
Add a PDF file to be converted to the source collection. More... | |
override void | AddSourceFile (SolidFramework.Plumbing.Document document) |
Add a PDF file to be converted to the source collection from a loaded Document object. More... | |
override SolidFramework.Converters.Plumbing.ConversionStatus | ConvertTo (string fullpath, bool overwrite) |
Converts single file to specified path. More... | |
void | Cancel () |
Cancels the conversion. | |
bool | IsCanceled () |
void | AddSourceFiles (SolidFramework.StringsArray paths) |
Add a collection of PDF file paths to be converted to the source collection. More... | |
SolidFramework.Converters.Plumbing.ConversionStatus | ConvertTo (string fullpath) |
Converts single file to specified path More... | |
void | ClearSourceFiles () |
Clear the current source files collection. | |
virtual void | OnProgress (SolidFramework.ProgressEventArgs args) |
virtual void | OnWarning (SolidFramework.WarningEventArgs args) |
bool | Equals (SolidFramework.Converters.Converter other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
Static Public Member Functions | |
static bool | operator== (SolidFramework.Converters.Converter obj1, SolidFramework.Converters.Converter obj2) |
static bool | operator!= (SolidFramework.Converters.Converter obj1, SolidFramework.Converters.Converter obj2) |
Properties | |
string | OcrLanguage [getset] |
Gets or sets the OCR language to to be used. More... | |
string | ExportLogPath [getset] |
Gets or sets the directory path to validation log. | |
string | ReportLanguage [getset] |
Gets or sets the language for validation log. | |
SolidFramework.Pdf.Reports.PdfAReport | Report [get] |
Gets the Report that shows the validation steps, errors, passes etc. of the conversion. | |
SolidFramework.Converters.Plumbing.TextWatermark | TextWatermark [getset] |
Gets or sets the Text Watermark to be used in the converted file. More... | |
string | LogPath [getset] |
Gets or sets the path where the error log is located. | |
bool | OcrAlways [getset] |
Gets or sets whether OCR should be performed on every single character. Setting this to true can result in slow conversions. | |
bool | ShowWarnings [getset] |
Gets or sets whether warnings should be shown. | |
bool | OcrAutoRotate [getset] |
Gets or sets whether to automatically detect and rotate pages that require rotatation on conversion. | |
SolidFramework.Converters.Plumbing.OcrType | OcrType [getset] |
Gets or sets the type of OCR to be performed. More... | |
SolidFramework.Converters.Plumbing.TextRecoveryEngine | OcrEngine [getset] |
Gets or sets the TextRecoveryEngine that should be used for OCR. | |
SolidFramework.Plumbing.ValidationMode | ValidationMode [getset] |
Sets the PDF/A Validation Mode. Setting this to PDF will cause an exception to be thrown if an attempt is made to convert the file. | |
SolidFramework.Imaging.Plumbing.ImageCompression | OcrImageCompression [getset] |
Gets or sets the compression method to be used for images. This will affect file size and image quality. More... | |
System.Object | CustomData [getset] |
Custom data to provide during Progress events | |
SolidFramework.Converters.Plumbing.IConversionResultsCollection | Results [get] |
Gets the results of conversion | |
string | SourceDirectory [getset] |
Gets the source directory. More... | |
string | OutputDirectory [getset] |
Gets or sets the directory where converted files will be placed when created using Convert . More... | |
SolidFramework.Plumbing.OverwriteMode | OverwriteMode [getset] |
Get whether to overwrite an existing output file. More... | |
Events | |
global::System.EventHandler< SolidFramework.ProgressEventArgs > | Progress |
Triggered when progress occurs during PDF conversion. More... | |
global::System.EventHandler< SolidFramework.WarningEventArgs > | Warning |
Triggered when a warning is raised during PDF conversion. | |
Converts PDF to PDF/A 1b or 2b compliant document.
This class is used to convert from PDF to PDF/A. If you wish to convert to a PDF that is non-PDF/A then use the PdfToPdfConverter instead.
|
virtual |
Add a PDF file to be converted to the source collection from a loaded Document
object.
document | Document object loaded with a PDF file. |
System.ArgumentNullException | Thrown when Document object is null. |
Reimplemented from SolidFramework.Converters.Converter.
|
virtual |
Add a PDF file to be converted to the source collection.
fullpath | String of the full path to the PDF file. |
System.IO.FileNotFoundException | Thrown when path is invalid. |
Reimplemented from SolidFramework.Converters.Converter.
|
inherited |
Add a collection of PDF file paths to be converted to the source collection.
paths | ReadOnlyCollection(String) collection of PDF source file paths. |
|
virtual |
Starts the conversion of a PDF file to a PDF/A 1b or 2b file.
Reimplemented from SolidFramework.Converters.Converter.
|
inherited |
Converts single file to specified path
fullpath | The fullpath. |
|
virtual |
Converts single file to specified path.
fullpath | The fullpath. |
overwrite | if set to true [overwrite]. |
Reimplemented from SolidFramework.Converters.Converter.
|
virtual |
Reimplemented from SolidFramework.Converters.Converter.
void SolidFramework.Converters.PdfToPdfAConverter.Validate | ( | SolidFramework.Plumbing.ValidationMode | mode | ) |
Check whether the PDF file passes PDF/A validation for the specified mode.
mode | The PDF/A mode to validate as. |
|
getset |
Gets or sets the compression method to be used for images. This will affect file size and image quality.
Choose from ColourOrBetter, FakeMono, GrayOrBetter, Mono, FakeMone, RealGrayOrBetter, Lossless, PreserveOriginal or Unknown. SolidFramework.Imaging.Plumbing.ImageCompression.ColorOrBetter;
|
getset |
Gets or sets the OCR language to to be used.
The format used is typically the first two letters of the language as spelt in that language. "en" for English, "es" for Spanish, "de" for German etc. If Chinese, Korean, Japanese or Greek is selected then the tesseract "traineddata" files will also be required. Please see documentation for details.
|
getset |
Gets or sets the type of OCR to be performed.
None - No OCR, Full - OCR everything - CreateSearchableTextLayer - Enable the converted file to be searchable.
|
getsetinherited |
Gets or sets the directory where converted files will be placed when created using Convert
.
The output directory.
|
getsetinherited |
Get whether to overwrite an existing output file.
Set the desired action when the output file already exists. Default is FailIfExists.
|
getsetinherited |
Gets the source directory.
The source directory.
|
getset |
Gets or sets the Text Watermark to be used in the converted file.
A watermark is an impression that displays on top of or below the content of a PDF page. Watermarks can be useful for identifying drafts and confidential documents or placing a logo on each page.
|
inherited |
Triggered when progress occurs during PDF conversion.
ProgressEventArgs contains the amount of progress, the maximum amount of progress, a status code, a description, plus optional custom data.