Title: RE: [iText-questions] Itext - PdfPageEvent.onPageEnd(...) - Problem

Don't put any Document.add() in a page event.

Best Regards,
Paulo Soares

    _____________________________________________
    From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Sch�fer

    Sent:   Wednesday, July 28, 2004 5:55 PM
    To:     [EMAIL PROTECTED]
    Subject:        [iText-questions] Itext - PdfPageEvent.onPageEnd(...) - Problem

    Hello.

    My Name is Alexander Sch�fer.
    My team an I would like to use iTextPdf to build PDF documents out of our application.

    But we experienced some problems when using this library.

    We would like to paint a header on each of our pdf pages. This header contains a simple jpeg graphics element.
    The same document produces a table that can span over multiple pages. The table also contains a header described by 4 cells and 2 rows.

    if we add the document header (graphics) in the onStartPage() method, the complete tables is moved down 1 row, but its background stays at the same position.

    While reading the tutorial, i saw the paragraph that suggests to put complicated header information into the onPageEnd-method.

    So we did.

    But when whe start the application, we always experience a java.lang.StackOverflowException. This exception only occurs while processing the onPageEnd-Exception.

    Is there an Error?

    We hope, that you may help ussolving this problem.

    Kind regards

    Alexander Sch�fer
    Software Developer
    IT Trainer

Reply via email to