I found the solution to my number 2. problem; were the first page has
one size and the others have something different. I was setting the page
size after creating the document instance with the document setPageSize
method. It is when I set the page size at the creation of the instance
through the Document constructor that every page has the same size. 

-----Original Message-----
From: Lopes, James 
Sent: Wednesday, November 12, 2008 7:47 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] I want a new page to be generated even if
thecureent page is not full

Here is some sample code that illustrates my two questions 

1. I want a new page to be generated even if the current page is not
full
2. Were the size of the first page is smaller the others.

The sample contains a main and a class that builds the pdf. There is
sample data as wells as resources. The data contains four groups, with
each group to be placed on a single page. The first page will the Logo,
welcome bar and header. The other groups pages are to have only the Logo
and welcome bar. Each page break will be on the group title. I the html
there is a tag pattern of <br/><hr/><br/> that is use to identify were
to activate the newpage. I'm also having trouble lining up the first
question item with the others. These items are in a Paragraph and I have
set the left indent for the Paragraph. Why didn't the first item line
up? 

-----Original Message-----
From: 1T3XT info [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2008 7:21 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] I want a new page to be generated even if
the cureent page is not full

Lopes, James wrote:
> So I'm parsing an html page, that has the html tag HR as page 
> boundaries.  My parse catches the HR tag and call newPage on the 
> document object. The data fills the previous page and does not begin
in 
> the new page.
> 
> I'm using the SAX parser from the FooBarFlyer example. The data gets 
> written to the PDF in order I would like the data to break on the next

> page.  

Please provide an example that reproduces the problem.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to