Page 1 of 1

Database content in header and Page Breaks

Posted: 01 Apr 2010, 01:32
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

Re: Database content in header and Page Breaks

Posted: 01 Apr 2010, 20:45
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

Re: Database content in header and Page Breaks

Posted: 14 Apr 2010, 07:23
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

Re: Database content in header and Page Breaks

Posted: 15 Apr 2010, 18:36
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