⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Preview pdf file in my table list



alabi

alabi
  • profile picture
  • Member

Posted 14 August 2017 - 05:28 AM

How can i display a pdf file in Grocery crud list? Like display an uploaded image?

And is it possible to do that without change grocery crud core?

 

[attachment=1230:1502687418537.jpg]


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 15 August 2017 - 06:41 AM

Yes it should be possible but for that you need to generate preview image / thumbnail for the PDF output. You may easily do the same in local machine .. but doing it on server might not be a straight forward job. . as it will need to have some components installed in system .. like ghostscript and stuff..

here is a link u can follow for the same....

 

https://gist.github.com/umidjons/11037635

 

Well.. as for controlling the output in the crud - list, it will be possible by making a callback to the column and showing in the generated thumbnail.

 

Happy GCing :)


alabi

alabi
  • profile picture
  • Member

Posted 16 August 2017 - 07:37 AM

Wow Amit, Thanks for the answer.

I appreciate that  :)