 |
PdfPreflightFix Method |
Fixes pdf for standard and verifies the result.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic static PreflightResult Fix(
byte[] pdf,
string password,
PdfConformanceStandard standard,
PreflightOptions options = null
)
Public Shared Function Fix (
pdf As Byte(),
password As String,
standard As PdfConformanceStandard,
Optional options As PreflightOptions = Nothing
) As PreflightResult
Parameters
- pdf Byte
- The document.
- password String
- Its password, when it is encrypted.
- standard PdfConformanceStandard
- The standard to fix the document for.
- options PreflightOptions (Optional)
- How to fix it; the defaults when null.
Return Value
PreflightResultThe fixed document, the fixes applied and its validation report.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | pdf is null. |
| ArgumentOutOfRangeException | A validation option is out of range. |
| ArgumentException | The output profile is not a printer profile, or (PDF/X-1a) not CMYK. |
| InvalidOperationException | The document is signed, a fix failed, or the document is larger
than the memory limit allows; the message says which. |
| TimeoutException | The fix did not finish within the timeout. |
| PdfDocumentException | The password does not open the encrypted document. |
RemarksThe whole fix - the verification before, the fixes, and the verification after - runs within the
Timeout of
Validation, and under the memory
limit a validation has.
See Also