* @return a byte array containing only the signed part of the content
* @throws IOException if the pdfFile can't be read
*/
public byte[] getSignedContent(InputStream pdfFile) throws IOException
{
COSFilterInputStream fis=null;
try
{
fis = new COSFilterInputStream(pdfFile,getByteRange());
return fis.toByteArray();
}
finally
{
if (fis != null)
{
fis.close();
}
}
}