Pagebreak

Phoca PDF - creating PDF documents in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Pagebreak

Post by Jan »

Hi, there is a problem, because we are displaying content created by Joomla!

There is no problem to add Page Breaks, e.g. in Phoca Restaurant Menu, you can use pagebreak tag [np] and you get new page, see pdf e.g. here:
https://www.phoca.cz/restaurantmenudemo/en/wine-list

But Phoca Restaurant Menu is ready to hide the [np] tag in case, the content is displayed in html. But there is no such behaviour in Joomla! content, so you need to hardcode Joomla! content (to hide some of your tag in content html) and then you need to hardcode tcpdf class to take your tag and create new page.

So you need to add such tag where you want to add new page:

<tcpdf method="AddPage" />

but you need to hardcode it so it will be not displayed in html

Jan
If you find Phoca extensions useful, please support the project