- Posts: 5
COMMUNITY FORUM
pdf extension for k2 items
- Pakito Oottoo Pamparampam Crew
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- Nilesh Toshniwal
- Topic Author
- Offline
- New Member
- Posts: 19
Please Log in or Create an account to join the conversation.
- Pakito Oottoo Pamparampam Crew
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- Pakito Oottoo Pamparampam Crew
- Offline
- New Member
- Posts: 5
Kind of... !JRoute::_(''); or something like that... ¿?
Please Log in or Create an account to join the conversation.
- Pakito Oottoo Pamparampam Crew
- Offline
- New Member
- Posts: 5
I created a file called pdf.php witch contains the following code:
<?phpif ($_GET) { $dircode = $_GET; $dir = base64_decode($dircode); Header("Location: ".$dir); }else{ echo "Error creando el PDF.";}?>
Then I call this file this way:
<div class="toolbarItem"> <?php $u = $mosConfig_live_site."index.php?option=com_k2&view=item&id=".$this->item->id."&format=pdf&tmpl=component"; $ucode = base64_encode($u); ?> <a class="link" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" href="pdf.php?pdf=<?php echo $ucode; ?>"> <img src="images/pdf.png" height="16px"/> PDF </a></div>
Hope this helps someone ;-)
Please Log in or Create an account to join the conversation.
- Marcos Peebles
- Offline
- New Member
- Posts: 5
Even better than just a single pdf page, worth looking!Cheers
Please Log in or Create an account to join the conversation.
- Pakito Oottoo Pamparampam Crew
- Offline
- New Member
- Posts: 5
Marcos Peebles said:
Hi all, Philip Locke as come out with this:http://www.content2pdf.com/
Even better than just a single pdf page, worth looking!Cheers
Please Log in or Create an account to join the conversation.
- b600 e6tr
- Offline
- New Member
- Posts: 2
Thanks
b600
Please Log in or Create an account to join the conversation.
- b600 e6tr
- Offline
- New Member
- Posts: 2
Can you please help with this. I am not able to generate the k2-item as pdf. This would be great help to me if you suggest me the steps.
Ruth Cheesley wrote: This looks great, I've got it working but it's not showing tables properly so may have to have a twiddle, also not showing the image.
Good start, I can't believe it's not a core part of K2 to be honest!
Ruth
Please Log in or Create an account to join the conversation.
- rosa qwe
- Offline
- New Member
- Posts: 4
but not exist !! :( :( :( :( :( :( :(
please help me .
Please Log in or Create an account to join the conversation.