|
Re: Adding form fields to a pdf: msg#00163java.lib.itext.general
ok, adding form fields is not supported.... but even if I try to add something else (like a pdf template) it is not working because cb (see below ) is null... any clues? -- Vincent PdfReader pdf_reader; FileOutputStream pdf_os; pdf_reader = new PdfReader(pdf_file); pdf_os = new FileOutputStream(dest_file); PdfStamper stamper = new PdfStamper(pdf_reader, pdf_os); int nb_pages = pdf_reader.getNumberOfPages(); for (int i=1;i<=nb_pages;i++) { PdfContentByte cb = stamper.getOverContent(i); // <== *cb is here* //System.err.println("cb: "+cb); //*add smth here!!!* } stamper.close(); Paulo Soares wrote: Adding new fields in PdfStamper is not yet supported but there's work ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | ...HELP REQUIRED...fillin of PDF forms, venkataravi |
|---|---|
| Next by Date: | Re: easy way of merging different pages, Leonard Rosenthol |
| Previous by Thread: | Re: Adding form fields to a pdf, Paulo Soares |
| Next by Thread: | Re: Adding form fields to a pdf, Paulo Soares |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |