Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 272 Bytes
PDF was created using:
```
PDDocument pdf = null;
try {
pdf = new PDDocument();
pdf.addPage(new PDPage()); // Need page to open in Acrobat
pdf.encrypt("hello", "world");
pdf.save("d:/download/encrypted.pdf");
} finally {
if (pdf != null)
pdf.close();
}
```
You can’t perform that action at this time.