TransformFileA
Document manipulation, Miscellaneous functions
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to TransformFile and string arguments are interpreted using the current SetAnsiMode code page
Applies a transformation to a file allowing objects to be renumbered and reordered.
In certain cases this can result in a more compact cross reference table reducing the size of the PDF.
Syntax
Delphi
Function DLTransformFileA(InstanceID: Integer; InputFileName, Password, OutputFileName: PAnsiChar; TransformType, Options: Integer): Integer;
DLL
int DLTransformFileA(int InstanceID, const char * InputFileName, const char * Password, const char * OutputFileName, int TransformType, int Options);
Parameters
| InputFileName | The path and file name of the input PDF to transform. |
|---|---|
| Password | The optional password to open the input PDF if it is encrypted |
| OutputFileName | The path and file name of the signed PDF that should be created. This should be different to InputFileName. |
| TransformType | 1 = Renumber all objects writing them out in order 2 = Same as 1 but uses an xref stream |
| Options | Reserved for future use, should be set to zero. |
Return values
| 1 | Success 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); |
|---|