i have a problem while trying to embed fonts and encrypt a pdf from my xslFO,
the problem is when i open the result PDF file with acrobat reader, i have an error:
Can't find embedded fonts 432F34Verdana into PDF file (or something similar)
if i do the same operation without encryption all embedded fonts works correctly in acrobat reader
i add this line in the init method for FOP to use the fonts defined in my userconfig.xml:
org.apache.fop.apps.Options options = new Options(new File(myuserconfig));
i use the following code to :
java.util.Map rendererOptions = new java.util.HashMap();
rendererOptions.put("ownerPassword", "myPassword");
rendererOptions.put("allowCopyContent", "TRUE");
rendererOptions.put("allowEditContent", "FALSE");
rendererOptions.put("allowPrint", "TRUE");
driver.getRenderer().setOptions(rendererOptions);
driver.getRenderer().setupFontInfo();
driver.setRenderer(Driver.RENDER_PDF);driver.run();
add encryption in the PDF file.
Can anyone tell me if this is a bug or an error in my java code??
Thanks Felix
_________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
