The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Jayu15 (1) [Avatar] Offline
I am writing a PDF document which has number of datatables (a com.lowagie.text.pdf.PdfPTable)

- Each page of the PDF has an header and footer.
- Each data table starts on a new page before which there is a one text line, table-title (a
com.lowagie.text.Paragraph) is present.
- This data table spans over number of pages.
- Depending on the number of data columns the datatable is written either on Landscape or Portrait page.

The problem I am facing is, whenever a data table on Landscape page ends at the very bottom of the page, the next datatable on the Portrait page gets distorted.

The table-title (a Paragraph) along with the header comes down at the center of the Portrait page thus overlaping the datatable.

ALso the header and footer on the Portrait page are cut from the right hand side of the page.

I am using below code to change from Landscape to portrait and vice versa:

Could somebody help me to solve this overlapping problem?

Thanks in advance...
blowagie (284) [Avatar] Offline
Re: Problem of data overlapping when moving form Landscape to Portrait.
Post the question to the iText mailing list please.