Oct 11
Stephen Smiroldo Need help adding image to PDF
Oct 11, 2013; 12:45
Stephen Smiroldo
Need help adding image to PDF
I have a program that's pulling data from a database and populating a PDF (with form fields), then saving the PDF to the server.
I'm then trying to add a PNG file (or TIFF) to the PDF I just saved but cannot figure out from the Lasso 8.6 documentation and reference what I need to do. It looks like I need to create a PDF using the PDF_Doc tag, read the just created PDF using the PDF_Read tag, Insert the existing PDF using InsertPage, and then Add the image to the PDF and close the PDF_Doc.
I'm getting a bare-bones PDF after this is applied (form template is there but without form data applied). Here's the code I'm using:
// There is code above this line which is working correctly (I can redirect to the "completed_pdf_path" and display PDF with all form data)
$pdf_file->save(-file = $completed_pdf_path);
// Add signature (not working - and removing 2nd page of PDF and all form data)
local:'existingPDF'=(PDF_Read:-File=$completed_pdf_path);
var:'CompletedPDFwithSig'=(PDF_Doc:-File=$completed_pdf_path);
local:'signatureImage'=(PDF_Image: -File='/_signatures/signature_a.png');
$CompletedPDF->(InsertPage:#existingPDF,1,-NewPage);
$CompletedPDF->(Add: #signatureImage, -Left=490.0, -Top=990.0);
$CompletedPDF->(Close);
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Oct 11
Steve Piercy - Web Site Builder Re: Need help adding image to PDF
Oct 11, 2013; 14:11
Steve Piercy - Web Site Builder
Re: Need help adding image to PDF
Oct 14
Lubos Voros Re: Need help adding image to PDF
Oct 14, 2013; 20:27
Lubos Voros
Re: Need help adding image to PDF
Oct 15
Stephen Smiroldo Re: Need help adding image to PDF
Oct 15, 2013; 12:19
Stephen Smiroldo
Re: Need help adding image to PDF
Oct 15
Steve Piercy - Web Site Builder Re: Need help adding image to PDF
Oct 15, 2013; 11:25
Steve Piercy - Web Site Builder
Re: Need help adding image to PDF