Please post all pre-sales questions of all products on this forum

Export PDF - Print Logo with TCPDF

  • Martina Becker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 months ago #40194 by Martina Becker
Export PDF - Print Logo with TCPDF was created by Martina Becker
Hi Dam,

I would like to export my Logo to PDF.
I have to use the TCPDF-function due to German characters in the text.
Is there a solution to do this?

Many greetings
Martina

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

More
10 years 3 months ago #40198 by Mr. Dam
Replied by Mr. Dam on topic Re: Export PDF - Print Logo with TCPDF
Hi Martina,
It means you want to add your logo at the top of pdf file?
Thanks
Dam

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

  • Martina Becker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 months ago #40221 by Martina Becker
Replied by Martina Becker on topic Re: Export PDF - Print Logo with TCPDF
Hi,
yes you are right.
How can I manage it?

Greetings
Martina

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

More
10 years 3 months ago #40223 by Mr. Dam
Replied by Mr. Dam on topic Re: Export PDF - Print Logo with TCPDF
Hi Martina,
In version 2.6, you can modify the layout of PDF export in file
components > com_osproperty > helpers > layouts > propertypdf.php

<table width="100%">
<tr>
<td>
<h1>
<?php echo $configs[0]->fieldvalue?>
</h1>
<BR />
<?php echo $configs[1]->fieldvalue;?>
<BR />
<?php echo $configs[2]->fieldvalue;?>
<BR />
<a href="mailto:<?php echo $configs[3]->fieldvalue;?>"><?php echo $configs[3]->fieldvalue;?></a>
<BR />
</td>
</tr>
</table>

You can edit to add the <img> tag (logo) into above code. For example:

<table width="100%">
<tr>
<td style="text-align:center;">
<center>
<img src="logo_path">
</center>
<h1>
<?php echo $configs[0]->fieldvalue?>
</h1>
<BR />
<?php echo $configs[1]->fieldvalue;?>
<BR />
<?php echo $configs[2]->fieldvalue;?>
<BR />
<a href="mailto:<?php echo $configs[3]->fieldvalue;?>"><?php echo $configs[3]->fieldvalue;?></a>
<BR />
</td>
</tr>
</table>

Good luck
Dam

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam