Page 1 of 1
Possible no margins for header
Posted: 27 Apr 2016, 18:04
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 ?
Re: Possible no margins for header
Posted: 28 Apr 2016, 09:24
by gulp
Also is there a way to keep the default header (with article title) but adding a custom header/image ?
Re: Possible no margins for header
Posted: 28 Apr 2016, 12:23
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
Re: Possible no margins for header
Posted: 28 Apr 2016, 16:30
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
Re: Possible no margins for header
Posted: 29 Apr 2016, 11:19
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 ?
Re: Possible no margins for header
Posted: 29 Apr 2016, 14:51
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.
Jan
Re: Possible no margins for header
Posted: 02 May 2016, 09:07
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
Re: Possible no margins for header
Posted: 08 May 2016, 16:15
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
Jan