Sir jee, aap hi ka number mang raha tha, nahi dena hai to koi baat
nahi..kyuki tumara ideawala number switchup ja raha hai..

On 11/10/09, itext-questions-requ...@lists.sourceforge.net
<itext-questions-requ...@lists.sourceforge.net> wrote:
> Send iText-questions mailing list submissions to
>       itext-questions@lists.sourceforge.net
>
> 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
>       itext-questions-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>       itext-questions-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of iText-questions digest..."
>
>
> Today's Topics:
>
>    1. Mission-critical pdf with thousands of statement of accounts
>       / Design considerations to be verified by the experts
>       (martin.we...@mw-informatik.ch)
>    2. Re: Mission-critical pdf with thousands of statement of
>       accounts / Design considerations to be verified by the experts
>       (Mike Marchywka)
>    3. Re: reg: the addition of blank signature over an        adobe XFA
>       form, please help (Gauravk Tyagi)
>    4. Re: reg: the addition of blank signature        over    an      adobe 
> XFA
>       form, please help (Leonard Rosenthol)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 10 Nov 2009 14:25:52 +0100 (CET)
> From: martin.we...@mw-informatik.ch
> Subject: [iText-questions] Mission-critical pdf with thousands of
>       statement of accounts / Design considerations to be verified by the
>       experts
> To: itext-questions@lists.sourceforge.net
> Message-ID:
>       
> <1924953153.321461257859552230.javamail.r...@zcs-be1.ewmail.everyware.ch>
>       
> Content-Type: text/plain; charset=utf-8
>
> Hi Bruno, Paulo and all the other iText cracks,
> I have to implement for a big insurance company a PDF including thousands of
> statement of accounts. This mission-critical application runs on IBM z/OS as
> a Java batch job (WebSphere XD). You would like to share my design
> considerations and issues with you and appreciate your comments and
> recommendations. Many thanks in advance that you spend time to support me. I
> like to iText book and the comprehensive samples.
>
> 1. Requirements
> PDF includes up to 3'500 statement of accounts, a statement of account can
> have up to 50 pages, we do not expect that the PDF has more than 20'000
> pages. A typical batch-run creates a PDF with 3'500 statement of accounts
> with a maximum of 3 pages per statement of account. The parameters for the
> batch job are: range of account numbers, period, 2 - 4 variable table
> columns (fixed columns are: debit, credit, balance). The first page of the
> statement includes: page header with the address of the account owner, a
> table with 5 to 7 columns with a table header and 30 body rows. Page two and
> upward of the statement has no page header, layout of the table is
> equivalent to page one (table header), with 50 body rows. End of statement:
> empty row followed by a total row for debit, credit and balance. Each
> statement has its own page number in the footer (page x/y). The footer has a
> fix text (same content and position for all pages, independent of
> statement). Each odd table body row is gray underlayed ("table background"),
> including empty rows at the end of the table.
>
> 2. Design
>
> Applying PdfStamper and PdfCopy
> I intend to create the statement_of_accounts.pdf in several steps:
> 1. For each statement: prepare a statement document
> (statement_without_pageNumber.pdf). Add "tableBackground_first_page"
> PdfTemplate to the first page and "tableBackground_further_pages"
> PdfTemplate to the further pages via PdfPTableEvent handling
> 2. for each statement: stamp page number with PdfStamper
> (statement_with_pageNumber.pdf)
> 3. Add statement_with_pageNumber.pdf to the
> statement_of_accounts_without_footer.pdf) with PdfCopy
> 4. Stamp the footer (PdfTemplate) with PdfStamper (statement_of_accounts.pdf
> = final PDF)
> The first two documents (statement_without_pageNumber.pdf /
> statement_with_pageNumber.pdf) are temporary files reused for each statement
>
> 3. My concerns
>
> 3.1. "table background" templates (first page / further pages)
> Each statement_without_pageNumber.pdf (created in step 1) includes one
> (statement with one page) or two (statements with more than one page)
> templates. A typical batch-run creates 3'500 statements which are
> concatenated in step3. Is it possible the share a template across a document
> to reduce the pdf size ? Other (better ?) solutions to implement the "table
> background". Please be aware that the "table background" has to be
> calculated per batch-job because of the variable columns
>
> 3.2. Is step 4 (stamps a fix page footer text via PdfTemplate) an overkill ?
> Rationale: template with the footer text appears only once in the fine pdf
> (statement_of_accounts.pdf)
>
> 4. Do you have other concerns / issues with the design ?
>
> Again, many thanks for your help.
> Kind regards,
> Martin
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 10 Nov 2009 08:47:19 -0500
> From: Mike Marchywka <marchy...@hotmail.com>
> Subject: Re: [iText-questions] Mission-critical pdf with thousands of
>       statement of accounts / Design considerations to be verified by the
>       experts
> To: <itext-questions@lists.sourceforge.net>
> Message-ID: <blu113-w272cdc3d5fd0605b7738dbe...@phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
>
> hoping to elicit input from Leonard but I have been fighting
> a bunch of bloated web sites that impede automation lately and this
> request sounds like it is headed down that path. Since I have
> accused adobe of being a big offender in this regard, let me
> supply some additional thoughts for comment for rebuttal.
>
>
>
>
> ----------------------------------------
>> Date: Tue, 10 Nov 2009 14:25:52 +0100
>> From:
>> To: itext-questions@lists.sourceforge.net
>> Subject: [iText-questions] Mission-critical pdf with thousands of
>> statement of> 1. Requirements
>> PDF includes up to 3'500 statement of accounts, a statement of account can
>> have up to 50 pages, we do not expect that the PDF has more than 20'000
>> pages. A typical batch-run creates a PDF with 3'500 statement of accounts
>> with a maximum of 3 pages per statement of account. The parameters for the
>> batch job are: range
>
> So, what HUMAN will actually read this? Wouldn't you be better off
> publishing something machine readable,? maybe
> some summary statistics and a zip file containing the database to let an
> interested reader run his own queries and analyses on the DB? When is the
> last time someone you knew read and understood 20,000 pages of accounting
> information? Have you ever tried to open a 20,000 page PDF file on your home
> PC, or even download one? You
> could probably find a free DB to give to users and write a front end rather
> than making a dead-end pdf file too big for anyone to read. You can
> convert the account info to text or xml for that matter and combine
> a db with a report generator. If you must generate a 20,000 page PDF, do
> you plan on adding information to allow users to extract the numbers in
> a useful format?
>
>
>
>
>
>
> Note: hotmail is now unusable for TEXT, I am moving to marchy...@gmail.com
> or also use
> marchy...@yahoo.com. Thanks.
>
> Mike Marchywka
> 586 Saint James Walk
> Marietta GA 30067-7165
> 415-264-8477 (w)<- use this
> 404-788-1216 (C)<- leave message
> 989-348-4796 (P)<- emergency only
> marchy...@hotmail.com
> Note: If I am asking for free stuff, I normally use for hobby/non-profit
> information but may use in investment forums, public and private.
> Please indicate any concerns if applicable.
>
>                                       
> _________________________________________________________________
> Find the right PC with Windows 7 and Windows Live.
> http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 10 Nov 2009 18:37:48 +0530
> From: Gauravk Tyagi <gauravk.ty...@tcs.com>
> Subject: Re: [iText-questions] reg: the addition of blank signature
>       over an adobe XFA form, please help
> To: Leonard Rosenthol <lrose...@adobe.com>
> Cc: Post all your questions about iText here
>       <itext-questions@lists.sourceforge.net>
> Message-ID:
>       <of72ba17b4.1daf6f7a-on6525766a.0047cbf8-6525766a.00482...@tcs.com>
> Content-Type: text/plain; charset="us-ascii"
>
> hiii sir,
>
> may i know that method what is that...
>
>
> Thanks and regards,
> Gaurav Kumar Tyagi
> Asst. System Engineer Trainee
> Tata Consultancy Services
> 154, B Block A,
> Sector 63, Phase III, Noida Distt
> Gautam Buddha Nagar
> Noida - 201301,Up
> India
> Cell:- 09990013398
> Mailto: gauravk.ty...@tcs.com
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty.   IT Services
>                         Business Solutions
>                         Outsourcing
> ____________________________________________
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 4
> Date: Tue, 10 Nov 2009 05:56:09 -0800
> From: Leonard Rosenthol <lrose...@adobe.com>
> Subject: Re: [iText-questions] reg: the addition of blank signature
>       over    an      adobe XFA form, please help
> To: "itext-questions@lists.sourceforge.net"
>       <itext-questions@lists.sourceforge.net>
> Message-ID:
>       <d23d6b9e57d654429a9ab6918caceaa97c695d8...@nambx02.corp.adobe.com>
> Content-Type: text/plain; charset="us-ascii"
>
> It has NOTHING to do with the version of Acrobat - it has to do with the
> forms technology used.
>
> There are two types of forms technologies in PDF - AcroForms and XFA.  You
> can't mix them...
>
> Leonard
>
> From: Gauravk Tyagi [mailto:gauravk.ty...@tcs.com]
> Sent: Tuesday, November 10, 2009 8:17 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] reg: the addition of blank signature over an
> adobe XFA form, please help
>
>
> hello All,
>
> can you people please guide me to how to add a signtaure on an adobe9 form
> using itext. i used the two codes that are working fine for a form filled in
> adobe 7 but for a form filled in adobe 9 not any signature is being added to
> the existing pdf.
>
> This code was used to add the signature.
>
> import java.io.File;
> import java.io.FileInputStream;
> import java.io.FileOutputStream;
> import java.security.KeyStore;
> import java.security.PrivateKey;
> import java.security.cert.Certificate;
> import com.lowagie.text.Rectangle;
> import com.lowagie.text.pdf.AcroFields;
> import com.lowagie.text.pdf.PRAcroForm;
> import com.lowagie.text.pdf.PdfAcroForm;
> import com.lowagie.text.pdf.PdfAnnotation;
> import com.lowagie.text.pdf.PdfContentByte;
> import com.lowagie.text.pdf.PdfFormField;
> import com.lowagie.text.pdf.PdfName;
> import com.lowagie.text.pdf.PdfReader;
> import com.lowagie.text.pdf.PdfSignatureAppearance;
> import com.lowagie.text.pdf.PdfStamper;
> import com.lowagie.text.pdf.PdfString;
> import com.lowagie.text.pdf.PdfWriter;
>
> public class DSOnPdf {
>
>         /**
>          * @param args
>          */
>         public static void main(String[] args)
>         {
>                 try
>                 {
>                 //String strInputFileName
> ="C:\\sign\\1049-Form1BSigned9.pdf";
>                 String strInputFileName
> ="C:\\sign\\Form23_Adobe9_1.1_2sign.pdf";
>                 String strOutPutFileName ="C:\\sign\\Form 20 BRRNEW.pdf";
>                 PdfReader reader = new PdfReader(strInputFileName);
>
>                 FileOutputStream fout = new
> FileOutputStream("C:\\sign\\Form23_Adobe9_1.1_2signnew.pdf");
>                 PdfStamper stp = new PdfStamper(reader, fout);
>                 PdfWriter pdfStamperImp = stp.getWriter();
>                 PdfAcroForm acroForm = pdfStamperImp.getAcroForm();
>                 PdfFormField signature =
> PdfFormField.createSignature(pdfStamperImp);
>                 acroForm.setSignatureParams(signature, "Signature1",  73,
> 173, 123, 132);
>                 acroForm.drawSignatureAppearences(signature, 73, 173, 123,
> 132);
>                 stp.addSignature("Signature1", 1,73, 173, 123, 132);
>                 //acroForm.addFormField(signature);
>                 //stp.addAnnotation(signature, 4324);
>                 //PdfFormField sig = addSignature(stp, 1, "signature", 73,
> 73, 23, 32);
>
>                 //stp.setFormFlattening(true);
>
>                 //sig.setFieldFlags(PdfAnnotation.FLAGS_PRINT);
>      //   sig.setFlags(PdfAnnotation.FLAGS_PRINT);
>
>                 stp.close();
>                 }
>                 catch(Exception ex)
>                 {
>                         ex.printStackTrace();
>                 }
>         }
>
>
>         static PdfFormField addSignature(PdfStamper pdfStamper, int page,
> String name, float llx, float lly, float urx, float ury)
>     {
>         PdfWriter pdfStamperImp = pdfStamper.getWriter();
>         PdfAcroForm acroForm = pdfStamperImp.getAcroForm();
>
>         PdfFormField signature =
> PdfFormField.createSignature(pdfStamperImp);
>
>         acroForm.setSignatureParams(signature, name, llx, lly, urx, ury);
>         acroForm.drawSignatureAppearences(signature, llx, lly, urx, ury);
>         pdfStamper.addAnnotation(signature, page);
>         signature.setFieldFlags(PdfAnnotation.FLAGS_PRINT);
>         return signature;
>     }
>
>
> }
>
> And this code was used to sign that signature field generated.
>
>
> import java.io.File;
> import java.io.FileInputStream;
> import java.io.FileOutputStream;
> import java.security.KeyStore;
> import java.security.PrivateKey;
> import java.security.cert.Certificate;
> import com.lowagie.text.Rectangle;
> import com.lowagie.text.pdf.AcroFields;
> import com.lowagie.text.pdf.PRAcroForm;
> import com.lowagie.text.pdf.PdfAcroForm;
> import com.lowagie.text.pdf.PdfAnnotation;
> import com.lowagie.text.pdf.PdfContentByte;
> import com.lowagie.text.pdf.PdfFormField;
> import com.lowagie.text.pdf.PdfName;
> import com.lowagie.text.pdf.PdfReader;
> import com.lowagie.text.pdf.PdfSignatureAppearance;
> import com.lowagie.text.pdf.PdfStamper;
> import com.lowagie.text.pdf.PdfString;
> import com.lowagie.text.pdf.PdfWriter;
>
> public class DigitalSignatureOnPdf2 {
>
>         /**
>          * @param args
>          */
>         public static void main(String[] args)
>         {
>                 try
>                 {
>                 KeyStore ks = KeyStore.getInstance("pkcs12");
>                 ks.load(new
> FileInputStream("D:\\Util\\certs\\AXISBANKDEMO.p12"),"AXISBANK".toCharArray());
>                 String alias = (String)(ks.aliases().nextElement());
>                 PrivateKey key =
> (PrivateKey)ks.getKey(alias,"AXISBANK".toCharArray());
>                 Certificate[] chain = ks.getCertificateChain(alias);
>                 String strInputFileName ="C:\\sign\\Form 20 BNEW23123.pdf";
>                 //String strInputFileName ="C:\\sign\\DocumentRR.pdf";
>                 String strOutPutFileName ="C:\\sign\\Form 20
> BNEW23123new.pdf";
>                 PdfReader reader = new PdfReader(strInputFileName);
>                 int n = reader.getNumberOfPages();
>
>                 //FileOutputStream fout = new
> FileOutputStream("C:\\sign\\1049-Form1BSigned9new.pdf");
>                 FileOutputStream fout = new FileOutputStream("C:\\sign\\Form
> 20 BNEW23123new.pdf");
>                 //For single signature on pdf
>                         //PdfStamper stp =
> PdfStamper.createSignature(reader, fout, '\6');
>                 //for multiple signature
>                 File f=new File("C:\\sign\\gaurav.pdf");
>                 PdfStamper  stp = PdfStamper.createSignature(reader,
> fout,'\0',null,true);
>                 PdfSignatureAppearance sap = stp.getSignatureAppearance();
>                 sap.setCrypto(key, chain, null,
> PdfSignatureAppearance.WINCER_SIGNED);
>                 //sap.setVisibleSignature(new Rectangle(500, 200, 550, 230),
> 1, null);
>                 //sap.setVisibleSignature(new Rectangle(200, 200, 250, 230),
> 1, null);
>
> //sap.setVisibleSignature("form1_DTLs[0].page1[0].Sign2[0]");
>                 sap.setVisibleSignature("Signature1");
>                 //stp.setFormFlattening(true);
>                 stp.close();
>                 }
>                 catch(Exception ex)
>                 {
>                         ex.printStackTrace();
>                 }
>         }
>
> These both are working for adobe 7 forms but not for adobe 9 forms.and the
> forms are XFA based .
> Gaurav Kumar Tyagi
> Asst. System Engineer Trainee
> Tata Consultancy Services
> 154, B Block A,
> Sector 63, Phase III, Noida Distt
> Gautam Buddha Nagar
> Noida - 201301,Up
> India
> Cell:- 09990013398
> Mailto: gauravk.ty...@tcs.com
> Website: http://www.tcs.com<http://www.tcs.com/>
> ____________________________________________
> Experience certainty.        IT Services
>                        Business Solutions
>                        Outsourcing
> ____________________________________________
>
> =====-----=====-----=====
>
> Notice: The information contained in this e-mail
>
> message and/or attachments to it may contain
>
> confidential or privileged information. If you are
>
> not the intended recipient, any dissemination, use,
>
> review, distribution, printing or copying of the
>
> information contained in this e-mail message
>
> and/or attachments to it are strictly prohibited. If
>
> you have received this communication in error,
>
> please notify us by reply e-mail or telephone and
>
> immediately and permanently delete the message
>
> and any attachments. Thank you
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
> ------------------------------
>
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
> End of iText-questions Digest, Vol 42, Issue 35
> ***********************************************
>


-- 
Thanks&Regards,
Amit Kumar
Planman Technologies

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to