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 Long

DLL

int DLDAShiftedHeader(int InstanceID, int FileHandle);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions

Return values

0The file was loaded as usual
Non-zeroThe number of bytes the file was shifted by