Op 21/01/2011 12:23, hemant thard schreef:
> but by table height
> (head.getTotalHeight()) gives zero.
See page 103, the height of cells or a table is zero as long as you
don't define a total width.
As soon as you define a total width, the height is correct.
> 3. Also I tried to reserve the heigh
Hi Nurettin ,
Let me put my requirement in front of you.
What i am trying to do here is to create a template where the user configure
the PDF layout using XML.
My sample template for header looks something like this :
here as you see, i have declared height attribut
That solely means that you are not scaling your image right. What do you use
to scale header image that gets overflown? Please share that portion of your
code.
On Wed, Jan 19, 2011 at 4:29 AM, hemant thard wrote:
>
> Thanks for the Reply Nurettin.
> Sorry for late response.
>
> As you said,
> I r
Thanks for the Reply Nurettin.
Sorry for late response.
As you said,
I reserved the space by extending my Document border
Document document = new Document(PageSize.A4, 50, 50, headerHeight,
footerHeight);
But this doesn't seems to be a prefect solution though. Re
The only way to avoid content overflowing is that you reserve enough space
in the header for the content. For image you might scale it any width and
height using methods defined on itext Image object, pretty straightforward!
Doing the work onStart or onEnd does not make any difference in terms of
Thanks for the Reply Nurettin.
You were right:
1. Simply defining height in defaultcell() doesnt work.
2. Have tried to fixed height of both cells with runtime value. Content is
getting overflown.
fortunately, scaling of Image is not a problem for me in this case.
What i need help on is
1. whi
When you are explicityly creating cells and providing to PdfPTable
operations on getDefaultCell() will not work.
You need to set fixed height on both cells image and text ones. However,
please note that your current content is overflowing the height you would
like to limit it to. It seems to me t
Hi ,
I am having problem setting up height in PDF Header.
Here's my code for setting up header :
public class MyClass extends PdfPageEventHelper
{
public void onStartPage(PdfWriter writer, Document document) {
try {
Rectangle page = document.getPageSize()