find the doc to modify pdf

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 3 weeks ago #7 by Christopher Mavros
Replied by Christopher Mavros on topic find the doc to modify pdf
In order to change styles in the PDF, like the image width, title color and similar elements, you need to write inline styles in the item elements. Some experience of HTML is required.
You can create a template override of the default_item.php file and rename it to pdf_item.php.

In that file, you can edit the img element in line 52 and write style="width: 50px" to set a custom image width.
You can also change the a element in line 62 (or wrap the text of line 64 in a <p> element) and add style="color: #f00; font-size: 25px" to make it larger and red.

Let me know if that helps.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

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

More
1 year 3 weeks ago #8 by ANT
Replied by ANT on topic find the doc to modify pdf
i did it,

but I have this "Something went wrong with creating the PDF file. Please try again later."
It is due to my override of pdf_item.php
( the qrcode code added)

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

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 2 weeks ago #9 by Christopher Mavros
Replied by Christopher Mavros on topic find the doc to modify pdf
It is possible.
Can you please open your Javascript console and see if the problem is reported?
If a fix is not evident, please post your findings here.

Thanks again.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

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

Moderators: Christopher Mavros