OS Property support center

Change PDF layout of property

  • Edwin van 't Hek
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #82978 by Edwin van 't Hek
Change PDF layout of property was created by Edwin van 't Hek
Is there a way to change the way the PDF is displayed, change fonts size and order of information being displayed?

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

More
8 years 10 months ago #82995 by Mr. Dam
Replied by Mr. Dam on topic Change PDF layout of property
Hi Edwin,
You can change the PDF layout in file: root > components > com_osproperty > helpers > layouts > propertypdf.php
Thanks
Dam

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

  • Edwin van 't Hek
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #87834 by Edwin van 't Hek
Replied by Edwin van 't Hek on topic Change PDF layout of property
How can I limit the number of photo's shown on the PDF print layout and how can I display them in a certain order. I would like to get one larger picture and 5 smaller pictures surrounding it. Like the scheme below where XXX is the large picture and 000 and 888 the smaller ones

XXXXX 000
XXXXX 000
XXXXX 888
XXXXX 888
000 888 000
000 888 000

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

More
8 years 7 months ago #87904 by Mr. Dam
Replied by Mr. Dam on topic Change PDF layout of property
Hi,
The pictures are being shown by ordering of them, you can find the ordering values of pictures when you modify property data.
To limit the pictures to be shown on PDF layout, you can open file: root > components > com_osproperty > helpers > layouts > propertypdf.php
Find code
for($i=0;$i<count($photos);$i++){
and you can change "count($photos)" by specific number like 3 or 4, 5..etc
Good luck
Dam
The following user(s) said Thank You: Edwin van 't Hek

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

  • Edwin van 't Hek
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #88016 by Edwin van 't Hek
Replied by Edwin van 't Hek on topic Change PDF layout of property
Thank you, I managed to change the amount of photos shown.

One more question, on the bottom of the page there is a page count, 1/1 in my case since I want only one page. How do I remove that? And how can I change the font color of the <?php echo strtoupper(JText::_('OS_PROPERTY_INFORMATION'));?>

I did change the background but the text itself stays black

<td width="100%" colspan="2" BGCOLOR="#632775" style="color: #FFFFFF"><strong> <?php echo strtoupper(JText::_('OS_PROPERTY_INFORMATION'));?>: </strong></td>

Thank you in advance.

Edwin

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

Moderators: Mr. DamNguyen Phu Quan