TransformFile
Manipulação de documentos, Funções diversas
Descrição
Aplica uma transformação a um arquivo, permitindo renumerar e reordenar objetos.
Em certos casos isso pode resultar em uma cross reference table mais compacta, reduzindo o tamanho do PDF
Sintaxe
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);
Parâmetros
| InputFileName | O caminho e o nome do arquivo do PDF de entrada a transformar. |
|---|---|
| Password | A senha opcional para abrir o PDF de entrada, caso esteja criptografado |
| OutputFileName | O caminho e o nome do arquivo do PDF assinado a criar. Deve ser diferente de 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. |
Valores retornados
| 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); |
|---|