I have fop.jar, saxon9.jar and xalan-2.7.0.jar, but not so lucky to do pdf.
To put preprocessor and fopnew together ? fop version is 0.95.
Then I tried:
java -jar $MYCLASS/saxon9.jar manual.xhtml preprocess_xhtml.xsl > manual.html
java -jar $MYCLASS/css2fopnew.jar manual.html -fop -pdf manual.pdf
First I got error
21.4.2009 10:36:59 org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en_GB
After I put fop-hyph.jar (http://offo.sourceforge.net/hyphenation/index.html) to the lib directory, i got next errors:
21.4.2009 11:02:45 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'serif-title,italic,400' not found. Substituting with 'any,italic,400'.
21.4.2009 11:02:46 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'serif-small-caps,normal,400' not found. Substituting with 'any,normal,400'.
21.4.2009 11:02:46 org.apache.fop.layoutmgr.table.TableLayoutManager getNextKnuthElements
INFO: table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%"
21.4.2009 11:02:46 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'serif-title,normal,400' not found. Substituting with 'any,normal,400'.
jar:file:/xxxx/css2fopnew.jar!/be/re/css/style/css.xsl; Line #34; Column #57; java.lang.NullPointerException
Simply example works fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have tried to start us this css2fopnew
I have fop.jar, saxon9.jar and xalan-2.7.0.jar, but not so lucky to do pdf.
To put preprocessor and fopnew together ? fop version is 0.95.
Then I tried:
java -jar $MYCLASS/saxon9.jar manual.xhtml preprocess_xhtml.xsl > manual.html
java -jar $MYCLASS/css2fopnew.jar manual.html -fop -pdf manual.pdf
First I got error
21.4.2009 10:36:59 org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en_GB
After I put fop-hyph.jar (http://offo.sourceforge.net/hyphenation/index.html) to the lib directory, i got next errors:
21.4.2009 11:02:45 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'serif-title,italic,400' not found. Substituting with 'any,italic,400'.
21.4.2009 11:02:46 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'serif-small-caps,normal,400' not found. Substituting with 'any,normal,400'.
21.4.2009 11:02:46 org.apache.fop.layoutmgr.table.TableLayoutManager getNextKnuthElements
INFO: table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%"
21.4.2009 11:02:46 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'serif-title,normal,400' not found. Substituting with 'any,normal,400'.
jar:file:/xxxx/css2fopnew.jar!/be/re/css/style/css.xsl; Line #34; Column #57; java.lang.NullPointerException
Simply example works fine.
I set to the css
hyphenate: false;
then works fine.
java -jar $MYCLASS/css2fopnew.jar -p preprocess_xhtml.xsl manual.xhtm -fop -pdf manual.pdf