TOPIC:

Different layout for each PDF of the form in "pdf_attachment_header" and "pdf_at 2 weeks 1 day ago #259982

  • sciencemkt's Avatar Topic Author
  • sciencemkt
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Science applied to marketing
  • Posts: 233
  • Thanks: 0
Hello:

The forms I have, some generate a PDF which I have them customized with the option "pdf_attachment_footer.php" and "pdf_attachment_header.php" which I have with the image I created for these forms:

Code for pdf_attachment_footer.php:
<?php
$this->SetY(-17);
echo '<div>
<table width="100%" border="0">
<tr>
<td style="width: 100%; style="text-align: center; padding-bottom:0px;>
<img src="https://www.apuswebsite.com/forms/pdf/example/footer-example.png" alt="imagen footer" width="2480" height="240">
</td>
</tr>
</table>
</div>';
?>

Code for pdf_attachment_header.php:
<?php
$this->SetY(0);
echo '<div>
<table width="100%" border="0">
<tr>
<td style="width: 100%; style="text-align: center; padding-bottom:0px;>
<img src="https://www.apuswebsite.com/forms/pdf/example/header-example.png" alt="imagen header" width="2480" height="380">
</td>
</tr>
</table>
</div>';
?>

They work perfectly.

Now I want to see if it is possible that the PDF of the forms, have a different design according to the need. Is it possible?

Thank you.
Alejandro Cobo
Neuromarketing Company

==============================================
Blog: www.alejandrocobo.com
==============================================
Facebook: @AlejandroCobo.Neuromarketing
==============================================
Instagram: @alejandrocobo
==============================================

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

Different layout for each PDF of the form in "pdf_attachment_header" and "pdf_at 2 weeks 1 day ago #259983

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6086
  • Karma: 3
  • Thanks: 429
Hi,

if I understood you correctly then for each form you can create a design for footer and header.
Just name it like:

formname_pdf_attachment_header.php
formname_pdf_attachment_footer.php

and if you want to change it in pdf of form, then:

formname_pdf_attachment.php


where formname is name of your form (not title)

With this you can create a different design for each form

Regards,
Tihana
The following user(s) said Thank You: sciencemkt

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

Last edit: Post by tihana.krivic.

Different layout for each PDF of the form in "pdf_attachment_header" and "pdf_at 2 weeks 1 day ago #259989

  • sciencemkt's Avatar Topic Author
  • sciencemkt
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Science applied to marketing
  • Posts: 233
  • Thanks: 0
Thank you very much Tihana:

It has worked perfectly. :)
Alejandro Cobo
Neuromarketing Company

==============================================
Blog: www.alejandrocobo.com
==============================================
Facebook: @AlejandroCobo.Neuromarketing
==============================================
Instagram: @alejandrocobo
==============================================

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

  • Page:
  • 1
Time to create page: 0.045 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!