AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Jsignpdf cannot see visible signature12/28/2023 Using the second method, (SignFile) it returns '7' which says it has the wrong password. Result all come back as '1' until the EndSignProcessToFile which returns '0'. I'm having troubles getting this to work in asp using the ActiveX module. MessageDlg('Invalid lincese key', Dialogs.mtError,, 0) PDFLibrary.EndSignProcessToFile(SignProcessID, 'c:\home\output.pdf') MessageDlg(Error: SetSignProcessPFXFromFile, Dialogs.mtError,, 0) If PDFLibrary.SetSignProcessPFXFromFile(SignProcessID, 'c:\home\cacert\cacert.p12', MY_CERT_PASSWORD) = 0 then begin MessageDlg(Error: SetSignProcessInfo, Dialogs.mtError,, 0) If PDFLibrary.SetSignProcessInfo(SignProcessID, 'Reason: Test', 'Location: CZ', 'Contact: PhoneNumber') = 0 then begin MessageDlg('Error: SetFormFieldSignatureImage', Dialogs.mtError,, 0) If PDFLibrary.SetFormFieldSignatureImage(FormFieldIndex, PDFLibrary.SelectedImage(), 0) = 0 then begin MessageDlg('Error: SelectImage', Dialogs.mtError,, 0) If PDFLibrary.SelectImage(ImageID) = 0 then begin MessageDlg('Error: AddImageFromFile', Dialogs.mtError,, 0) ImageID:= PDFLibrary.AddImageFromFile('C:\home\logo.gif', 0) MessageDlg('Error: SetFormFieldBounds', Dialogs.mtError,, 0) If PDFLibrary.SetFormFieldBounds(FormFieldIndex, 25, 500, 100, 100) = 0 then begin MessageDlg('Error: SetFormFieldVisible', Dialogs.mtError,, 0) If PDFLibrary.SetFormFieldVisible(FormFieldIndex, 1) = 0 then begin MessageDlg('Error: FindFormFieldByTitle', Dialogs.mtError,, 0) MessageDlg('FormFieldCount: ' + IntToStr(PDFLibrary.FormFieldCount()),ĭialogs.mtInformation,, 0) įormFieldIndex:= PDFLibrary.FindFormFieldByTitle(FORMFIELD_NAME) MessageDlg('Error: SetSignProcessField', Dialogs.mtError,, 0) If PDFLibrary.SetSignProcessField(SignProcessID, FORMFIELD_NAME) = 0 then begin MessageDlg('Error: NewSignProcessFromFile', Dialogs.mtError,, 0) SignProcessID:= PDFLibrary.NewSignProcessFromFile('c:\home\input.pdf', '') UnlockResult:= PDFLibrary.UnlockKey(MY_UNLOCK_KEY) PDFLibrary:= TDebenuPDFLibrary0913.Create() How can i use function SetFormFieldSignatureImage, when i need to pass it signature form field? I tried make newFormField, but it didn't reach the desired result (maybe i did some mistake). When i want to find it by its name, function FindFormFieldByTitle returns 0 (The form field could not be found.) The code, which i tried, open input pdf file, then create FormField with SetSignProcessField command (from manual: The created field will be invisible (zero width and height) and will be attached to the first page in the document.), but don't return its ID. I use Delphi 7 with DebenuQuickPDFLibrary0913 on WindowsXP. Can somebody please help me how can i make visible signature? Is it possible to make visible digital signature with Debenu Quick PDF Library? $: 89.0, :lly => 386.0, :urx => 190.0, :ury => 353.I downloaded trial version and want to make visible digital signature. VERSION 2 - Use existing certificates to sign a pdf document require 'openssl' #sigannot = Annotation::Widget::Signature.new VERSION 1 - Generate certificate and key file, and insert them directly into the document require 'openssl' I'm using Adobe Reader X, for the record. From origami documentation, i found the get_page method, which solved my last problem on this. To develop version 2, i also spent some time wondering how to add an annotation - so the signature becomes visible in Adobe reader - without adding a new page to the document. I've opened a new question where you can find some details on a difficulty i had with OpenSSL and DER encoded certificates. Now I just need to figure out how to use this with an external generated certificate (check version 2 below, where i solved it). After some research, recurring to the OpenSSL documentation and exploring the Origami solution, i built the code below, and managed to insert a locally generated signature/certificate into a pdf document.
0 Comments
Read More
Leave a Reply. |