From 35f3f195bd246e1a600145a0468b183e5a5ccbe4 Mon Sep 17 00:00:00 2001
From: Joerg Pietschmann
- See also release notes. + Update your FO documents and style sheets.
- This is typically a problem with your classpath.
+This is typically a problem with your classpath.
If you are running FOP from the command line:
- If you run FOP embedded in your servlet, web application or other - Java application, check the classpath of the application. + If you run FOP embedded in your servlet, web application or + other Java application, check the classpath of the + application. Check the also the information pertaining servlet engines + for further hints.
If you use XSLT, problems in your style sheet and in your source XML - also often produce a NullPointerException. Run the transformation + also can produce a NullPointerException. Run the transformation separately to check for this, usually you'll get a detailed error message from the XSLT processor.
@@ -330,7 +332,7 @@Did you get: «Failed to read font metrics file C:\foo\arial.xml - : File "C:\foo\arial.xml" not found²? The value for the + : File "C:\foo\arial.xml" not found»? The value for the metrics-file attribute in the user config file is actually an URL, not a file name. Use "file:///C:/foo/arial.xml" instead.
@@ -339,11 +341,51 @@ directory you expect. Currently FOP does not use the baseDir for resolving relative URLs pointing to font metric files. ++ Try also setting the fontBaseDir configuration. (FIXME: add + link to congfiguration page) +
+ Leaders still work, in fact they work better than ever + before. You'll just have to add text-align="justify" and/or + text-align-last="justify" to the block with the leader. Be + sure you haven't accidentally overridden the + leader-length.maximum="100%" default value. +
++ Earlier versions of FOP used to expand a leader to fill the + rest of the line unconditionally, anything following it, + like page numbers in a TOC, was actually shifted beyong the + right margin. +
++ The new implementation uses leader-length.optimum to + determine where to break the line, and expands the leader + only further if the line should be filled, as indicated by + the text-aling and text-align-last properties. +
++ Actually due to the fuzzyness of the specification both the + old and the new method are conformant (although adding text + after the expanded leader in the old variant never was). +
++ If you want to have a longer ruler or space in a + non-justified line, you have to increase the + leader-length.optimum property. +
+- This happens for fo:page-number-citation elements if the citation - occurs before FOP formatted the requested page, usually in TOC or - index pages. + This happens for fo:page-number-citation elements if the + citation occurs before FOP formatted the requested page, + usually in TOC or index pages. It is caused by the problem + that FOP has to guess how much space the yet unknown page + number will occupy, and usually the guesses are somewhat + off.
- It is caused by the problem that FOP has to guess how much space the - yet unknown page number will occupy, and usually the guesses are - somewhat off. You can try to use a non-proportional font like Courier - to remedy this. However, this is likely to look ugly, and wont fix the - problem completely. + The most recent FOP releases should have this problem + fixed. Check whether you can upgrade.
- There are a few fonts supplied with Acrobat Reader. If you use other - fonts, the font must be available on the machine where the PDF is - viewed or it must have been embedded in the PDF file. See - embedding fonts. + This usually means the selected font doesn't have a glyph + for the character. +
++ The standard text fonts supplied with Acrobat Reader have + mostly glyphs for characters from the ISO Latin 1 character + set. For a variety of reasons, even those are not completely + guaranteed to work, for example you can't use the fi + ligature from the standard serif font. Check the overview for the default + PDF fonts. +
++ If you use your own fonts, the font must have a glyph for + the desired character. Furthermore the font must be + available on the machine where the PDF is viewed or it must + have been embedded in the PDF file. See embedding fonts.
- Furthermore, if you select a certain font family, the font must - contain glyphs for the desired character. There is an overview available for the - default PDF fonts. For most symbols, it is better to select the symbol - font explicitely, for example in order to get the symbol for the + For most symbols, it is better to select the symbol font + explicitely, for example in order to get the symbol for the mathematical empty set, write:
@@ -915,7 +968,7 @@ Can I control this? in the input.- See XML Entity Characters. + See Using HTML Character Names.
FOP supports encryption of PDF output, thanks to Patrick - C. Lankswert. This feature is commonly used to prevent unauthorized - viewing, printing, editing and copying text from the document - annotations. It is also possible to ask the user for a password in order - to view the contents. Note that there already exist third party - applications which can decrypt an encrypted PDF without effort and allow - the aforementioned operations, therefore the degree of protection is - limited. + C. Lankswert. This feature is commonly used to prevent + unauthorized viewing, printing, editing, copying text from the + document and doing annotations. It is also possible to ask the + user for a password in order to view the contents. Note that + there already exist third party applications which can decrypt + an encrypted PDF without effort and allow the aforementioned + operations, therefore the degree of protection is limited.
For further information about features and restrictions regarding PDF @@ -36,13 +36,15 @@ options.
- An owner password with the -o
option. This password is
- actually used as encryption key. Usually it is also used by most tools
- to disregard any restriction imposed on the PDF document.
+ An owner password is set with the -o
option. This
+ password is actually used as encryption key. Many tools for
+ PDF processing ask for this password to disregard any
+ restriction imposed on the PDF document.
If no owner password has been supplied but FOP was asked to apply some - restrictions, a random password is used. + restrictions, a random password is used. In this case it is obviously + impossiible to disregard restrictions in PDF processing tools.
A user password, supplied with the
- In order to use PDF encryption, FOP has to be compiled with cryptography
- support. Currently, only JCE
- is supported. JCE is part of JDK 1.4. For earlier JDKs, it can be
- installed separately. The build process automatically senses JCE
- presence and installs PDF support if possible, otherwise, a stub is
- compiled in.
+ is supported. JCE is part of JDK 1.4. For earlier JDKs, it can
+ be installed separately. The build process automatically
+ detects JCE presence and installs PDF encryption support if
+ possible, otherwise a stub is compiled in.
Cryptography support must also be present at run time. In particular, a
@@ -76,7 +78,7 @@
- then you don't have the needed support.
+ then you don't have the needed infrastructure.
There are several commercial and a few Open Source packages which
@@ -113,6 +115,10 @@
providers. For JDK 1.4 this is detailed on Sun's web site.
+
+ If you have any experience with Mozilla JSS or any other
+ cryptography provider, please post it to the fop-user list.
+ -u
option, will
@@ -60,13 +62,13 @@