Bug#284634: fop: Compile with encryption support
Stuart Ballard
Stuart Ballard <sballard@netreach.com>, 284634@bugs.debian.org
Tue Dec 7 09:23:53 2004
Package: fop
Version: 1:0.20.5-4
Severity: wishlist
Would you consider building Fop with the encryption options available? I
believe that this involves making sure that a crypto implementation is
available at compile time. My understanding is that Free runtimes
provide this via GNU Crypto, although I have no idea whether that's
sufficient for Fop to work. I'm using a non-free JDK at the moment
myself (work stuff) but I understand you wouldn't want to increase the
non-free dependencies.
The specific code I'm using looks like this (note in particular the
lines marked "HERE" - it works without these lines):
Driver driver = new Driver();
ConsoleLogger logger = new ConsoleLogger(ConsoleLogger.LEVEL_WARN);
MessageHandler.setScreenLogger(logger);
driver.setLogger(logger);
driver.setRenderer(Driver.RENDER_PDF);
HashMap rendererOptions = new HashMap();
rendererOptions.put("allowEditContent", "FALSE"); // HERE
rendererOptions.put("allowEditAnnotations", "FALSE"); // AND HERE
driver.getRenderer().setOptions(rendererOptions);
driver.setOutputStream(out);
driver.setInputSource(new InputSource(in));
driver.run();
When I run this code I get an IllegalStateException: "PDF encryption not
available.". The documentation suggests that this is due to a failure to
find encryption support when fop was *compiled*, rather than a lack of
the necessary libraries on my machine at runtime which would (according
to the docs) give an error about being unable to find a provider for
RC4.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages fop depends on:
ii j2re1.3 [java2-runtime] 1.3.1.02b-2 Blackdown Java(TM) 2 Runtime Envir
ii j2re1.4 [java2-runtime] 1.4.0.99beta-1 Blackdown Java(TM) 2 Runtime Envir
ii java-common 0.22 Base of all Java packages
ii libavalon-framework-java 4.1.2-2 Common framework for Java server a
ii libbatik-java 1.5final-3 xml.apache.org SVG Library
ii libbsf-java 1:2.3.0rc1-2 Bean Scripting Framework to suppor
ii liblogkit-java 1.2.2-2 Lightweight and fast designed logg
ii libxalan2-java 2.6.0-1 XSL Transformations (XSLT) process
ii libxerces-java 1.4.4-2 Validating XML parser for Java
-- no debconf information