CREATION OF A PDF FILE

  • snappysites
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0

snappysites replied the topic: CREATION OF A PDF FILE

Is there any way to set the font and font size in the PDF template?
#234435
  • mihaela
  • Away
  • Administrator
  • Administrator
  • Posts: 1938
  • Karma: 67
  • Thank you received: 234

mihaela replied the topic: CREATION OF A PDF FILE

Hello again,

The font and font-site can be changed,

I will explain on an example of default "pdf_attachment.php" file.

In that template you can adjust the font-size for the whole table by adding style as follows:
<table border="1" width="100%" style="font-size: 30px">

So, to change font-size just add
style="font-size: 30px"
with the wanted size instead of 30.

As for the font, this is more complicated. YOu can find the explanation in this topic crosstec.org/en/forums/3-breezingforms-f....html?start=6#219611 .

Let me know whether you have managed to make it work as you wanted.

Regards,

Mihaela
#234437
  • snappysites
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0

snappysites replied the topic: CREATION OF A PDF FILE

Thanks!

Last question (I hope):
My form has a signature field in it.
How do I reduce the size of the signature in the PDF output?
#234455
  • mihaela
  • Away
  • Administrator
  • Administrator
  • Posts: 1938
  • Karma: 67
  • Thank you received: 234

mihaela replied the topic: CREATION OF A PDF FILE

Hello again,

To reduce the size of signature in the PDF output in pdf_attachment.php try to replace
<?php echo $data[_FF_DATA_TYPE] == 'Signature' && file_exists(JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE]) ? '<img src="'.JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE].'" />' : nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8')); ?>
with this piece of code:
<?php echo $data[_FF_DATA_TYPE] == 'Signature' && file_exists(JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE]) ? '<img src="'.JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE].'" height="50" width="50"/>' : nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8')); ?>
That should do the trick. Just replace "50" with wanted height and width.

Let me know whether it works for you.

Regards,

Mihaela
#234460
Moderators: ForumSupporttomeperica
Time to create page: 0.073 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here