Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

SOLVED !!! Add Site Logo To PDF & Printout

  • Rob Valk
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago - 10 years 7 months ago #78307 by Rob Valk
Dear Dam,

I want to add the Company Logo to the PDF and Printout Function. I looked at the forum and found :

You can add logo into the top of PDF and Printing page by modifying 2 bellow layouts
1. PDF Export: components > com_osproperty > helpers > layouts > propertypdf.php
2. Printing layout: components > com_osproperty > helpers > layouts > propertyprint.php


I downloaded these files, opened them with PHP Designer, but I can not figure out what to do to add the Company Logo. I am sorry but I am not a techie, far from :-):-).

Can you please tell me what to add/alter in these files to add the Company Logo to the PDF and Printout function?

Thanks upfront, Rob
Last edit: 10 years 7 months ago by Mr. Dam.

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

  • Rob Valk
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #78471 by Rob Valk
Replied by Rob Valk on topic Add Site Logo To PDF & Printout
Dear Dam,
is it possible for you guys to help me out here. This would mean a lot to me, thanks upfront.
Rob

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

More
10 years 7 months ago #78472 by Mr. Dam
Replied by Mr. Dam on topic Add Site Logo To PDF & Printout
Hi Rob,
With print layout
In file:
Code:
root > components > com_osproperty > helpers > layouts > propertyprint.php
Find:
Code:
<td width="50%" valign="bottom" style="text-align:left !important;padding-bottom:10px !important;padding-right: 10px;border:0px !important;border-bottom:1px solid #efefef !important;"> <?php if($configClass['logo'] != ""){ ?> <img src="<?php echo JURI::root()?><?php echo $configClass['logo']?>" style="height:70px;" /> <?php } ?> </td>

you can change by the logo picture, for example
Code:
<td width="50%" valign="bottom" style="text-align:left !important;padding-bottom:10px !important;padding-right: 10px;border:0px !important;border-bottom:1px solid #efefef !important;"> <img src="http://logolink.jpg" style="height:70px;" /> </td>

Thanks
Dam
The following user(s) said Thank You: Rob Valk

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

More
10 years 7 months ago #78474 by Mr. Dam
Replied by Mr. Dam on topic Add Site Logo To PDF & Printout
With PDF layout

Hi Rob,
With print layout
In file:
Code:
root > components > com_osproperty > helpers > layouts > propertypdf.php
If you open this file, you will see the HTML code, and you can add the IMG tag for your logo

Thanks
Dam
The following user(s) said Thank You: Rob Valk

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

  • Rob Valk
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #78479 by Rob Valk
Replied by Rob Valk on topic Add Site Logo To PDF & Printout
Thanks a lot Dam,

I am going to work on it this weekend and although being a no-know on technical issues, I will try hard and let you know.

Best regards, Rob

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

Moderators: Mr. Dam, Nguyen Phu Quan