You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Felice Angemi <fe...@hotmail.com> on 2003/09/01 11:42:42 UTC
FOP 0.20.5 problem with embedded fonts and encryption!
hi All,
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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org