Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetInRepairMode
Queries whether the current open import file was opened in repair or normal mode.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.GetInRepairMode"; PDF ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. |
Result
Returns 0, 1 or error.
Description
Queries whether the current open import file was opened in repair or normal mode.When a PDF file was loaded in normal mode and if it contains damages which were not recognized when opening the file, e.g. if it is not possible to load one or more pages of it, then it is possible to load the file explicitely in repair mode to repair the damages. Not all damages can be repaired but DynaPDF contains a very robust and powerful PDF parser that is able to repair many damages in a PDF file.
See also DynaPDF.OpenImportFile.
If the current open import file was already opened in repair mode then the return value is 1. If it was loaded in normal mode then the return value is 0. If no import file is in memory the return value is a negative error code.
See also GetInRepairMode function in DynaPDF manual.
See also
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014