TransformFile

Document manipulation, Miscellaneous functions

תיאור

Applies a transformation to a file allowing objects to be renumbered and reordered.

במקרים מסוימים זה עשוי להניב טבלת cross reference קומפקטית יותר ולהקטין את גודל ה-PDF

תחביר

Delphi

Function TPDFlib.TransformFile(Const InputFileName, Password, OutputFileName: WideString; TransformType, Options: Integer): Integer;

ActiveX

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

DLL

int DLTransformFile(int InstanceID, const wchar_t * InputFileName, const wchar_t * Password, const wchar_t * OutputFileName, int TransformType, int Options);

פרמטרים

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.
TransformType1 = ממספרת מחדש את כל האובייקטים וכותבת אותם לפי הסדר 2 = כמו 1, אך משתמשת בזרם xref
OptionsReserved for future use, should be set to zero.

ערכי החזרה

1Success 2 Input PDF not found 3 Input PDF cannot be read 4 Input PDF password incorrect 5 Could not write output file int TransformType, int Options);