org.apache.pdfbox.pdmodel.interactive.digitalsignature
Class SignatureOptions

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions

public class SignatureOptions
extends Object


Constructor Summary
SignatureOptions()
           
 
Method Summary
 int getPage()
          Get the page number.
 int getPreferedSignatureSize()
          Get the preferred size of the signature.
 COSDocument getVisualSignature()
          Get the visual signature.
 void setPage(int pageNo)
          Set the page number.
 void setPreferedSignatureSize(int size)
          Set the preferred size of the signature.
 void setVisualSignature(InputStream is)
          Reads the visual signature from the given input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureOptions

public SignatureOptions()
Method Detail

setPage

public void setPage(int pageNo)
Set the page number.

Parameters:
pageNo - the page number

getPage

public int getPage()
Get the page number.

Returns:
the page number

setVisualSignature

public void setVisualSignature(InputStream is)
                        throws IOException
Reads the visual signature from the given input stream.

Parameters:
is - the input stream containing the visual signature
Throws:
IOException - when something went wrong during parsing

getVisualSignature

public COSDocument getVisualSignature()
Get the visual signature.

Returns:
the visual signature

getPreferedSignatureSize

public int getPreferedSignatureSize()
Get the preferred size of the signature.

Returns:
the preferred size

setPreferedSignatureSize

public void setPreferedSignatureSize(int size)
Set the preferred size of the signature.

Parameters:
size - the size of the signature


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.