I think javascript and ajax is limited. When I read the When to use the
iText, one of the answers is
The content isn't available in advance: it's calculated based on user input
or real-time database information.
On Wed, Mar 9, 2011 at 2:07 PM, <
[email protected]> wrote:

> Send iText-questions mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/itext-questions
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of iText-questions digest..."
>
>
> Today's Topics:
>
>   1. Re: TOC with iText (Mark Storer)
>   2. Re: columnText verify table fits on current page (Mark Storer)
>   3. Re: Pdf encryption (1T3XT BVBA)
>   4. Re: HASH, SMARTCARD and PKCS#7 detached (1T3XT BVBA)
>   5. Re: TOC with iText (M. Niedermair)
>   6. Three Multiple drop down list (Marks Nkosi)
>   7. Re: Three Multiple drop down list (Alexis Pigeon)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 8 Mar 2011 15:03:45 -0800
> From: "Mark Storer" <[email protected]>
> Subject: Re: [iText-questions] TOC with iText
> To: "Post all your questions about iText here"
>        <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain;       charset="us-ascii"
>
> Worst case should be two passes.
>
> Pass #1: Build everything but the TOC.
> Pass #2: INSERT N pages with PdfStamper.insertPage( int, Rectangle ),
> and build link annotations. Rather than building the links yourself, an
> instance of ColumnText might do the trick where its static methods might
> not.
>
> You'll probably want to use a "PdfPageLabels" to number the TOC pages i,
> ii, iii... and the remaining pages 1, 2, 3...  That way the page numbers
> written into your TOC are correct and you don't need to worry about N
> TOC pages throwing everything off.
>
> If you can calculate how many TOC entries you have, you should be able
> to predetermine the number of pages you have, but that could require two
> passes over your data rather than over the PDFs... Could be an
> improvement, might not.  Only you can know that.
>
> --Mark Storer
>  Senior Software Engineer
>  Cardiff.com
>
> import legalese.Disclaimer;
> Disclaimer<Cardiff> DisCard = null;
>
>
>
> > -----Original Message-----
> > From: M. Niedermair [mailto:[email protected]]
> > Sent: Tuesday, March 08, 2011 9:06 AM
> > To: Post all your questions about iText here
> > Subject: Re: [iText-questions] TOC with iText
> >
> > Hi,
> >
> > > First pass:
> > > * Reserve space for the table of contents on a blank page
> >
> > the problem is, that I dont know at the beginnig, how many
> > pages I need for the TOC.
> >
> > > * Create an ArrayList of objects containing text and page numbers
> > > * Add objects to the ArrayList as I encounter "interesting" content
> > > that should be added to the TOC
> > > * Finalize the document
> > >
> > > Second pass:
> > > * Use PdfStamper to add the TOC content to the existing
> > PDF, in the blank space I reserved in the first pass.
> >
> > Can I use internal gotos a la PDFAction.gotoLocalPage() or a
> > Anchor with a imported page from PdfStamper?
> >
> > Do you use "table of figure", index, ...
> >
> > In the worst case, I must use three passes to finish the document.
> >
> > Thanks
> > Michael
> >
> >
> > --------------------------------------------------------------
> > ----------------
> > What You Don't Know About Data Connectivity CAN Hurt You This
> > paper provides an overview of data connectivity, details its
> > effect on application quality, and explores various
> > alternative solutions. http://p.sf.net/sfu/progress-d2d
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > iText(R) is a registered trademark of 1T3XT BVBA.
> > Many questions posted to this list can (and will) be answered
> > with a reference to the iText book:
> > http://www.itextpdf.com/book/ Please check the keywords list
> > before you ask for examples: http://itextpdf.com/themes/keywords.php
> >
> >
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 8 Mar 2011 15:57:41 -0800
> From: "Mark Storer" <[email protected]>
> Subject: Re: [iText-questions] columnText verify table fits on current
>        page
> To: "Post all your questions about iText here"
>        <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain;       charset="us-ascii"
>
> An instance of ColumnText can call go(false) to simulate/calculate its
> eventual layout:
>
> http://api.itextpdf.com/com/itextpdf/text/pdf/ColumnText.html#go(boolean
> )
>
> --Mark Storer
>  Senior Software Engineer
>  Cardiff.com
>
> import legalese.Disclaimer;
> Disclaimer<Cardiff> DisCard = null;
>
>
>
> > -----Original Message-----
> > From: Jason Berk [mailto:[email protected]]
> > Sent: Tuesday, March 08, 2011 2:19 PM
> > To: Post all your questions about iText here
> > Subject: [iText-questions] columnText verify table fits on
> > current page
> >
> > Can someone show me how to use ColumnText to test if a table
> > fits in the remaining space of a page?  Will this give me
> > different results then the much simpler:
> >
> > if(myTable.getTotalHeight() >
> > writer.getVerticalPosition(true) - doc.bottomMargin()){
> > doc.newPage(); }
> >
> > wasn't sure if getTotalHeight() accounted for header rows.
> >
> > I need to add a table and a bookmark to the top of my table
> > and the table can't be split across pages.
> >
> > Jason
> > This is a transmission from Purdue Federal Credit Union
> > (Purdue Federal) and is intended solely for its authorized
> > recipient(s), and may contain information that is
> > confidential and or legally privileged. If you are not an
> > addressee, or the employee or agent responsible for
> > delivering it to an addressee, you are hereby notified that
> > any use, dissemination, distribution, publication or copying
> > of the information contained in this email is strictly
> > prohibited. If you have received this transmission in error,
> > please notify us by telephoning (765)497-3328 or returning
> > the email. You are then instructed to delete the information
> > from your computer. Thank you for your cooperation.
> >
> >
> > --------------------------------------------------------------
> > ----------------
> > What You Don't Know About Data Connectivity CAN Hurt You This
> > paper provides an overview of data connectivity, details its
> > effect on application quality, and explores various
> > alternative solutions. http://p.sf.net/sfu/progress-d2d
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > iText(R) is a registered trademark of 1T3XT BVBA.
> > Many questions posted to this list can (and will) be answered
> > with a reference to the iText book:
> > http://www.itextpdf.com/book/ Please check the keywords list
> > before you ask for examples: http://itextpdf.com/themes/keywords.php
> >
> >
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 09 Mar 2011 09:46:54 +0100
> From: 1T3XT BVBA <[email protected]>
> Subject: Re: [iText-questions] Pdf encryption
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Op 8/03/2011 22:28, Balaji, Madhusudhan (Citco) schreef:
> > Hi,
> >
> > I have a quick question related to our current application. We need to
> encrypt pdf and currently using 128 bit encryption using PDFStamper and
> PdfWriter.ENCRYPTION_AES_128. This is working as expected and we are using
> client certificate to do this. Now we have new requirement to move away from
> client certificates and use different authentication mechanism. I would like
> to know if it is possible to encrypt PDF documents using Signfort or any
> other mechanism other than client cert. Please let me know.
>
> Password encryption and certificate encryption are described in
> ISO-32000-1 and supported by iText. Other companies may have other
> solutions (DRM and stuff), but those aren't described in ISO-32000-1 and
> therefore not supported in iText.
>
> Note that, when I Google for Signfort, I find a solution to add digital
> signatures. I didn't find any product named "Signfort" that is able to
> encrypt a PDF. If you're referring to products from Arcot, please note
> the difference between Signfort (digital signatures) and SEND (Secure
> Electronic Notification and Delivery).
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 09 Mar 2011 09:50:41 +0100
> From: 1T3XT BVBA <[email protected]>
> Subject: Re: [iText-questions] HASH, SMARTCARD and PKCS#7 detached
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Op 8/03/2011 19:32, [email protected] schreef:
> > Hi,
> >
> > I talked myself into providing sample code for signing a PDF with a PKCS7
> signature using a smartcard. So here it is :
> Thanks!
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 09 Mar 2011 10:05:49 +0100
> From: "M. Niedermair" <[email protected]>
> Subject: Re: [iText-questions] TOC with iText
> To: Post all your questions about iText here
>        <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> > Worst case should be two passes.
>
> No!
> first pass:
> - TOC is empty
> - table of figure is empty
> - index is empty
> second pass:
> - TOC 3 pages (the table of figure is not yet counted)
> - TOF 2 pages
> - 5 pages delta
> third pass:
> - now TOC is correct
> - now TOF is correct
> - now index is correct
>
> > Pass #1: Build everything but the TOC.
> > Pass #2: INSERT N pages with PdfStamper.insertPage( int, Rectangle ),
> > and build link annotations. Rather than building the links yourself, an
> > instance of ColumnText might do the trick where its static methods might
> > not.
> Thats a good idea.
>
> > You'll probably want to use a "PdfPageLabels" to number the TOC pages i,
> > ii, iii... and the remaining pages 1, 2, 3...  That way the page numbers
> > written into your TOC are correct and you don't need to worry about N
> > TOC pages throwing everything off.
>
> This is only possible, if the layout is allowing that.
>
> > If you can calculate how many TOC entries you have, you should be able
> > to predetermine the number of pages you have, but that could require two
> > passes over your data rather than over the PDFs... Could be an
> > improvement, might not.  Only you can know that.
>
> I dont know, if I can calculate all situations, to get the right number
> of pages.
>
> I try to use for the first and second pass a OutputStream which only use
> memory. So i dont have any disk access for the pdf.
>
> Thanks for the suggestion
> Michael
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 9 Mar 2011 13:57:48 +0200
> From: Marks Nkosi <[email protected]>
> Subject: [iText-questions] Three Multiple drop down list
> To: [email protected]
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi, How can I an iTextPDF form with Three Multiple drop down list e.g
> country, state and city in a java project? When selecting country all
> related states to the country must appear, and all the cities for that
> state
> must also appear. Thanks
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 7
> Date: Wed, 9 Mar 2011 13:07:01 +0100
> From: Alexis Pigeon <[email protected]>
> Subject: Re: [iText-questions] Three Multiple drop down list
> To: Post all your questions about iText here
>        <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Marks,
>
> On 9 March 2011 12:57, Marks Nkosi <[email protected]> wrote:
>
> > Hi, How can I an iTextPDF form with Three Multiple drop down list e.g
> > country, state and city in a java project? When selecting country all
> > related states to the country must appear, and all the cities for that
> state
> > must also appear. Thanks
> >
>
> I'm no specialist in PDF forms, but couldn't this be done through
> Javascript?
>
> Cheers,
> alexis
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
>
> ------------------------------
>
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA
>
> End of iText-questions Digest, Vol 58, Issue 28
> ***********************************************
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to