iText - read PDFs created with an unknown random owner password
问题 I'm getting the following exception when excecuting this code: public byte[] watermarking(byte[] orig) throws IOException { PdfReader pdfReader = new PdfReader(orig); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfStamper pdfStamper = null; try { pdfStamper = new PdfStamper(pdfReader, baos); //exc here ... } ... } catch (DocumentException var8) { ... } } Exception: 11:43:11,094 ERROR [de.mlp.xbg.pa.rest.SessionRR] (http-/127.0.0.1:8081-6) PdfReader not opened with owner password