ApplyPAdESLongTermValidationToStream
Assinaturas digitais
Descrição
Promove um PDF já assinado a PAdES-B-LT, gravando o resultado em um stream
Sintaxe
Delphi
Function TPDFlib.ApplyPAdESLongTermValidationToStream(Const InputFile, Password, FieldName: WideString; OutputStream: TStream; Options: Integer): Integer;Parâmetros
| InputFile | The signed PDF. |
|---|---|
| Password | A senha para abri-lo, ou uma string vazia. |
| FieldName | A signature field to process, or an empty string to process every signature. |
| OutputStream | O stream onde o PDF aumentado é gravado. |
| Options | A PADES_LTV_* bit mask; 0 selects PADES_LTV_DEFAULT. |
Opções
PADES_LTV_WRITE_VRI (1) | Gravar uma entrada VRI para cada assinatura. |
|---|---|
PADES_LTV_FETCH_OCSP (2) | Consultar o respondedor OCSP de cada link. |
PADES_LTV_FETCH_CRL (4) | Recorrer à CRL quando o OCSP não retornar nada. |
PADES_LTV_FOLLOW_AIA (8) | Seguir os endereços do emissor para completar o caminho. |
PADES_LTV_SKIP_EXISTING (16) | Do not re-add material whose bytes are already staged. |
PADES_LTV_SKIP_ROOT_REVOCATION (32) | Do not ask for a self-issued root's status. |
PADES_LTV_DEFAULT (63) | Tudo o que está acima; selecionado quando Options é 0. |
Valores retornados
| 1 | The promotion succeeded. |
|---|---|
| 2 | O arquivo de entrada não pôde ser lido. |
| 3 | O PDF de entrada não pôde ser interpretado. |
| 10 | A saída não pôde ser gravada. |
| 11 | O document security store não pôde ser adicionado. |
| 20 | No such signature field. |
| 21 | No processed signature carried a readable certificate. |
GetPAdESLTVError informa o motivo para qualquer valor diferente de 1.
Observações
Idêntico a ApplyPAdESLongTermValidation, exceto por onde o resultado é gravado.