Re: questions about create new forms with out create new document(eg:radio buttons .check but ton.and so on)

iText mailing list <[email protected]> Mon, 1 Feb 2016 09:33:00 +0100
Newsgroups gmane.comp.java.lib.itext.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============5103820297874710796==
Content-Type: multipart/alternative;
	boundary="------------080701080203090008010206"

This is a multi-part message in MIME format.
--------------080701080203090008010206
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 2/1/2016 5:37 AM, TTDET wrote:
> i have already ready this chapters" Manipulating existing PDF 
> documents", in the chapter tell me how creating text fields、radio 
> buttons check buttons 、list and combo box and so on.But these demo 
> need create new document;just as:
> step1: Document document = new Document();
> step2:  PdfWriter writer =PdfWriter.getInstance(document, new 
> FileOutputStream(filename));
> stepn:writer..addAnnotation(radioGroup);(work fine)
> :::::::::
> i want to in existing pdf document,create new Forms. this is my 
> code(when i create radio buttons ) :
> step1:PdfReader pdfReader = new ITextPdfLoader(pdfSrc, 
> getPassword()).getPdfReader();
> step2:PdfStamper stamper = new PdfStamper(pdfReader, pdfOutStream);
> step3:PdfWriter wirter =stamper.getWriter();
> :           :         :
> :          :          :
> stepn:writer.addAnnotation(radioGroup);
> in stepn,itext 
> throw "unsupported.in.this.context.use.pdfstamper.addannotation"、、、、、

This is answered on the official web site for developers: 
http://developers.itextpdf.com/question/how-can-i-add-new-acroform-field-pdf


--------------080701080203090008010206
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2/1/2016 5:37 AM, TTDET wrote:<br>
    </div>
    <blockquote cite="mid:[email protected]"
      type="cite">
      <div>
        <div style="line-height: 21px;">i have already ready this
          chapters" Manipulating existing PDF documents", in the chapter
          tell me how creating text fields、radio buttons check buttons
          、list and combo box and so on.But these demo need create new
          document;just as:</div>
        <div style="line-height: 21px;">step1: Document document = new
          Document();</div>
        <div style="line-height: 21px;">step2:  PdfWriter writer =<span
            style="line-height: 1.5;">PdfWriter.getInstance(document,
            new FileOutputStream(filename));</span></div>
        <div style="line-height: 21px;">stepn:writer.<span
            style="line-height: 1.5;">.addAnnotation(radioGroup);(work
            fine)</span></div>
        <div style="line-height: 21px;"><span style="line-height: 1.5;">:::::::::</span></div>
        <div style="line-height: 21px;">i want to in existing pdf
          document,create new Forms. this is my code(when i create radio
          buttons ) :</div>
        <div style="line-height: 21px;">
          <div>step1:PdfReader pdfReader = new ITextPdfLoader(pdfSrc,
            getPassword()).getPdfReader();</div>
          <div>step2:PdfStamper stamper = new PdfStamper(pdfReader,
            pdfOutStream);</div>
        </div>
        <div style="line-height: 21px;">step3:PdfWriter wirter
          =stamper.getWriter();</div>
        <div style="line-height: 21px;">:           :         :</div>
        <div style="line-height: 21px;">:          :          :</div>
        <div style="line-height: 21px;">stepn:writer.addAnnotation(radioGroup);</div>
        <div style="line-height: 21px;">in stepn,itext <span
            style="color: rgb(51, 51, 51); font-family: arial;
            font-size: 13px; line-height: 20px; widows: auto;">throw</span><span
            style="color: rgb(51, 51, 51); font-family: arial;
            font-size: 13px; line-height: 20px; widows: auto;">  </span><span
            style="line-height: 1.5;"> "unsupported.in.this.context.use.pdfstamper.addannotation"、、、、、</span><br>
        </div>
      </div>
    </blockquote>
    <br>
    This is answered on the official web site for developers:
<a class="moz-txt-link-freetext" href="http://developers.itextpdf.com/question/how-can-i-add-new-acroform-field-pdf">http://developers.itextpdf.com/question/how-can-i-add-new-acroform-field-pdf</a><br>
    <br>
  </body>
</html>

--------------080701080203090008010206--


--===============5103820297874710796==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
--===============5103820297874710796==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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
--===============5103820297874710796==--