- Posts: 15920
COMMUNITY FORUM
pdf extension for k2 items
- Krikor Boghossian
- Offline
- Platinum Member
Why don't you try a service like www.printfriendly.com/button?
You can c/p the snippet in your item.php.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- rosa qwe
- Offline
- New Member
- Posts: 4
but i need pdf Button for save item text & img in user(visitor) computer !
i wating to your answer ....
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
That what this button does, it prints the page to a .pdf file on your PC.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Marcio
- Offline
- New Member
- Posts: 2
I got the view.pdf file, but the txt code is not available for download.
Do you have it, or meanwhile since this years have found another good solution for the PDF button in K2?
Thanks
Please Log in or Create an account to join the conversation.
- Pero Mero
- Offline
- New Member
- Posts: 8
Krikor Boghossian wrote: Hello qwe,
Why don't you try a service like www.printfriendly.com/button?
You can c/p the snippet in your item.php.
Ok I have code
<script>var pfHeaderImgUrl = '';var pfHeaderTagline = '';var pfdisableClickToDel = 0;var pfHideImages = 0;var pfImageDisplayStyle = 'none';var pfDisablePDF = 0;var pfDisableEmail = 0;var pfDisablePrint = 0;var pfCustomCSS = '';var pfBtVersion='1';(function(){var js, pf;pf = document.createElement('script');pf.type = 'text/javascript';if('https:' == document.location.protocol){js='pf-cdn.printfriendly.com/ssl/main.js'}else{js='http://cdn.printfriendly.com/printfriendly.js'}pf.src=js;document.getElementsByTagName('head')[0].appendChild(pf)})();</script><a href="www.printfriendly.com" style="color:#6D9F00;text-decoration:none;" class="printfriendly" onclick="window.print();return false;" title="Printer Friendly and PDF">cdn.printfriendly.com/button-print-grnw20.png" alt="Print Friendly and PDF"/>
and I wish to put that code in item.php which is located in joomla 3.2.2 -
public_html/templates/ja_mero/html/com_k2/templates/ja_mero/item.php
Where in file to paste that code? I try to paste everywhere but nothing happend
Thank you for your answer
Please Log in or Create an account to join the conversation.
- Pero Mero
- Offline
- New Member
- Posts: 8
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
This is up to you. Since you are using a custom script you need to check that your page doesn't have any javascript errors and that the button is displayed.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Yannick Lämmel
- Offline
- New Member
- Posts: 14
I found a Voting for a Wishlist with Phoca-PDF-functions
I really like to post ist here, because it would make K2 & Phoca very much better!!!
phoca.uservoice.com/forums/12726-phoca-pdf/filters/hot
Please Log in or Create an account to join the conversation.
- Alexis
- Offline
- New Member
- Posts: 4
I'm in the same situation and need to generate a pdf from a k2 item with tcpdf.
Where can i find your examples as view.pdf.php
Thx
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
This would require custom coding.
An alternative would be www.printfriendly.com/button
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.