Re: PDF size reduction
Hi, If you have not done it first, I would remove the exif stuff from the JPEG file. And then give `jpegoptim` a try to reduce the JPEG file size first: https://github.com/tjko/jpegoptim -M On Tue, May 16, 2017 at 5:50 PM, spoorthi myneni - TECRAwrote: > Hi Team, > > We have a requirement to reduce the size of the PDF size from > 200Kb(approximately) to as less as possible. There are 5 images in the PDF > that I am using. > > PDF size without images is coming up to 40Kb. > Each Image size(jpegs): CCX logo- 60Kb, 3 small images: 18kb each, SMS logo > - 50Kb approximately. > > The PDF size is increased as mush as the image size is. Is there a way for > us to optimize the image size or the PDF size in FO? > I have already set this property: > true > > > Please let me know if there are any techniques to achieve this. Has there > been any enhancements done in the FOP 2.0? > > Thank you, > Spoorthi -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [ANN] Apache XML Graphics Commons 2.2 Released
Looks like this is done: https://xmlgraphics.apache.org/fop/2.2/releaseNotes_2.2.html I did not see the mail though -M On Mon, Mar 27, 2017 at 11:42 AM, Mark Gibsonwrote: > Can we infer from this an imminent FOP 2.2 release? That would be great if > so. > > > > From: Simon Steiner [mailto:simonsteiner1...@gmail.com] > Sent: 27 March 2017 09:00 > To: gene...@xmlgraphics.apache.org; fop-users@xmlgraphics.apache.org > Subject: [ANN] Apache XML Graphics Commons 2.2 Released > > > > The Apache XML Graphics team is pleased to announce the availability of > > Apache XML Graphics Commons 2.2. > > > > XML Graphics Commons is a set of components for dealing with graphics > > e.g., PNG and TIFF codecs, Graphics2D implementations that generate PDF > > and PostScript, an XMP metadata framework, etc. > > > > It is primarily used by its sister projects Apache Batik and Apache FOP, > > but can also be used independently. > > > > This is a minor update to be compatible with the FOP 2.2 release. > > > > For more information, see here: > > http://xmlgraphics.apache.org/commons/ > > > > To download, see here: > > http://xmlgraphics.apache.org/commons/download.html > > > > The Apache XML Graphics team. -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: java.util.NoSuchElementException>org.apache.fop.apps.FOPException
Hi Eduard, OK I will try on docbook apps unless I get a complete answere here: http://stackoverflow.com/questions/41123392/detecting-table-error-in-docbook-5-0-document Thanks On Fri, Dec 9, 2016 at 7:02 PM, Eduard Tibet <eduard.ti...@gmail.com> wrote: > Mathieu, > > have you tried 2 pass generation (xml > fo, fo > pdf)? Note, that xml >> fo is only FOPs bonus-like feature and other xslt processors can > generate different results. > > FYI, I have faced such issues when using saxon combining with certain > docbook xsl stylesheets version. But there were no such exceptions > with xsltproc. > > Try to do the following: > 1. xsltproc, xalan and saxon to create fo files (different output fo-files!); > 2. try to make pdf with each .fo file using FOP and look for the > result; You can also try to use FOP 2.1 and the previous stable > version of FOP. > 3. if there are any exceptions - try to ask (see note below). > > Note, that DocBook questions are better to ask at the docbook-apps > mailing list [1] > > [1] http://docbook.org/help > > -- > regards, > ET > > 2016-12-08 18:56 GMT+03:00 Mathieu Malaterre <mathieu.malate...@gmail.com>: >> Hi all, >> >> I am trying to build the DICOM standard (docbook 5) using fop 2.1, but >> it keeps on failing with [*]. >> >> How should I go debugging this (there is no context in the error >> message to locate a particular line). As a side note, the input >> docbook 5 is clean (jing validation using >> /usr/share/xml/docbook/schema/rng/5.0/docbook.rng). >> >> Thanks for comments >> -M >> >> [*] >> [INFO] FOUserAgent - Rendered page #826. >> [INFO] FOUserAgent - Rendered page #827. >> [INFO] FOUserAgent - Rendered page #828. >> [INFO] FOUserAgent - Rendered page #829. >> [ERROR] FOP - Exception > java.util.NoSuchElementException>org.apache.fop.apps.FOPException >> java.util.NoSuchElementException >> at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:288) >> at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) >> at org.apache.fop.cli.Main.startFOP(Main.java:186) >> at org.apache.fop.cli.Main.main(Main.java:217) >> Caused by: java.util.NoSuchElementException >> at java.util.LinkedList$ListItr.next(LinkedList.java:888) >> at >> org.apache.fop.layoutmgr.table.RowPainter.computeContentLength(RowPainter.java:372) >> at >> org.apache.fop.layoutmgr.table.RowPainter.addAreasForCell(RowPainter.java:427) >> at >> org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPainter.java:312) >> at >> org.apache.fop.layoutmgr.table.RowPainter.handleTableContentPosition(RowPainter.java:159) >> at >> org.apache.fop.layoutmgr.table.TableContentLayoutManager.addTablePartAreas(TableContentLayoutManager.java:568) >> at >> org.apache.fop.layoutmgr.table.TableContentLayoutManager.addBodyAreas(TableContentLayoutManager.java:552) >> at >> org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:477) >> at >> org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:383) >> at >> org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:327) >> at >> org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:327) >> at >> org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:113) >> at >> org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:368) >> at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:318) >> at >> org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:683) >> at >> org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:586) >> at >> org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:581) >> at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:341) >> at >> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:450) >> at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:114) >> at >> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:138) >> at >> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267) >> at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130) >> at >> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360) >> at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190) >> at >> org.apache.xal
java.util.NoSuchElementException>org.apache.fop.apps.FOPException
Hi all, I am trying to build the DICOM standard (docbook 5) using fop 2.1, but it keeps on failing with [*]. How should I go debugging this (there is no context in the error message to locate a particular line). As a side note, the input docbook 5 is clean (jing validation using /usr/share/xml/docbook/schema/rng/5.0/docbook.rng). Thanks for comments -M [*] [INFO] FOUserAgent - Rendered page #826. [INFO] FOUserAgent - Rendered page #827. [INFO] FOUserAgent - Rendered page #828. [INFO] FOUserAgent - Rendered page #829. [ERROR] FOP - Exception org.apache.fop.apps.FOPException java.util.NoSuchElementException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:288) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:217) Caused by: java.util.NoSuchElementException at java.util.LinkedList$ListItr.next(LinkedList.java:888) at org.apache.fop.layoutmgr.table.RowPainter.computeContentLength(RowPainter.java:372) at org.apache.fop.layoutmgr.table.RowPainter.addAreasForCell(RowPainter.java:427) at org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPainter.java:312) at org.apache.fop.layoutmgr.table.RowPainter.handleTableContentPosition(RowPainter.java:159) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.addTablePartAreas(TableContentLayoutManager.java:568) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.addBodyAreas(TableContentLayoutManager.java:552) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:477) at org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:383) at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:327) at org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:327) at org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:113) at org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:368) at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:318) at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:683) at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:586) at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:581) at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:341) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:450) at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:114) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:138) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:285) ... 3 more - java.util.NoSuchElementException at java.util.LinkedList$ListItr.next(LinkedList.java:888) at org.apache.fop.layoutmgr.table.RowPainter.computeContentLength(RowPainter.java:372) at org.apache.fop.layoutmgr.table.RowPainter.addAreasForCell(RowPainter.java:427) at org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPainter.java:312) at org.apache.fop.layoutmgr.table.RowPainter.handleTableContentPosition(RowPainter.java:159) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.addTablePartAreas(TableContentLayoutManager.java:568) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.addBodyAreas(TableContentLayoutManager.java:552) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:477) at org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:383) at
Re: Custom hyphenation files
On Fri, Feb 12, 2016 at 5:37 PM, John Brownwrote: > Exception in thread "main" java.lang.StackOverflowError > at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:191) > at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244) > ...[line above repeated several times] > > at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244) Looks like: https://issues.apache.org/jira/browse/FOP-2569 2cts - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Create fop-hyph.jar during build
Hi there, I am trying to update the fop package for debian. I would like to fix an issue with offo as it is currently not working. What happen is that I downloaded the source offo distribution and extracted the *.xml within fop-2.1/hyph directory. I failed to understand the instruction to build fop-hyph.jar directly from *.xml files. Could someone please direct me to the instructions ? It is important for Debian to be able to distribute source files (*.xml) compared to binary files (*.hyp). Thanks --- For reference: The follow page seems to indicates that I should be able to extract *.xml directory in fop-2.1/hyph: http://offo.sourceforge.net/hyphenation/installation.html While the page: https://xmlgraphics.apache.org/fop/2.1/hyphenation.html#install Seems to indicate that pre-build *.hyp files should be placed directly in fop-2.1/hyph: Which is also corroborated by the build.xml rule: - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Create fop-hyph.jar during build
Just FYI, I made minimal progress. It appears that the ant rule is called 'compile-hyphenation', which in my case is called this way: $ CLASSPATH=/usr/share/java/xmlgraphics-commons-2.1.jar ant compile-hyphenation which leads to an error deep down a java command: $ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -Xss512k -classpath /home/mathieu/debian/fop/fop-2.1/build/classes org.apache.fop.hyphenation.SerializeHyphPattern /home/mathieu/debian/fop/fop-2.1/hyph /home/mathieu/debian/fop/fop-2.1/build/classes/hyph Processing /home/mathieu/debian/fop/fop-2.1/hyph/sa.xml Exception in thread "main" java.lang.StackOverflowError at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244) [...] at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244) Anyone out there building fop-hyph.jar manually ? -M - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Building fop from source using qdox 1.11
Hi all, On Mon, Aug 29, 2011 at 1:37 PM, Simon Pepping spepp...@leverkruid.eu wrote: It would be good if alternative builds of fop would run a number of our junit tests. The fop team should look into this to formulate a recommendation. I saw some activities on some of the bug I reported in fop 1.0. So I am resurecting this old thread. Here is the output of running the fop test suite during debian installation: Simply go to: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639683#24 You'll find the stripped foptest.log there. Thanks, -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
running fop tests (Re: Building fop from source using qdox 1.11)
Hi Simon, On Mon, Aug 29, 2011 at 1:37 PM, Simon Pepping spepp...@leverkruid.eu wrote: It would be good if alternative builds of fop would run a number of our junit tests. The fop team should look into this to formulate a recommendation. AFAIK running fop tests simply involved running the 'junit' ant target ? Right ? In this case the code does not compile for me: [javac] /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/util/text/LocatorFormatter.java [javac] /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:64: generics are not supported in -source 1.4 [javac] (use -source 5 or higher to enable generics) [javac] private ListAFMCharMetrics charMetrics = new java.util.ArrayListAFMCharMetrics(); [javac] ^ [javac] /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:418: for-each loops are not supported in -source 1.4 [javac] (use -source 5 or higher to enable for-each loops) [javac] for (Map.EntryString, MapString, Dimension2D entryFrom : this.kerningMap.entrySet()) { [javac]^ [javac] /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:500: annotations are not supported in -source 1.4 [javac] (use -source 5 or higher to enable annotations) [javac] @Override [javac] ^ [javac] 3 errors Can I switch the target version ? Thanks -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
picks wrong title language for metadata
Dear all, I am trying to fix a bug in fop debian package (#519592). I am copying the exact bug report here (*). Does anyone knows what is going on ? Should I simply fill in a bug report with this information ? The aoif.fo attached allowed me to reproduce the issue with fop 1.0. thanks (*) When I specify RDF metadata in my XSL-FO file, I can specify several different dc:title tags, each with a different xml:lang tag (or none at all). If I specify rdf:Description rdf:about= xmlns:dc=http://purl.org/dc/elements/1.1/; dc:titleAn Orange in Flight/dc:title dc:title xml:lang=x-defaultAn Orange in Flight/dc:title dc:title xml:lang=enAn Orange in Flight/dc:title dc:title xml:lang=esUna Naranja en Vuelo/dc:title dc:creatorThe Barefoot Waif/dc:creator /rdf:Description fop chooses the last title, even though the language for the XSL-FO document is en. The XMP metadata (as well as the /Info data) in the PDF comes out as dc:title rdf:Alt rdf:li xml:lang=x-defaultUna Naranja en Vuelo/rdf:li /rdf:Alt /dc:title which is completely wrong. Obviously, I want it to pick one of the other three. My preference is that fop picks the tag without an xml:lang attribute; then the tag with xml:lang=x-default; then the tag with the language of the document, according to the language attribute on an enclosing fo element; and then some other language (which one I don't care). This doesn't happen if dc:title contains an rdf:Alt with rdf:li elements that have xml:lang attributes, as the XMP specification requires. However, the fop page on metadata[0] demonstrates metadata that does not comply with the XMP standard, so it is reasonable to assume that fop will properly fix up metadata that isn't strictly conforming. [0] http://xmlgraphics.apache.org/fop/0.95/metadata.html ?xml version=1.0? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; font-family=Palatino Linotype,URW Palladio L,Palatino,Zapf Calligraphic,Book Antiqua,Symbol,ZapfDingbats font-size=10pt text-align=justify line-height=normal font-selection-strategy=character-by-character line-height-shift-adjustment=disregard-shifts writing-mode=lr-tb language=enfo:layout-master-setfo:simple-page-master master-name=blank page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1info:region-body display-align=center margin-bottom=0.5in margin-top=0.5in region-name=blank-body/fo:region-before region-name=xsl-region-before-blank extent=0.4in display-align=before/fo:region-after region-name=xsl-region-after-blank extent=0.4in display-align=after//fo:simple-page-masterfo:simple-page-master master-name=titlepage-first page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in column-gap=12pt column-count=1/fo:region-before region-name=xsl-region-before-first extent=0.4in display-align=before/fo:region-after region-name=xsl-region-after-first extent=0.4in display-align=after//fo:simple-page-masterfo:simple-page-master master-name=titlepage-odd page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in column-gap=12pt column-count=1/fo:region-before region-name=xsl-region-before-odd extent=0.4in display-align=before/fo:region-after region-name=xsl-region-after-odd extent=0.4in display-align=after//fo:simple-page-masterfo:simple-page-master master-name=titlepage-even page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in column-gap=12pt column-count=1/fo:region-before region-name=xsl-region-before-even extent=0.4in display-align=before/fo:region-after region-name=xsl-region-after-even extent=0.4in display-align=after//fo:simple-page-masterfo:simple-page-master master-name=lot-first page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in column-gap=12pt column-count=1/fo:region-before region-name=xsl-region-before-first extent=0.4in display-align=before/fo:region-after region-name=xsl-region-after-first extent=0.4in display-align=after//fo:simple-page-masterfo:simple-page-master master-name=lot-odd page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in column-gap=12pt column-count=1/fo:region-before region-name=xsl-region-before-odd extent=0.4in display-align=before/fo:region-after region-name=xsl-region-after-odd extent=0.4in display-align=after//fo:simple-page-masterfo:simple-page-master master-name=lot-even page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in
Re: OpenType CFF fonts
Ok, I found one reported already: https://issues.apache.org/bugzilla/show_bug.cgi?id=40464 Sorry for the noise On Fri, Sep 9, 2011 at 11:00 AM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: Dear all, I am currently going through the bug reported against the fop package in debian and there is one where the user request support for OpenType CFF fonts. Does anyone know what is the plan for this feature ? Should I simply fill a bug report ? Thanks for input -- Mathieu ref: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584472 -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Building fop from source using qdox 1.11
Dear all, I am trying to build fop from source using qdox 1.11. On my debian system here is what I did: $ wget http://mir2.ovh.net/ftp.apache.org/dist//xmlgraphics/fop/source/fop-1.0-src.tar.gz $ tar xfz fop-1.0-src.tar.gz $ cd fop-1.0 $ export CLASSPATH=/usr/share/java/qdox.jar:/usr/share/java/commons-io.jar $ ant resourcegen This leads to the following error (*). I would like to know whether: - building fop from source using qdox version != 1.6.3 is actually supported ? - did anyone tried to compile fop with a more recent qdox version ? If not, where can I download source code for qdox 1.6.3, I could not find it on the official website: http://snapshots.repository.codehaus.org/com/thoughtworks/qdox/qdox/ Thank you very much for your time, -Mathieu (*) BUILD FAILED /tmp/test/fop-1.0/build.xml:374: java.lang.NullPointerException at org.apache.fop.tools.EventProducerCollector.createMethodModel(EventProducerCollector.java:142) at org.apache.fop.tools.EventProducerCollector.processEventProducerInterface(EventProducerCollector.java:130) at org.apache.fop.tools.EventProducerCollector.scanFile(EventProducerCollector.java:100) at org.apache.fop.tools.EventProducerCollectorTask.processFileSets(EventProducerCollectorTask.java:213) at org.apache.fop.tools.EventProducerCollectorTask.execute(EventProducerCollectorTask.java:69) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.Project.executeTarget(Project.java:1329) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Total time: 13 seconds - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Building fop from source on debian
Simon, Thanks again for your kind response. I believe we are going away from the actual issue I am seeing. I do not believe this is related to the Linux distribution used but to whether or not one can use a newer qdox version to build fop or not. See my recent post. Thanks again On Thu, Aug 25, 2011 at 9:09 PM, Simon Pepping spepp...@leverkruid.eu wrote: Hi Mathieu, I am beginning to understand that you are not reporting problems in FOP's build process, but in Debian's build process of the FOP package. I looked at debian bug reports 638532 and 639162 and FOP bug report 50575. All three reports seem to refer to binaries and sources of Linux distributions, viz. RHEL and Debian. The problems reported seem to be due to the build process in those distributions, which is different from the build process provided by the FOP team. Those problems should be solved by the maintainers of those distributions. The FOP team is only responsible for FOP's own build process and the binaries published by us. It is therefore not right report those problems in a FOP bug report or to forward debian bug report 639162 to the FOP bug report. As a debian user and fan I would be willing to help debugging the problem, and I would like to see fop 1.0 in the testing distribution, but I would rather address other priorities. I also note from the Debian bug report 638532 that the maintainers report the problem as solved, although report 639162 contradicts that. The event models, of which there are currently 16, all named event.xml, are generated from the java code. In FOP's own build process, that happens in the eventResourceGenerator task, which is run after the compile-java task, the compilation of ${src.codegen.dir}/java, and the copying of ${src.codegen.dir}/java/**/*.xsl. I guess that in your build process some of these steps were not performed successfully. Best, Simon On Tue, Aug 23, 2011 at 12:23:07PM +0200, Mathieu Malaterre wrote: Hi Simon, Thanks for taking the time to answer my question. On Mon, Aug 22, 2011 at 8:31 PM, Simon Pepping spepp...@leverkruid.eu wrote: This should not happen. I looks like an error in the order of the build targets. How did you run the build? Which ant version and which java in which version are you using? ant is version 1.8.2-3 (debian) java is: java version 1.6.0_18 OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) We are only building the following two targets: DEB_ANT_BUILD_TARGET := package javadocs And the classpath is set to (during build): DEB_JARS := $(ANT_HOME)/lib/ant-trax.jar batik-all xml-apis-ext batik-libs xml-apis avalon-framework xercesImpl xmlParserAPIs xalan2 junit commons-io commons-logging xmlgraphics-commons servlet-api-2.4 qdox Reported as: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638532 Your build errors are not fop bugs, unless proven. No thanks. This is what surprised me when I saw a Null pointer exception being raised in the code. Starring at the code I could not understand if this was part of the pre-condition or if there is an issue with the code which does not support null pointer. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Building fop from source using qdox 1.11
Hi Simon, Great we are making some progress. Since you are using debian, this will be even easier. Try the attached script. If you are on a debian machine with: $ apt-cache policy libqdox-java libqdox-java: Installed: 1.12-1 You should quickly discover that indeed qdox-1.12 from debian allows proper compilation of fop, *if and only if* copied to lib/build. When using the second version (via export CLASSPATH), one indeed get the error you have seen. I could even reproduce the error using some precompile qdox jar file: mkdir /tmp/cp cd /tmp/cp wget http://mirrors.ibiblio.org/pub/mirrors/maven2/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar export CLASSPATH=/tmp/cp/qdox-1.12.jar leads also to the exact same error (*). So now the question, is how did I misread the instructions from: http://xmlgraphics.apache.org/fop/1.0/compiling.html#env-classpath How should I be setting up my CLASSPATH to compile fop ? Thanks again very much for your time, (*) BUILD FAILED /tmp/clean/fop-1.0/build.xml:374: java.lang.NullPointerException at org.apache.fop.tools.EventProducerCollector.createMethodModel(EventProducerCollector.java:142) at org.apache.fop.tools.EventProducerCollector.processEventProducerInterface(EventProducerCollector.java:130) at org.apache.fop.tools.EventProducerCollector.scanFile(EventProducerCollector.java:100) at org.apache.fop.tools.EventProducerCollectorTask.processFileSets(EventProducerCollectorTask.java:213) at org.apache.fop.tools.EventProducerCollectorTask.execute(EventProducerCollectorTask.java:69) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.Project.executeTarget(Project.java:1329) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) On Fri, Aug 26, 2011 at 8:09 PM, Simon Pepping spepp...@leverkruid.eu wrote: Earlier I wrote: I took the source code of fop-1.0, replaced lib/build/qdox-1.6.3.jar with lib/build/qdox-1.12.jar from fop's development code, and ran ant compile and ant junit. Both were successfull. There is a warning about a deprecated method, but that is not fatal. The answer to your question is: yes, fop-1.0 can be successfully built with qdox-1.12. I now did as you describe below, on a debian testing system, and got your error indeed. ls -l /usr/share/java/qdox.jar lrwxrwxrwx 1 root root 13 mei 3 23:53 /usr/share/java/qdox.jar - qdox-1.12.jar Conclusion: There is a difference between lib/build/qdox-1.12.jar in fop's development code and /usr/share/java/qdox-1.12.jar in debian testing. Looking at the code, the NPE is generated by the call method.getReturns().isVoid(). method is not null, because it has been referenced in the preceding line. So method.getReturns() is null. method.getReturns() is the deprecated method, but one would expect that such a method would always return a non-null object, since any method has a return type, even if void. You can check why debian's qdox-1.12 is different from fop's, or patch fop's code at org.apache.fop.tools.EventProducerCollector.createMethodModel(EventProducerCollector.java:142) (src/codegen/java/org/apache/fop/tools/EventProducerCollector.java) to use method.getReturnType() instead of method.getReturns(). FOP's development code uses method.getReturnType() and qdox-1.12. Simon On Fri, Aug 26, 2011 at 01:45:04PM +0200, Mathieu Malaterre wrote: Dear all, I am trying to build fop from source using qdox 1.11. On my debian system here is what I did: $ wget http://mir2.ovh.net/ftp.apache.org/dist//xmlgraphics/fop/source/fop-1.0-src.tar.gz $ tar xfz fop-1.0-src.tar.gz $ cd fop-1.0 $ export CLASSPATH=/usr/share/java/qdox.jar:/usr/share/java/commons-io.jar $ ant resourcegen This leads to the following error (*). I would like to know whether: - building fop from source using qdox version != 1.6.3 is actually supported ? - did anyone tried to compile fop with a more recent qdox version ? If not, where can I
Re: Building fop from source on debian
Hi Simon, Thanks for taking the time to answer my question. On Mon, Aug 22, 2011 at 8:31 PM, Simon Pepping spepp...@leverkruid.eu wrote: This should not happen. I looks like an error in the order of the build targets. How did you run the build? Which ant version and which java in which version are you using? ant is version 1.8.2-3 (debian) java is: java version 1.6.0_18 OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) We are only building the following two targets: DEB_ANT_BUILD_TARGET := package javadocs And the classpath is set to (during build): DEB_JARS := $(ANT_HOME)/lib/ant-trax.jar batik-all xml-apis-ext batik-libs xml-apis avalon-framework xercesImpl xmlParserAPIs xalan2 junit commons-io commons-logging xmlgraphics-commons servlet-api-2.4 qdox Reported as: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638532 Your build errors are not fop bugs, unless proven. No thanks. This is what surprised me when I saw a Null pointer exception being raised in the code. Starring at the code I could not understand if this was part of the pre-condition or if there is an issue with the code which does not support null pointer. Thanks again, -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Building fop from source on debian
Dear all I am trying to build fop from source on a debian machine, and I am getting this odd compilation error: BUILD FAILED /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/build.xml:374: java.lang.NullPointerException at org.apache.fop.tools.EventProducerCollector.createMethodModel(EventProducerCollector.java:142) at org.apache.fop.tools.EventProducerCollector.processEventProducerInterface(EventProducerCollector.java:130) at org.apache.fop.tools.EventProducerCollector.scanFile(EventProducerCollector.java:100) at org.apache.fop.tools.EventProducerCollectorTask.processFileSets(EventProducerCollectorTask.java:213) at org.apache.fop.tools.EventProducerCollectorTask.execute(EventProducerCollectorTask.java:69) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.Project.executeTarget(Project.java:1329) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.Main.start(Main.java:180) at org.apache.tools.ant.Main.main(Main.java:269) By any chance would anyone knows what is going on ? Searching on internet it looks like the main difference is the version of qdox used (debian uses 1.12) while fop seems to be shipped with 1.6.3 Thanks Reported as: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638532 -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
PDF output: fragment identifier working ?
Hi there, I am trying to link one PDF to another PDF. If I use the following: $ cat foo.fo ... fo:basic-link external-destination=bla.pdf show-destination=replacebla/fo:basic-link ... Then I can open the the foo.pdf file and properly click on the 'bla' link. However if I try to use fragment identifier like this: fo:basic-link external-destination=bla.pdf#id show-destination=replacebla at index: id/fo:basic-link Then acroread try to open a link from firefox... Could someone please let me know what is the proper syntax for linking to specific fragment identifier from pdf to another pdf ? Thanks ! -- Mathieu Using: fop 0.95 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: PDF output: fragment identifier working ?
Jeremias, Thanks a bunch ! So just for reference. If you are doing some docbook - fo generation. The output fo (from docbook 1.75) is slightly incorrect. You actually need to add: fox:destination xmlns:fox=http://xmlgraphics.apache.org/fop/extensions; internal-destination=chapter1/ right after a fo:block/ (anywhere in the document seems to be fine). And then on the other side, you need to patch the link fo:basic-link show-destination=replace external-destination=my.pdf#chapter1Managing into fo:basic-link show-destination=replace external-destination=url(my.pdf#dest=chapter1)Managing All is left to do...is try to automated that directly within docbook... Thanks ! Ref: http://www.mail-archive.com/fop-...@xmlgraphics.apache.org/msg06568.html On Mon, Jul 12, 2010 at 4:42 PM, Jeremias Maerki d...@jeremias-maerki.ch wrote: Hi Mathieu Hmm, that doesn't seem to be well documented. external-destination=url(my.pdf#dest=chapter1) ...gets you to the named destination chapter1 in my.pdf. external-destination=url(my.pdf#page=7) ...gets you to page 7 in my.pdf. Details in org.apache.fop.pdf.PDFFactory.getExternalAction(String, boolean) Info on how to create a named destination with FOP: http://xmlgraphics.apache.org/fop/latest/extensions.html#named-destinations On 12.07.2010 14:56:33 Mathieu Malaterre wrote: Hi there, I am trying to link one PDF to another PDF. If I use the following: $ cat foo.fo ... fo:basic-link external-destination=bla.pdf show-destination=replacebla/fo:basic-link ... Then I can open the the foo.pdf file and properly click on the 'bla' link. However if I try to use fragment identifier like this: fo:basic-link external-destination=bla.pdf#id show-destination=replacebla at index: id/fo:basic-link Then acroread try to open a link from firefox... Could someone please let me know what is the proper syntax for linking to specific fragment identifier from pdf to another pdf ? Thanks ! -- Mathieu Using: fop 0.95 Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
fop: leading whitespace in a fo:block
Hi, I am forwarding this issue from the docbook mailing list, if anyone would like to comment if this could be a bug in fop or not. In the following example, it seems fop does not discard the leading whitespace in a fo:block: fo:blockfo:inline/[linebreak] fo:inlineDefinition 1 ... Is this something known ? Thanks, -- Forwarded message -- From: Bob Stayton Date: Fri, Jun 18, 2010 at 6:48 PM Subject: Re: [docbook-apps] fop: anchors generating spaces To: Mathieu Malaterre , DocBook Apps I think this is an effect of FOP's handling of white spaces. In both of your examples, you introduce white space at the beginning of the para. In the first case, the white space (line feed and indent spaces) occurs after the anchor, and in the second case the white space (line feed and indent spaces) occurs before the anchor tag. In DocBook's FO output, the anchor becomes an empty fo:inline/, and emphasis also produces an fo:inline. So your FO output looks like: fo:blockfo:inline/[linebreak] fo:inlineDefinition 1 ... fo:block[linebreak] fo:inline/fo:inlineDefinition 2 ... I'm not sure what the XSL-FO spec says about this situation, but other XSL-FO processors ignore leading whitespace in an fo:block. I'm pretty sure HTML browsers do the same in p tags. It seems FOP does in one case but not the other. in The first case it treats the empty fo:inline/ as content that turns on preservation of white space after it. In the second case, all the white space occurs before the empty fo:inline. You might ask the FOP mailing list about it. Since para is a mixed content element (which means it can contain both text and other elements), white space is considered significant in the XML. The best practice is to avoid leading whitespace in para, although that's often hard to do. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Mathieu Malaterre mathieu.malate...@gmail.com To: DocBook Apps docbook-a...@lists.oasis-open.org Sent: Wednesday, June 16, 2010 12:28 AM Subject: [docbook-apps] fop: anchors generating spaces Hi, Did anyone notice that anchor/ generate spaces depending on what they are next to, eg.: ?xml version=1.0 encoding=UTF-8? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; article section title/ paraanchor id=a1/ emphasis role=boldDefinition:/emphasis This is def #1/para para anchor id=a2/emphasis role=boldDefinition:/emphasis This is def #2/para /section /article Using fop it generates the attached pdf file. Comments on whether this is expected, or is this something I should report to fop team ? Thanks, -- Mathieu - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: iso-tech: tprime;
Thanks ! I could finally get it working with: !ENTITY dejavu-prime 'symbol role=dejavufontprime;/symbol' !ENTITY dejavu-Prime 'symbol role=dejavufontPrime;/symbol' !ENTITY dejavu-tprime 'symbol role=dejavufonttprime;/symbol' Do not forget : 1. To add auto-detect/ to fop.xconf 2. To add the following in your customization layer: xsl:template match=symb...@role = 'dejavufont'] fo:inline font-family=DejaVu Sans xsl:call-template name=inline.charseq/ /fo:inline /xsl:template Cheers. Ps: fop from trunk is actually *much* more verbose about those kind of warnings than fop 0.95. On Fri, Apr 9, 2010 at 3:35 PM, Jeremias Maerki d...@jeremias-maerki.ch wrote: You should get log output by FOP telling you about the missing glyphs. I suggest you look at fonts like Arial Unicode MS or DejaVu Sans which have a larger pool of glyphs. Whether you use the character entities or direct UTF-8 characters will be no difference to FOP as it will always receive the right Unicode character. But the active font has to have the requested glyph. On 09.04.2010 10:43:56 Mathieu Malaterre wrote: Hi there, I am trying to insert the iso-tech symbol tprime; in a PDF document. I was able to insert prime; and Prime; using Bob Stayton suggestion: http://www.sagehill.net/docbookxsl/SpecialChars.html#SwitchSymbol However I cannot get tprime; to render properly using either Symbol or ZapfDingbats. I even tried, using the UTF-8 character directly in the XML document: ‴ but with no luck... Is there a way with fop to either fail with unsupported symbol, or -even better- suggest a fonts where a particular can be found. Thanks for suggestion, -- Mathieu ref: http://oreilly.com/catalog/docbook/book2/iso-tech.html Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
javax.xml.transform.TransformerException: The entity name must immediately follow the '' in the entity reference.
Hi there, I do not understand what I am doing wrong in the following xml file: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; article section title bla /title para 223c: 223C; /para /section /article $ fop -xsl /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl -xml hex.xml -pdf t.pdf /home/mathieu/.foprc: line 1: find_jars: command not found Apr 8, 2010 7:07:22 PM org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: The entity name must immediately follow the '' in the entity reference. at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:174) at org.apache.fop.cli.Main.main(Main.java:205) - ; SystemID: file:/home/mathieu/Projects/Documentation/bin/hex.xml; Line#: 9; Column#: 8 javax.xml.transform.TransformerException: The entity name must immediately follow the '' in the entity reference. at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:780) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:756) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:174) at org.apache.fop.cli.Main.main(Main.java:205) Thanks for comments, -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: javax.xml.transform.TransformerException: The entity name must immediately follow the '' in the entity reference.
On Thu, Apr 8, 2010 at 7:00 PM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: Hi there, I do not understand what I am doing wrong in the following xml file: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; article section title bla /title para 223c: 223C; Nevermind, I found out my error, it should be instead: #x223C; Sorry for the noise, -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fop generates corrupt PDF
Nevermind the solution was simple: ulink url=http://en.wikipedia.org/wiki/Instantiation_%28computer_science%29)instantiation/ulink into (remove the trailing parenthesis) ulink url=http://en.wikipedia.org/wiki/Instantiation_%28computer_science%29;instantiation/ulink Hopefully this will serve others. On Tue, Mar 16, 2010 at 5:26 PM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: Hi there, I discover that fop (at least on my machine) is generating corrupted PDF file. If I use XPDF to read it I get: ... Error (637044): Illegal character ')' Error (637047): Dictionary key must be a name object Error (637044): Illegal character ')' Error (637047): Dictionary key must be a name object Error (637044): Illegal character ')' Error (637047): Dictionary key must be a name object XtUngrabButton(drawArea,3,0) Warning: Attempt to remove nonexistent passive grab ... If I use pdfopt, I get: Error reading a content stream. The page may be incomplete. Error: /undefined in /BXlevel Operand stack: --nostringval-- Root Pages Kids Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots A D Annots 2913861 1439 0 --nostringval-- Type Annot Subtype Link Rect --nostringval-- C --nostringval-- Border --nostringval-- A --nostringval-- URI (http://en.wikipedia.org/wiki/Instantiation_%28computer_science%29) 75 --dict:10/10(ro)(G)-- (%%EOF) Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --dict:4/4(L)-- --nostringval-- 1 %dict_continue --nostringval-- --dict:7/7(L)-- --nostringval-- 8 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 2 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 3 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 3 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 3 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 3 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 3 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 3 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue --nostringval-- --dict:3/3(L)-- --nostringval-- 3 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:8/8(L)-- --nostringval-- 6 %dict_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --dict:7/7(L)-- --nostringval-- 6 %dict_continue
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Hi Georg, Thank you very much for your help ! Here it is attached as gzip compressed. It was generated from the xml with: xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml Thanks again On Wed, Feb 17, 2010 at 9:25 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
This is the latest from debian: # apt-cache policy fop fop: Installed: 1:0.95.dfsg-7 Candidate: 1:0.95.dfsg-7 Version table: *** 1:0.95.dfsg-7 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status So I am guessing this is an official release. I'd like to know if anyone else is using fop 0.95 and can reproduce the bug ? I'd like to know if this is related to fop 0.95 OR the debian packaging of fop 0.95. Thanks a bunch ! On Wed, Feb 17, 2010 at 10:35 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, With my trunk from around December the fo file works fine. I get lots of Image not found: images/draft.png and the two font warnings, but the pdf is complete with TOC, title, spot and bookmarks. Which fop version are you using? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 09:32 An: fop-users@xmlgraphics.apache.org Betreff: Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Hi Georg, Thank you very much for your help ! Here it is attached as gzip compressed. It was generated from the xml with: xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml Thanks again On Wed, Feb 17, 2010 at 9:25 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Hi Georg, Thanks a bunch for the info. I'll raise the issue on the debian package itself. fop is pretty much useless if one cannot even use a simple anchor/ element ! Just for info I did compare trunk to fop 0.95 using diff -u: $ diff -x .svn -ru fop-0_95 trunk | wc 149462 621452 5984407 There has been quite some changes ! On Wed, Feb 17, 2010 at 11:08 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, Now we are talking. I can reproduce your error with the 0.95 binary freshly downloaded from apache. On a Windows7-System. So it's not a debian problem but if you can switch to trunk, the problem is solved. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 10:53 An: fop-users@xmlgraphics.apache.org Cc: 570...@bugs.debian.org Betreff: Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) This is the latest from debian: # apt-cache policy fop fop: Installed: 1:0.95.dfsg-7 Candidate: 1:0.95.dfsg-7 Version table: *** 1:0.95.dfsg-7 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status So I am guessing this is an official release. I'd like to know if anyone else is using fop 0.95 and can reproduce the bug ? I'd like to know if this is related to fop 0.95 OR the debian packaging of fop 0.95. Thanks a bunch ! On Wed, Feb 17, 2010 at 10:35 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, With my trunk from around December the fo file works fine. I get lots of Image not found: images/draft.png and the two font warnings, but the pdf is complete with TOC, title, spot and bookmarks. Which fop version are you using? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 09:32 An: fop-users@xmlgraphics.apache.org Betreff: Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Hi Georg, Thank you very much for your help ! Here it is attached as gzip compressed. It was generated from the xml with: xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml Thanks again On Wed, Feb 17, 2010 at 9:25 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section
java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:375)
Hi there, I have a new segfault for you: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title blockquote para The emphasis role=boldanchor id=example.anchor.1/anchor/emphasis element is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target. /para /blockquote /section /article which results in the attached .fo file. which later leads to: $ ./fop test2.fo test2.pdf Feb 17, 2010 11:36:37 AM org.apache.fop.apps.FOURIResolver resolve SEVERE: Error with opening URL 'http://docbook.sourceforge.net/release/images/draft.png': Network is unreachable Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:9588) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:10285) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:10980) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:11672) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:12361) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:13050) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:13736) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:14427) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:15118) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:15806) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:16496) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:17186) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:17873) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:18563) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:19253) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:19940) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:20631) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:21322) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:22010) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Feb 17, 2010 11:36:37 AM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at
Re: SEVERE: Exception java.lang.NullPointerException
) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) hyphenation is properly installed. Any other suggestion ? Thanks -Mathieu On Mon, Feb 15, 2010 at 4:16 PM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, Your problem is, you go from xml to pdf in one step. The second step generates an error and the exact location of the error gets lost. You can locate the error by taking one step after the other. Take your XML file, apply transformation. The result is a fo file. This fo file can then generate a pdf (or an error, in your case), but fop will tell you the (more or less) exact location of the error. Other possibility: Look somewhere after the second occurrence of an italic text in ZapfDingbats font. Third possibility: check if hyphenation is installed correctly. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Montag, 15. Februar 2010 16:09 An: fop-users@xmlgraphics.apache.org Betreff: SEVERE: Exception java.lang.NullPointerException Hi there, I am starring at the following fop execption and I am wondering how I can track it down back to the original XML -culprit- line. Here it is: [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstruction.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstructionGeneral.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/SimulationResultAnalysis.png Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by more than 50 points. (fo:block, location: 41/59) Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010
java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) Thanks -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail:
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) HTH Ref: http://www.docbook.org/tdg/en/html/anchor.html On Tue, Feb 16, 2010 at 2:16 PM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING
SEVERE: Exception java.lang.NullPointerException
Hi there, I am starring at the following fop execption and I am wondering how I can track it down back to the original XML -culprit- line. Here it is: [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstruction.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstructionGeneral.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/SimulationResultAnalysis.png Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by more than 50 points. (fo:block, location: 41/59) Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with 'any,italic,700'. Feb 15, 2010 4:09:48 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at
fop and visible ulink
Hi there, I am wondering if there is a way to hide the URL of a ulink and make it a hyperlink in PDF output ? Here is my test case: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN docbookV4.5/docbookx.dtd [] article titleTest ulink/title paraulink url=http://bla.com/index.html;Link to bla/ulink/para /article The output PDF is 'clickable', but the URL is visible. Thanks for info, -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fop and visible ulink
http://docbook.sourceforge.net/release/xsl/current/doc/fo/ulink.show.html sorry for the noise On Fri, Feb 12, 2010 at 3:44 PM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: Hi there, I am wondering if there is a way to hide the URL of a ulink and make it a hyperlink in PDF output ? Here is my test case: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN docbookV4.5/docbookx.dtd [] article titleTest ulink/title paraulink url=http://bla.com/index.html;Link to bla/ulink/para /article The output PDF is 'clickable', but the URL is visible. Thanks for info, -- Mathieu -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
What is the status of fop ?
Hi there, I am currently trying to check if my group can start using docbook for writing high quality documentation. As far as I understand there are three competitors dblatex, xmlroff and fop. dblatex is a strange beast as it 'just works', but you cannot control anything (PNG file are degraded). I am now trying fop on my debian system: $ fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl -pdf article.pdf -xml in.xml which returns the following error (*). The input example was simply: $ cat in.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; article articleinfo titletitle/title author firstnameauthor/firstname surnameauthor2/surname affiliation orgnamebla/orgname /affiliation /author pubdate2001/pubdate /articleinfo section titlesection 1/title paratext section 1/para figure titlefirst/title mediaobject imageobject imagedata fileref=graphics2.png/ /imageobject /mediaobject /figure /section /article Could someone please confirm whether including PNG file is supported or not ? Thanks, -- Mathieu Ps: I haven't yet tried xmlroff (*) Jan 27, 2010 3:02:25 PM org.apache.fop.cli.InputHandler warning WARNING: javax.xml.transform.TransformerException: Making portrait pages on USletter paper (8.5inx11in) Jan 27, 2010 3:02:25 PM org.apache.fop.cli.InputHandler warning WARNING: javax.xml.transform.TransformerException: Read /usr/share/doc/docbook-xsl/README.Debian.gz section 5(a). Jan 27, 2010 3:02:26 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en Jan 27, 2010 3:02:26 PM org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root (http://www.w3.org/1999/XSL/Format) Jan 27, 2010 3:02:26 PM org.apache.fop.fo.FOTreeBuilder fatalError SEVERE: javax.xml.transform.TransformerException: java.lang.NullPointerException Jan 27, 2010 3:02:26 PM org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - ; SystemID: file:/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl; Line#: 223; Column#: 59 javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2405) at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) Caused by: java.lang.NullPointerException at org.apache.fop.render.pdf.FopPDFImage.setup(FopPDFImage.java:144) at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:794) at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1725) at org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1652) at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:748) at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:541) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:631) at
Re: What is the status of fop ?
Thanks for the hint this is indeed reported in the FAQ: http://xmlgraphics.apache.org/fop/faq.html#saxexception-mismatch However I am already using the latest of xalan: $ apt-cache policy libxalan2-java libxalan2-java: Installed: 2.7.1-5 Candidate: 2.7.1-5 Version table: *** 2.7.1-5 0 200 http://ftp.fr.debian.org testing/main Packages 100 http://ftp.fr.debian.org unstable/main Packages 100 /var/lib/dpkg/status 2.7.1-2 0 500 http://ftp.fr.debian.org lenny/main Packages Is there anything else I should be looking at ? Thanks again On Wed, Jan 27, 2010 at 3:21 PM, Pascal Sancho pascal.san...@takoma.fr wrote: Hi Mathieu, PNG is supported by FOP (see [1] for further information) Reading your log, there is something wrong in your XSL-FO: WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root (http://www.w3.org/1999/XSL/Format) You should have a look into that direction. That is confirmed by the rest of the error message, thrown during the Xalan stage. [1] http://xmlgraphics.apache.org/fop/0.95/graphics.html#png Pascal Mathieu Malaterre a écrit : Hi there, I am currently trying to check if my group can start using docbook for writing high quality documentation. As far as I understand there are three competitors dblatex, xmlroff and fop. dblatex is a strange beast as it 'just works', but you cannot control anything (PNG file are degraded). I am now trying fop on my debian system: $ fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl -pdf article.pdf -xml in.xml which returns the following error (*). The input example was simply: $ cat in.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; article articleinfo titletitle/title author firstnameauthor/firstname surnameauthor2/surname affiliation orgnamebla/orgname /affiliation /author pubdate2001/pubdate /articleinfo section titlesection 1/title paratext section 1/para figure titlefirst/title mediaobject imageobject imagedata fileref=graphics2.png/ /imageobject /mediaobject /figure /section /article Could someone please confirm whether including PNG file is supported or not ? Thanks, -- Mathieu Ps: I haven't yet tried xmlroff (*) Jan 27, 2010 3:02:25 PM org.apache.fop.cli.InputHandler warning WARNING: javax.xml.transform.TransformerException: Making portrait pages on USletter paper (8.5inx11in) Jan 27, 2010 3:02:25 PM org.apache.fop.cli.InputHandler warning WARNING: javax.xml.transform.TransformerException: Read /usr/share/doc/docbook-xsl/README.Debian.gz section 5(a). Jan 27, 2010 3:02:26 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en Jan 27, 2010 3:02:26 PM org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root (http://www.w3.org/1999/XSL/Format) Jan 27, 2010 3:02:26 PM org.apache.fop.fo.FOTreeBuilder fatalError SEVERE: javax.xml.transform.TransformerException: java.lang.NullPointerException Jan 27, 2010 3:02:26 PM org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - ; SystemID: file:/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl; Line#: 223; Column#: 59 javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2405) at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356
Re: What is the status of fop ?
That was an issue with fop 0.94. For some reason I forgot to update my system to the latest fop 0.95... Sorry for the noise On Wed, Jan 27, 2010 at 3:43 PM, John Burgess john.burg...@riskdecisions.com wrote: You could try running the transform separately to produce the .fo file, then feed that into fop afterwards. -- John Burgess Risk Decisions Limited Whichford House Parkway Court Oxford Business Park South OX4 2JY T: 01865 718666 F: 01865 718600 M: 07984 863890 E: john.burg...@riskdecisions.com W: http://www.riskdecisions.com Mathieu Malaterre wrote: Hi there, I am currently trying to check if my group can start using docbook for writing high quality documentation. As far as I understand there are three competitors dblatex, xmlroff and fop. dblatex is a strange beast as it 'just works', but you cannot control anything (PNG file are degraded). I am now trying fop on my debian system: $ fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl -pdf article.pdf -xml in.xml which returns the following error (*). The input example was simply: $ cat in.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; article articleinfo titletitle/title author firstnameauthor/firstname surnameauthor2/surname affiliation orgnamebla/orgname /affiliation /author pubdate2001/pubdate /articleinfo section titlesection 1/title paratext section 1/para figure titlefirst/title mediaobject imageobject imagedata fileref=graphics2.png/ /imageobject /mediaobject /figure /section /article Could someone please confirm whether including PNG file is supported or not ? Thanks, - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: What is the status of fop ?
On Wed, Jan 27, 2010 at 3:54 PM, Jeremias Maerki d...@jeremias-maerki.ch wrote: I'd suggest: - to upgrade to the latest FOP release (0.95). You seem to be using an older release. - to avoid running FOP with GCJ or any other GNU Classpath based JVM because its XML support has proven to be quite buggy. I'm happily producing PDFs from DocBook XSL 1.75 with FOP 0.95 and PNG images. Are your PNG still anti-aliased in your output PDF file ? I cannot seems to find the option for controlling this. Thanks, -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Exception in thread main java.lang.OutOfMemoryError
On debian fop is using: JAVA_OPTS. I have seen also FOP_OPTS being used. Anyway the fop command is usally simply a wrapper around the java command, so you could just open that file and change what ENV var they are using for passing option to the java command. HTH -M Ref: http://gdcm.sourceforge.net/wiki/index.php/Module_Attributes#How_To On 2/14/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello All, I am trying to convert an XML document(approx about 110 pages long, 777KB) into a pdf document using an FO transformation. But it gives me the following error. Exception in thread main java.lang.OutOfMemoryError I tried the last three solutions mentioned here. http://xmlgraphics.apache.org/fop/0.93/running.html But I donot know how to increase the heap size available to the JVM.Can anybody let me know how to do it so I can try that last option too. Thanks, Sindhu Email Firewall made the following annotations - --- NOTICE --- This message is for the designated recipient only and may contain confidential, privileged or proprietary information. If you have received it in error, please notify the sender immediately and delete the original and any copy or printout. Unintended recipients are prohibited from making any other use of this e-mail. Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission. - -- Mathieu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hello world test with fop
On 5/22/06, Chris Bowditch [EMAIL PROTECTED] wrote: I notice from the FO file that you are using fo:table-and-caption, which is not implemented in FOP v0.20.5 or in the latest v0.92. Delete the fo:table-and-caption element, and replace it with the child fo:table. I reckon you should see the tables then. snip/ Chris, Thanks a lot for your help unfortunately it still does not work. all I did was: s/fo:table-and-caption/fo:table/g Then rerun fop (with -d) I get (*). Unfortunately I still cannot see the table. Is there a way to actually see what went wrong (some other flags with fop) ? Thanks Mathieu (*) [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: fo/sample-table_1.fo [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: test.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] base directory: file:/tmp/fop/fo/ [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [ERROR] property - xml:lang is not implemented yet. [INFO] [1] [WARNING] table-layout=auto is not supported, using fixed! [WARNING] table-layout=auto is not supported, using fixed! [INFO] JAI support was not installed (read: not present at build time). Trying to use Jimi instead [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 547Kb [DEBUG] Current heap size: 759Kb [DEBUG] Total memory used: 211Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 876ms [DEBUG] Pages rendered: 1 [DEBUG] Avg render time: 876ms/page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hello world test with fop
On 5/22/06, Jeremias Maerki [EMAIL PROTECTED] wrote: No, don't replace fo:table-and-caption with fo:table, remove all fo:table-and-caption elements. o ok. Sorry I completely misunderstood the previous post. Thanks for the correction ! Works fine now. Regards, Mathieu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hello world test with fop
Hello there, I have just started with XSL-FO and I have the following problem. I am not able to produce the proper pdf file. Here is what I have: http://gdcm.sourceforge.net/test.pdf here is what I should have: http://www.antennahouse.com/XSLsample/pdf/sample-table_1.pdf I am working on Debian/linux with fop (apache). To produce test.pdf I did the following: $ history 1 mkdir /tmp/2 2 cd /tmp/2 3 wget http://www.antennahouse.com/XSLsample/sample-all-files.zip 4 unzip sample-all-files.zip 5 fop fo/sample-table_1.fo test.pdf and fop execution produced: [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [ERROR] property - xml:lang is not implemented yet. [INFO] [1] [INFO] JAI support was not installed (read: not present at build time). Trying to use Jimi instead [INFO] Parsing of document complete, stopping renderer Any comment/suggestion welcome -- Mathieu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]