I have the following code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PDF Page</title>
<style type="text/css">
@page {
size: 450px 750px landscape;
margin: 0px;
}
</style>
</head>
<body style="margin: 0px;">
<table cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td valign="top"><p><img width="450px" alt="ImageName" src="http://upload.wikimedia.org/wikipedia/commons/6/6c/Greenfield_California.JPG"></p></td>
<td valign="top"><table width="300px" border="0">
<tbody>
<tr>
<td valign="top" style="margin-top: 20 px;"><p></p>
<p> Text to dispaly</p>
<p></p></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</body>
</html>
What gets created is a PDF with a white margin across the whole the top edge and a page that is not the full width, so the right cell gets cut off.
What am I missing?
Thanks,
Paul.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PDF Page</title>
<style type="text/css">
@page {
size: 450px 750px landscape;
margin: 0px;
}
</style>
</head>
<body style="margin: 0px;">
<table cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td valign="top"><p><img width="450px" alt="ImageName" src="http://upload.wikimedia.org/wikipedia/commons/6/6c/Greenfield_California.JPG"></p></td>
<td valign="top"><table width="300px" border="0">
<tbody>
<tr>
<td valign="top" style="margin-top: 20 px;"><p></p>
<p> Text to dispaly</p>
<p></p></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</body>
</html>
What gets created is a PDF with a white margin across the whole the top edge and a page that is not the full width, so the right cell gets cut off.
What am I missing?
Thanks,
Paul.
Edited by parisi