DAShiftedHeader
Document management, Direct access functionality
Description
Returns a value to determine if the source PDF was malformed due to byte shifting. For example, leading whitespace added to the file.
In such a case the file will be loaded taking this offset into account. This function will return a non-zero number indicating the number of bytes the file was shifted by.
Note that if the file is loaded this way it will not be possible to use the DAAppendFile function to add an incremental update.
Syntax
Delphi
function TPDFlib.DAShiftedHeader(FileHandle: Integer): Integer;ActiveX
Function PDFlib::DAShiftedHeader(FileHandle As Long) As LongDLL
int DLDAShiftedHeader(int InstanceID, int FileHandle);Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|
Return values
| 0 | The file was loaded as usual |
|---|---|
| Non-zero | The number of bytes the file was shifted by |