Page 1 of 1

Looking for Documentation / How to using Phoca PDF in Component/Plugin (JDocumentPDF alternative)?

Posted: 19 Sep 2018, 12:32
by Gai-Sensei
Hello,
i want to Create a PDF not from an article or something, only from data of database.
But i don't found any documentations in this directions.

Google sent me with the JDocumentPDF (old function from J!1.5) search request directly to Phoca PDF.
Can you tell me, if this is the correct component for my project?

Re: Looking for Documentation / How to using Phoca PDF in Component/Plugin (JDocumentPDF alternative)?

Posted: 20 Sep 2018, 16:32
by Jan
Hi, Phoca PDF works this way:

- it has a component, which manages all the necessary data like TCPDF library, etc.
- and then the plugins which are specific plugins for specific parts (like plugin for artilce, Phoca Restaurant Menu or Phoca Cart)

So if you load some data from database, the best way is to write own plugin (similar to existing plugins) where you just load the database and prepare the data for rendering. And when such plugin will be integrated to Phoca PDF it can just make the PDF of your data.

Jan