Bom dia pessoal,
Estou com 2 perros nas frases
“throws IOException, DocumentException{”
Os erros são:
“syntax error on token(s), misplaced construtc(s)”
"syntax error on token “throws”, < expected "
O código é este
public void proteger(String args)
{
String param[] = args.split("#");
if(param[2]=="2"){
throws IOException, DocumentException{
PdfReader reader = new PDFReader(param[0], OWNER);
PdfStamper stamper = new PDFStamper(reader, FileOutputStream(param[1]));
stamper.close();
}
}
if(param[2]=="1"){
throws IOException, DocumentException{
PdfReader reader = new PDFReader(param[0]);
PdfStamper stamper = new PDFStamper(reader, FileOutputStream(param[1]));
stamper.setEncryption(null, null, PdfWriter.ENCRYPTION_AES_128);
stamper.close();
}
}
}
AJUDA!!!
