TOPIC:

show qr code image before submit 5 years 1 month ago #179526

  • deserteagle's Avatar Topic Author
  • deserteagle
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 63
  • Thanks: 1
Hi Lovre

1. it works well.

2. the download only include the qrcode image, it will be great if can download the whole form with image in PDF.

Thanks.
Everything is possible.

Please Log in or Create an account to join the conversation.

show qr code image before submit 5 years 1 month ago #179570

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
Hi,

You should do it like in this example:
crosstec.org/en/downloads/free/form-apps...-thank-you-page.html

You would need to implement this example to your form and then edit the pdf_attachment.php on the path: JoomlaRoot\administrator\components\com_breezingforms\pdftpl

Do it like shown here (but not the path, go to the path from this answer, not the one from the article):
crosstec.org/en/support/online-documenta...-s-pdf-template.html

, so the you get the url value like this:
case 'NameOfTheUrlElemenet ':
          $url = $value;
          break;
and echo the img element at the end of the table, like this:
<?php echo '<img src="'.$url.'" alt="QRCode">'; ?>

Please let us know how it works out.
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
The following user(s) said Thank You: deserteagle

Please Log in or Create an account to join the conversation.

Last edit: Post by lovre.

show qr code image before submit 5 years 1 month ago #179629

  • deserteagle's Avatar Topic Author
  • deserteagle
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 63
  • Thanks: 1
Hi, Lovre

I installed the pdfdownloadthankyou pkg and yes there is pdf download link which can open/save a pdf file. but no matter how I changed pdfdownloadthankyou_pdf_attachment.php or pdf_attachment.php, the download pdf file keep no change.

btw, how to change the font in pdf?
Everything is possible.
Attachments:

Please Log in or Create an account to join the conversation.

show qr code image before submit 5 years 1 month ago #179631

  • deserteagle's Avatar Topic Author
  • deserteagle
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 63
  • Thanks: 1
Hi, Lovre

I installed the pdfdownloadthankyou pkg and yes there is pdf download link which can open/save a pdf file. but no matter how I changed pdfdownloadthankyou_pdf_attachment.php or pdf_attachment.php, the download pdf file keep no change.

btw, how to change the font in pdf?

thanks
Everything is possible.
Attachments:

Please Log in or Create an account to join the conversation.

show qr code image before submit 5 years 1 month ago #179644

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
Hi,

Are you sure that you are editing the file pdf_attachment.php at the path:
JoomlaRoot\administrator\components\com_breezingforms\pdftpl\

I'm sending you my pdf_attachment.php file so you can see how I displayed the image in the pdf.

This pdf_attachment.php file will work if your form has an element called "url" which holds the source value of the image.

So I'm also sending you a example "pdfdownloadthankyou" form with this setup.

You need to overwrite the pdf_attachment.php file on the above path (keep a clean copy just to be safe) and install this form package. Just add a image url to the field in the form and go to the thank you page.

Please let us know how this works out.
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
Attachments:
The following user(s) said Thank You: deserteagle

Please Log in or Create an account to join the conversation.

Last edit: Post by lovre.

show qr code image before submit 5 years 3 weeks ago #180664

  • deserteagle's Avatar Topic Author
  • deserteagle
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 63
  • Thanks: 1
Hi, Lovre

I found I edited the pdf_attachment.php at wrong path (\media\..).

I correct it and installed your pkg, after click the submit button the page show a error msg:
TCPDF ERROR: [Image] Unable to get the size of the image: chart.googleapis.com/chart?cht=qr&chs=40...0&chld=L|1&chl=14057

the url is dynamic qrcode image by google api, is that a problem?

btw, how to change the font of pdf? the Chinese text just show as"???" in pdf file.

thanks
Everything is possible.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!