GetWebCaptureCommand
Struttura del documento
Descrizione
Legge un dizionario di comando ISO Web Capture dall'array /SpiderInfo /C del catalogo del documento selezionato
Sintassi
Delphi
Function GetWebCaptureCommand(Index: Integer; Out Command: TPDFlibWebCaptureCommand): Integer;Valori restituiti
| 0 | Nessun comando valido è stato letto |
|---|---|
| 1 | Command contiene i metadati richiesti |
Comportamento in caso di errore
Restituisce 0 quando Index è fuori dall'intervallo dei comandi in base uno, l'oggetto indicizzato non è un dizionario di comando oppure la sua stringa /URL richiesta manca o è vuota. In caso di errore, Command viene azzerato a un URL vuoto, Levels 1, Flags 0 e stringhe facoltative vuote
Note
Index è in base uno. Le voci /L e /F mancanti conservano i valori predefiniti 1 e 0. PostData accetta sia una stringa PDF sia uno stream PDF decodificato, mentre URL, ContentType e Headers vengono letti da stringhe PDF. Questa API legge solo i metadati dei comandi ISO Web Capture e non recupera né esegue la scansione dell'URL registrato
Vedere anche
TPDFlibWebCaptureCommand, GetWebCaptureCommandCount, AddWebCaptureCommand, ClearWebCaptureCommands