Package org.apache.pdfbox.pdmodel

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


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

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

    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

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

    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

      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)
    doc.saveIncremental(fis, fos);
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.