Title: RE: [iText-questions] PdfCopy and text additions

You have some valid points there and I agree that PdfCopy should have a way of adding content. My idea here is to have two kinds of concatenaters/content adders:

- PdfCopy like to make an efficient use of memory. Read a document, change it, write it, get another. No form fields.

- PdfStamper like for flexibility. All the docs are in memory (except the streams) but everything can be done like adding and deleting fields, random access to pages, etc.

Best Regards,
Paulo Soares

    -----Original Message-----
    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]

    Sent:   Tuesday, January 13, 2004 13:37
    To:     [EMAIL PROTECTED]
    Subject:        [iText-questions] PdfCopy and text additions

    Hi
    I've been using the iText package for a while and it works wonderfully well
    (and fast)...but I've hit a problem
    ...basically I need to concatenate any number of PDF docs and stream them
    back to the users with a bit of extra text on each page, say for example
    'Page n of N' were each copied page has 'Page n of ' + template (Xobject)
    added to it and when all required docs have been added the template is
    written to with total pages. Sounds straight forward huh?
    ...PdfCopy does this well with a minimum memory usage - only one PDF is in
    memory at a time as PdfCopy just writes each page out...great...but the
    PdfImportedPage that is added to PdfCopy doesn't allow any additional
    text...I don't want to add the PdfImportedPage objects as templates - via
    addTemplate() as it defers the streaming out of PDF bytes until
    PdfCopy.close()...
    Also PdfContentByte.add(PdfContentByte) doesn't 'show' the added content -
    why not?
    What I'm asking may be impossible due to the nature of object references,
    etc in the resultant PDF doc, but it doesn't sound unreasonable...basically
    I'm looking for a combination of PdfCopy (merges existing PDFs) + PdfStamper
    (allows an existing PDF to be written to)...
    Thanks in advance
    steve


    ------------------------------------------------------------------------
    For more information about Barclays Capital, please
    visit our web site at http://www.barcap.com.


    Internet communications are not secure and therefore the Barclays
    Group does not accept legal responsibility for the contents of this
    message.  Although the Barclays Group operates anti-virus programmes,
    it does not accept responsibility for any damage whatsoever that is
    caused by viruses being passed.  Any views or opinions presented are
    solely those of the author and do not necessarily represent those of the
    Barclays Group.  Replies to this email may be monitored by the Barclays
    Group for operational or business reasons.

    ------------------------------------------------------------------------



    -------------------------------------------------------
    This SF.net email is sponsored by: Perforce Software.
    Perforce is the Fast Software Configuration Management System offering
    advanced branching capabilities and atomic changes on 50+ platforms.
    Free Eval! http://www.perforce.com/perforce/loadprog.html
    _______________________________________________
    iText-questions mailing list
    [EMAIL PROTECTED]
    https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to