By Rob on Thursday, 10 September 2015
Posted in General Issues
Replies 15
Likes 0
Views 1.1K
Votes 0
Hello,

I am asking if the Phoca PDF plugin issue was ever resolved moving forward with EasyBlog 5.0?

I installed Phoca PDF on a 3.9 installation but was receiving a blank page when the article was being converted to PDF.

Error received:

Fatal error: Call to undefined method RuntimeException::get() in /var/www/techlick.com/public_html/libraries/legacy/error/error.php on line 536

I disabled the Phoca PDF since I do not want my visitors to see this. Please let me know what you think. Thank you for your time.

Regards,
Robert
Hey Rob,

Unfortunately PhocaPDF has been really ignorant over this . We have contacted them numerous times before and their own plugin system only works with Joomla articles and it can't be plugged in to work with other extensions unless we hack their core files
·
Friday, 11 September 2015 02:37
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Rob,

may i know what Joomla version you using now?

Perhaps you can provide us with your Joomla backend and FTp access so we can better have a look?
·
Thursday, 10 September 2015 22:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I mentioned the version in my original post:

I installed Phoca PDF on a 3.9 installation


Question is if it works with 5.0 EasyBlog install?

Not sure if I will roll it out if it doesn't work.

Regards,
Rob
Rob
·
Thursday, 10 September 2015 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark - I will see if I can get it to work and will let you know. So far the only thing I am getting is a white screen and that error message.

I'll let you know if I take it any further and if I can get a fix. Thanks again.
Rob
·
Friday, 11 September 2015 08:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Rob,

You are most welcome. Keep us updated and see how it goes.
·
Friday, 11 September 2015 11:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Did you have any luck with this? We enabled the PDF integration with Phoca in Easyblog. But it's just outputting a blank PDF.
·
Thursday, 25 February 2016 08:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Stephan,

Unfortunately we are not able to find a proper way to integrate phoca pdf into our easyblog components yet currently due to Phoca PDF architecture that are not allowing it to be integrate with other components other than joomla articles . We might as well remove this feature in the future but we will keep on trying to find a way to integrate it properly.

Thanks for your kind understanding.
·
Thursday, 25 February 2016 13:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Are any news on that issue?
I need to let users to export easy blog posts (at least the one being viewed but a set of them would be much better, if that were possible) by adding a pdf icon. Maybe there are no good news about using PhocaPDF for that purpose, If not, could someone please give me some advice about how to implement myself this functionality?
I don't know how feasible it would be to gather that information from the EasyBlog tables.

Thanks in advance.
·
Wednesday, 28 June 2017 23:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Javier,

Currently also not possible to support to show PDF in Easyblog.
·
Thursday, 29 June 2017 11:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thanks for your quick answer.
Do you know if it might be possible to develop a PHP script that gets that information from the EasyBlog tables in order to generate a html page that can converted into a PDF file?

Best regards
Javier
·
Thursday, 29 June 2017 14:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Javier,

It'll be tricky as you need to use huge libraries like TCPDF to help you with this.
·
Thursday, 29 June 2017 20:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

thank you! If there is no simpler alternative, I'll try it by using this library. My main concern is about being able to recover this information from the database tables. I don't exactly know how the html content of a user's post is stored in the database.

Kind regards
Javier
·
Thursday, 29 June 2017 22:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Javier,

To get the content of the post, it's actually as simple as this,

[gist]
<?php
$post = EB::post($id);
echo $post->getContent();
?>
[/gist]

Getting the content is really not the difficult part. The hardest part is getting it to be rendered on PDF correctly because PDF is known to be a pain when rendering html codes.
·
Thursday, 29 June 2017 22:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark!

thanks again for the information. I've been trying using Phoca PDF and modifying some code. I've got to make it work with Joomla Articles but not with the EasyBlog blog entries. I'll try by getting the content of the posts with the code you wrote and using the TCPDF library to render the HTML code into PDF.

Kind regards

Javier
·
Monday, 03 July 2017 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Keep us update if you need any further assistance on this.
·
Monday, 03 July 2017 17:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post