Skip to content
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");"d:/download/encrypted.pdf");
} finally {
if (pdf != null)
You can’t perform that action at this time.