WL2PDF is an XSL-FO based converter from WLML (format used by wolnelektury.pl to print-friendly PDFs).
Copyright © 2009,2010 Łukasz Rekucki WL2PDF is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. WL2PDF is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with WL2PDF. If not, see <http://www.gnu.org/licenses/>.
Fairly new Java Runtime (1.5+)
Apache FOP (at least version 0.95, trunk is recommended)
Saxon for XSLT2
Hyphenation is done via FOP, so read a section on it in their docs.
Some unicode-capable font, like DejaVu.
- Compile FOP if needed.
- Generate font metrics (refer to FOP Documentation on that)
- Make a "fop-config.xml" out of the supplied example and place it in this directory.
jython wl2pdf <list_of_files_to_convert>
java org.lqsoft.wlml.WL2PDF <path_to_config> <file_to_convert>
Rember to place FOP, it's libraries and Saxon under your classpath.