info.page = 1;
engine.setAppearanceInfo(info);
// TSAClient tsa = engine.getTSAfromSmartcard();
// Usa Digistamp per ottenere un account di test per il rilascio di timestamp
TSAClient tsa = new TSAClientBouncyCastle("http://tsatest1.digistamp.com/tsa", "12345678", "12345678");
engine.setTsaClient(tsa);
engine.setUseInternetCrl(true);
engine.signDocument(input, output);
}