It's my first day evaluating Prince, and after installing it on my iMac, plus the php interface I am able to generate a pdf from a very simply HTML page. So far so good!
But my problem is that the content, which I would expect to start at the top left of the pdf - as in the HTML page - stubbornly remains printing some 70px down and 90px in from the left.
My page size needs to be A4 as the project involves print-ready pdfs. But that's in the future - right now I would be happy to find out how to fill my HTML page so that it fills the resulting A4 pdf.
CSS:
@page {
marks: crop;
size: A4;
}
img{
position: absolute;
top: 0px;
left: 0px;
width: 681px;
height: 148px;
}
Example of generated pdf attached.
Many thanks,
Regards,
Patrick
But my problem is that the content, which I would expect to start at the top left of the pdf - as in the HTML page - stubbornly remains printing some 70px down and 90px in from the left.
My page size needs to be A4 as the project involves print-ready pdfs. But that's in the future - right now I would be happy to find out how to fill my HTML page so that it fills the resulting A4 pdf.
CSS:
@page {
marks: crop;
size: A4;
}
img{
position: absolute;
top: 0px;
left: 0px;
width: 681px;
height: 148px;
}
Example of generated pdf attached.
Many thanks,
Regards,
Patrick