Database content in header and Page Breaks

Phoca PDF - creating PDF documents in Joomla! CMS
mamies
Phoca Member
Phoca Member
Posts: 14
Joined: 04 May 2009, 03:30

Database content in header and Page Breaks

Post by mamies »

Hi Jan,

Just wondering if you know of a way to put database content into the header of the document.

Basically I want to put the modified date in the header as apart of our version control. :) Trying my best to eliminate the user from this task.

Also is it possible to put a piece of code in the content of the document that makes phocapdf think of a page break just so I can nicely seperate the headings.

Thanks,

Matthew
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Database content in header and Page Breaks

Post by Jan »

Hi, all this needs to be customized, see the code, you can see other "plugin" parts, so e.g. this can be used, or it can be hard coded. But no experiences for this as I didn't do such modifications :-(

Jan
If you find Phoca extensions useful, please support the project
mamies
Phoca Member
Phoca Member
Posts: 14
Joined: 04 May 2009, 03:30

Re: Database content in header and Page Breaks

Post by mamies »

I worked out how to do the page breaks anyway, I done this by adding the code <tcpdf method="AddPage" /> into the content of my document (It needs to be entered in the HTML side to work).

I spose for my other question, how would I go about being able to use PHP in the header and footer of PhocaPDFs. Or which file and where will i need to edit to allow this to work.

Thanks,

Matthew
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Database content in header and Page Breaks

Post by Jan »

Hi, there is no such option. In fact you then need some plugin which will translate php in article (e.g. rd add php) and this will be translated to PDF. In fact no idea how this can be done :-( :-( :idea:

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