Welcome Guest Search | Active Topics | Sign In | Register

eo.pdf table height 100% Options
Stefan Prodan
Posted: Wednesday, August 24, 2011 9:33:57 AM
Rank: Newbie
Groups: Member

Joined: 8/24/2011
Posts: 6
Hello,

I would like to use your html to pdf in order to generate a pdf document composed of a table that needs to be expanded to the length of an A4 page, even if the table does not have enough content for that. Using the following HTML, the table stretches in the browser to fill the window length:

Quote:

<table height="100%" style="border-style:solid">
<tr>
<td>something</td>
</tr>
</table>

However, I cannot replicate the same behavior when converting the HTML to PDF, no matter how I set the output area. The height of the table will not pass a certain threshold. Is there a setting that I am missing or is it not possible without specifying the height in pixels?
eo_support
Posted: Wednesday, August 24, 2011 9:38:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to use fixed height value, for example, height="1000px". 100% height won't even work in a browser. A browser calculate the document's height based on the content's height. So you cannot let the content's height depends on the document's height.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.