Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Image not showing |
Post Reply |
Author | |
27ffb8b2-bfac-4126-b
Beginner Joined: 25 Mar 16 Location: Mars Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 06 Dec 16 at 9:20PM |
QuickPDF Library version: TDebenuPDFLibrary1013 Delphi XE3 I am using the following code to grab the dimensions of the fillable text field, then I basically "get rid of it" then I display the signature .Jpg image. This works. However, after the form is saved, then reopened, the signature field is not being displayed in QuickPDF, nor in an external .Pdf viewer like Adobe. However, upon printing, the signature shows up on the hard copy, in the correct place and it's the correct size.
I need to know how to force QuickPDF or Adobe, to display the signature image .jpg that I know is there (because it prints), but is not being shown. Only 1 form out of 331 forms has this problem. All other forms display the signature image in QuickPDF and Adobe even after having been saved and reloaded. ---------------------------------------------------------------------- // Set text to blank, Grab the dimensions, then get rid of the "place holder" text field ff_val := ''; idx := 29; qwk_pdf.SetFormFieldValue(idx, ff_val); sig_lft := qwk_pdf.GetFormFieldBound(idx, 0); sig_top := qwk_pdf.GetFormFieldBound(idx, 1); sig_wdt := qwk_pdf.GetFormFieldBound(idx, 2); sig_hgt := qwk_pdf.GetFormFieldBound(idx, 3); qwk_pdf.SetFormFieldVisible(idx, 0); qwk_pdf.UpdateAppearanceStream(idx); // Draw the image of the signature sig_blb_strm := dmCln.cdsPrvdr.CreateBlobStream(dmCln.cdsPrvdrSIG_JPG, bmRead); img_id := qwk_pdf.AddImageFromStream(sig_blb_strm, 0); qwk_pdf.DrawImage(sig_lft, sig_top, sig_wdt, 20); ... qwk_pdf_frm.SaveToFile(ff_mrg_fyl_nm); ... // At this point the signature image displays correctly in QuickPDF and Adobe. However, when I reload the image into QuickPDF, or reload into Adobe, the signature image is not visible. However, it prints onto the hard copy. ---------------------------------------------------------------------- |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi,
try it with an additional SetNeedAppearances(1) before SetFormFieldValue. Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
27ffb8b2-bfac-4126-b
Beginner Joined: 25 Mar 16 Location: Mars Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hi Ingo,
Sorry I did not include that line in my code snippet. It's actually in my original source code, a bit further up. So that is not the problem. I moved the line to just above where I set the field value, but it still has the same problem. The signature prints, but it is not visible in QuickPDF viewer, and it is not visible in an external .Pdf viewr like Adobe or Nuance Power PDF. Any other suggestions? Thanks in advance. |
|
27ffb8b2-bfac-4126-b
Beginner Joined: 25 Mar 16 Location: Mars Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Is there a way I can send you the .Pdf form that is manifesting this behavior? I don't see a user file upload section in your forums.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi,
you can upload the pdf anywhere (there are many data hoster out there ;-) and post the link here. So users or me <perhaps can help. |
|
Cheers,
Ingo |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store