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

Phoca PDF - creating PDF documents in Joomla! CMS
Gai-Sensei
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 19 Sep 2018, 12:16

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

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Post Reply