Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.PdfAcroForm


     */
    protected ArrayList delayedAnnotations = new ArrayList();
   
   
    public PdfAnnotationsImp(PdfWriter writer) {
      acroForm = new PdfAcroForm(writer);
    }
View Full Code Here


     */
    protected ArrayList delayedAnnotations = new ArrayList();
   
   
    public PdfAnnotationsImp(PdfWriter writer) {
      acroForm = new PdfAcroForm(writer);
    }
View Full Code Here

           
            // step 3: we open the document
            document.open();
           
            // step 4:
            PdfAcroForm acroForm = writer.getAcroForm();
            document.add(new Paragraph("Hello World"));
            acroForm.addSignature("mysig", 73, 705, 149, 759);
           
        }
        catch(DocumentException de) {
            System.err.println(de.getMessage());
        }
View Full Code Here

     */
    protected ArrayList delayedAnnotations = new ArrayList();
   
   
    public PdfAnnotationsImp(PdfWriter writer) {
      acroForm = new PdfAcroForm(writer);
    }
View Full Code Here

     */
    protected ArrayList delayedAnnotations = new ArrayList();
   
   
    public PdfAnnotationsImp(PdfWriter writer) {
      acroForm = new PdfAcroForm(writer);
    }
View Full Code Here

        PdfWriter writer = findWriter();
        if (writer == null) {
            throw new RuntimeException("Cannot find PdfWriter - the document may not exist or may not be a pdf type");
        }
       
        PdfAcroForm form = writer.getAcroForm();  

        field = (String) valueBinding(context, "field", field);
        if (field == null) {
            throw new RuntimeException("signature field named is required");
        }
       
        size = (String) valueBinding(context, "size", size);
        if (size == null) {
            throw new RuntimeException("signature size is required");
        }
        float[] rect = ITextUtils.stringToFloatArray(size);
        if (rect.length != 4) {
            throw new RuntimeException("size must contain four numbers");
        }
        form.addSignature(field, rect[0], rect[1], rect[2], rect[3]);
       
        UIDocument doc = (UIDocument) findITextParent(this, UIDocument.class);
        doc.addSignature(this);
       
        super.encodeEnd(context);
View Full Code Here

           
            // step 3: we open the document
            document.open();
           
            // step 4:
            PdfAcroForm acroForm = writer.getAcroForm();
            document.add(new Paragraph("Hello World"));
            acroForm.addSignature("mysig", 73, 705, 149, 759);
           
        }
        catch(DocumentException de) {
            System.err.println(de.getMessage());
        }
View Full Code Here

        PdfWriter writer = findWriter();
        if (writer == null) {
            throw new RuntimeException("Cannot find PdfWriter - the document may not exist or may not be a pdf type");
        }
       
        PdfAcroForm form = writer.getAcroForm();  

        field = (String) valueBinding(context, "field", field);
        if (field == null) {
            throw new RuntimeException("signature field named is required");
        }
       
        size = (String) valueBinding(context, "size", size);
        if (size == null) {
            throw new RuntimeException("signature size is required");
        }
        float[] rect = ITextUtils.stringToFloatArray(size);
        if (rect.length != 4) {
            throw new RuntimeException("size must contain four numbers");
        }
        form.addSignature(field, rect[0], rect[1], rect[2], rect[3]);
       
        UIDocument doc = (UIDocument) findITextParent(this, UIDocument.class);
        doc.addSignature(this);
       
        super.encodeEnd(context);
View Full Code Here

      if (writer == null)
      {
         throw new RuntimeException("Cannot find PdfWriter - the document may not exist or may not be a pdf type");
      }

      PdfAcroForm form = writer.getAcroForm();

      field = (String) valueBinding(context, "field", field);
      if (field == null)
      {
         throw new RuntimeException("signature field named is required");
      }

      size = (String) valueBinding(context, "size", size);
      if (size == null)
      {
         throw new RuntimeException("signature size is required");
      }
      float[] rect = ITextUtils.stringToFloatArray(size);
      if (rect.length != 4)
      {
         throw new RuntimeException("size must contain four numbers");
      }
      form.addSignature(field, rect[0], rect[1], rect[2], rect[3]);

      UIDocument doc = (UIDocument) findITextParent(this, UIDocument.class);
      doc.addSignature(this);

      super.encodeEnd(context);
View Full Code Here

  {
    PdfContentByte cb = outputDevice.getCurrentPage();

    PdfWriter writer = outputDevice.getWriter();

    PdfAcroForm acroForm = writer.getAcroForm();
    Element elem = box.getElement();
    String name = getFieldName(outputDevice, elem);
    String value = getValue(elem);
    acroForm.addHiddenField(name, value);


  }
View Full Code Here

TOP

Related Classes of com.lowagie.text.pdf.PdfAcroForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.