diff options
author | emusic <emina.music@egiz.gv.at> | 2018-06-27 13:04:48 +0200 |
---|---|---|
committer | emusic <emina.music@egiz.gv.at> | 2018-06-27 13:04:48 +0200 |
commit | 85b644b1e7a10aa74196613b0daa921d8d721934 (patch) | |
tree | 786abc13caa2b9e3758e378349207cf193645c27 /pdf-as-cli | |
parent | 797634c687c6f44d314e4baa3fed220d142eed73 (diff) | |
download | pdf-as-4-85b644b1e7a10aa74196613b0daa921d8d721934.tar.gz pdf-as-4-85b644b1e7a10aa74196613b0daa921d8d721934.tar.bz2 pdf-as-4-85b644b1e7a10aa74196613b0daa921d8d721934.zip |
small changes in pdfa
Diffstat (limited to 'pdf-as-cli')
-rw-r--r-- | pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java index 4aceb329..1ab434d0 100644 --- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java +++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java @@ -456,24 +456,6 @@ public class Main { System.out.println("Signed document " + outputFile); //make output file protected from copying and extraction content - - /*if(configuration.hasValue(DEFAULT_CONFIG_PROTECT_PDF) && IConfigurationConstants.TRUE.equalsIgnoreCase(configuration.getValue(DEFAULT_CONFIG_PROTECT_PDF))) - { - SecureRandom random = new SecureRandom(); - byte seed[] = random.generateSeed(50); - String ownerPassword = new String(seed, StandardCharsets.UTF_8); - PDDocument document = PDDocument.load(outputPdfFile); - AccessPermission accessPermission = new AccessPermission(); - accessPermission.setCanExtractContent(false); - accessPermission.setCanExtractForAccessibility(true); - StandardProtectionPolicy spp = new StandardProtectionPolicy(ownerPassword,"",accessPermission); - spp.setEncryptionKeyLength(128); - spp.setPermissions(accessPermission); - document.protect(spp); - document.save(outputPdfFile); - document.close(); - logger.info("Added Protection Parameters"); - }*/ } private static void perform_verify(CommandLine cli) throws Exception { |