AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones PDF
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Obtiene la firma de un documento PDF en forma de búfer. El certificado correspondiente puede extraerse utilizando la función CertificateExtract.
Ejemplo
MyPDF is pdfDocument = PDFOpen("test.pdf")
 
// Number of signatures in the PDF file
nNbSignatures is int = PDFNbSignatures(MyPDF)
 
// Get signature details
POUR i = 1 _TO_ nNbSignatures
// Get signature
bufSignature is Buffer = PDFGetSignature(MyPDF, i)
 
// Get signature date
dtSignatureDate is DateTime = PDFGetSignatureDate(MyPDF, i)
 
// Get certificate
Certif is Certificate = CertificateExtract(bufSignature)
END
Sintaxis
<Result> = PDFGetSignature(<PDF document> , <Index>)
<Result>: Buffer
Firma del documento.
<PDF document>: Nombre de control o variable de tipo pdfDocument
Documento PDF a analizar. Este documento puede corresponder a:
<Index>: Entero
Índice de la firma en el documento (la función PDFNbSignatures devuelve el número de firmas).
Componente: wd290wdpdf.dll
Versión mínima requerida
  • Versión 27
Esta página también está disponible para…
Comentarios
Exemplo de uso de assinatura digital em banco de dados by Alexandre


MyExtractedCertificate is Certificate

HReset(CERTIFICADO)

IF HReadSeek(CERTIFICADO,AGRONOMO_ID,EDT_AGRONOMO_ID,hIdentical) = True THEN

EDT_CertificadoEncodado = CERTIFICADO.CERTIFICADO_ENCODE

bufSignature is Buffer = Decode(CERTIFICADO.CERTIFICADO_ENCODE,encodeBASE64)

MyExtractedCertificate = CertificateExtract(bufSignature,certificateFromBuffer)

IF MyExtractedCertificate = Null THEN
RESULT False
END

IF MyExtractedCertificate..EndValidityDate<DateSys() THEN
Info("Certificado Vencido")
RESULT False
END


bt_assinar..State = Active

MySignature is pdfSignature
MySignature..Certificate = MyExtractedCertificate
MySignature..Caption = " por:" + MyExtractedCertificate..Name + " em " + DateToString(DateSys())
MySignature..Height = 264 //xAlturaTexto
MySignature..Width = 167 //xLarguraTexto
MySignature..X = 1 //xPosicaoTextoX
MySignature..Y = 15 //xPosicaoTextoY
MySignature..VerticalAlignment=iBottom
MySignature..Hor
Boller
03 02 2023

Última modificación: 18/04/2024

Señalar un error o enviar una sugerencia | Ayuda local