Possible no margins for header

Phoca PDF - creating PDF documents in Joomla! CMS
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Possible no margins for header

Post by gulp »

Is there a way to set no margin for header, then to make an image cover all the width of the page even if the text/content of the pdf will be bonded by margins ?
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Re: Possible no margins for header

Post by gulp »

Also is there a way to keep the default header (with article title) but adding a custom header/image ?
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Re: Possible no margins for header

Post by gulp »

It seems that when I set a header html by the form, the header title get lost, but these are different kind of data,
the one is the article title, the 2nd is the "header_data" html set by the form
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Possible no margins for header

Post by Jan »

Hi, no, you can add either the standard article header or the one customized - there is no inclusion for both of them :-(

Jan
If you find Phoca extensions useful, please support the project
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Re: Possible no margins for header

Post by gulp »

Well thank you anyway,
and what about how to set margins for header ?
I could also manage to dig into code to solve it if you could suggest me something.
I suppose that the pdf class set the margins while creating the pdf, what if I force inside the header function to clear headers and after this reset headers to what is chosen by default for the document ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Possible no margins for header

Post by Jan »

Hi, you can set margins in options of plugin and of course if you set customized header (html) then you can set margin for the html content too. :idea:

Jan
If you find Phoca extensions useful, please support the project
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Re: Possible no margins for header

Post by gulp »

This is a graphical problem:
I would like to make a pdf layout with an header an body with different margins, this will let me put an image on the header that spans the full width of the sheet, even if the body text will be inside narrower margins
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Possible no margins for header

Post by Jan »

Hi, hmm, then I think, the quickest way is to do directly in code and add instruction to tcpdf directly - add the object with the exact coordinations (x,y, size width, size height) with TCPDF methods :idea:

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