RetrieveCustomDataToFileA
Document properties
Description
O sufixo A indica o ponto de entrada ANSI (char) da DLL; a superfície ActiveX/COM expõe apenas a forma Unicode. O comportamento é idêntico ao de RetrieveCustomDataToFile e os argumentos de cadeia de caracteres são interpretados com base na página de código atual definida por SetAnsiMode
Retrieves custom data from the PDF that was previously stored with StoreCustomDataFromString or StoreCustomDataFromFile. The retrieved data is written to the specified file.
Syntax
Delphi
Function DLRetrieveCustomDataToFileA(InstanceID: Integer; Key, FileName: PAnsiChar; Location: Integer): Integer;
DLL
int DLRetrieveCustomDataToFileA(int InstanceID, const char * Key, const char * FileName, int Location);
Parameters
| Key | The key that the data was stored under. If the location is the Document Catalog then the key must have a special prefix assigned to you by Adobe to avoid conflicts with other software. If the location is the Document Information Dictionary any key can be used but should be chosen with care so they make sense to the user. |
|---|---|
| FileName | The path and file name of the file to save the retrieved data to. |
| Location | 1 = Obter os dados do Document Information Dictionary 2 = Obter os dados do Document Catalog |
Return values
| 0 | There was no data stored in the specified key, or the file to save the data to already exists and could not be overwritten |
|---|---|
| 1 | The data was retrieved and written to the specified file successfully |