AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
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 PDF Document como un buffer. La Certificate correspondiente puede extraerse con Extracto del certificado.
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 de Document.
<PDF document>: Nombre de control o pdfDocument Variable
PDF Document a analizar. Este Document puede corresponder a:
<Index>: Integro
Índice de la firma en el Document (el número de firmas es devuelto por PDFNbFirmas).
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: 04/05/2023

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