Examples of addSignature()


Examples of com.lowagie.text.pdf.PdfAcroForm.addSignature()

            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

Examples of com.lowagie.text.pdf.PdfAcroForm.addSignature()

        }
        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

Examples of com.lowagie.text.pdf.PdfAcroForm.addSignature()

            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

Examples of com.lowagie.text.pdf.PdfAcroForm.addSignature()

        }
        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

Examples of com.lowagie.text.pdf.PdfAcroForm.addSignature()

      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

Examples of org.apache.pdfbox.pdmodel.PDDocument.addSignature()

            {
                options = new SignatureOptions();
                options.setVisualSignature(signatureProperties);
                // options.setPage(signatureProperties.getPage());
                // options.setPreferedSignatureSize(signatureProperties.getPreferredSize());
                doc.addSignature(signature, this, options);
            }
            finally
            {
                if (options != null)
                {
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.PDDocument.addSignature()

                }
            }
        }
        else
        {
            doc.addSignature(signature, this);
        }

        // write incremental (only for signing purpose)
        doc.saveIncremental(fis, fos);
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.PDDocument.addSignature()

    signature.setSignDate(Calendar.getInstance());

    // register signature dictionary and sign interface
    if (options==null)
    {
      doc.addSignature(signature, this);
    }
    else
    {
      doc.addSignature(signature, this, options);
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.PDDocument.addSignature()

    {
      doc.addSignature(signature, this);
    }
    else
    {
      doc.addSignature(signature, this, options);
    }
   
    // write incremental (only for signing purpose)
    doc.saveIncremental(fis, fos);
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.PDDocument.addSignature()

    if (signatureProperties != null && signatureProperties.isVisualSignEnabled()) {
      options = new SignatureOptions();
      options.setVisualSignature(signatureProperties);
      // options.setPage(signatureProperties.getPage());
      // options.setPreferedSignatureSize(signatureProperties.getPreferredSize());
      doc.addSignature(signature, this, options);
    } else {
      doc.addSignature(signature, this);
    }

    // write incremental (only for signing purpose)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.