LinearizeFile

Document manipulation, Miscellaneous functions

Description

Linearizes the specified PDF file for fast web view.

Syntax

Delphi

function TPDFlib.LinearizeFile(Const InputFileName, Password, OutputFileName: WideString; Options: Integer): Integer;

ActiveX

Function PDFlib::LinearizeFile(InputFileName As String, Password As String, OutputFileName As String, Options As Long) As Long

DLL

int DLLinearizeFile(int InstanceID, wchar_t * InputFileName, wchar_t * Password, wchar_t * OutputFileName, int Options);

Parameters

InputFileNameThe path and file name of the input PDF to transform.
PasswordThe optional password to open the input PDF if it is encrypted
OutputFileNameThe path and file name of the signed PDF that should be created. This should be different to InputFileName.
OptionsReserved for future use, should be set to zero.

Return values

1Success
2 Input PDF not found 3 Input PDF cannot be read Input PDF password incorrect 4 5 Could not write output file