Re: java.lang.NullPointerException

2008-04-16 Thread Chris Bowditch

pdiop wrote:
I need your help everybody. I am getting the following error while 
running fop on resin : java.lang.NullPointerException at 
 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:290) 


 at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
 at com.caucho.xml.SAXBuilder.popElement(SAXBuilder.java:291) at

What version of FOP are you running? Can you provide a sample FO that 
causes the error (not XML + XSLT)


Thanks,

Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



XML to PDF (embedded) images paths

2008-04-16 Thread bonekrusher

Hi,

This might be a dumb question but I am trying to get an understanding of
best practices.

I have an XSLT that creates my PDF. My fo:external-graphic @src path is
always going to be a relative path. e.g. src=file:g0001.png. When
running XML - PDF I get image not found. 

When I use XML-FO-PDF, I know my paths need to be relative to the FO file.

This is my question. If doing XML-PDF where is my relative path?

Thanks, 
-- 
View this message in context: 
http://www.nabble.com/XML-to-PDF-%28embedded%29-images-paths-tp16721014p16721014.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.NullPointerException

2008-04-16 Thread pdiop

I am using Fop 0.94 with Resin 2.1.17 an Java 1.4. 

I am not exactly using a fo file ut a xslt with fo inside and a xml, here is
the sample of the xslt file:

?xml version=1.0 encoding=ISO-8859-1?

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;  exclude-result-prefixes=fo
xsl:output method=xml version=1.0 omit-xml-declaration=no
indent=yes/

!-- inclusion --
xsl:include href=all.xsl/

xsl:template match=cahier
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
fo:simple-page-master master-name=simpleA4 
page-height=29.7cm
page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm
margin-right=2cm
fo:region-body margin-bottom=1cm /
fo:region-after extent=0.5cm/ 
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=simpleA4
initial-page-number=1
fo:static-content flow-name=xsl-region-after
fo:block text-align=end font-size=70%
font-weight=normal 
xsl:textPage /xsl:textfo:page-number/ 
/fo:block
/fo:static-content
 
fo:flow flow-name=xsl-region-body font-size=60%
font-weight=normal line-height=10px
  
xsl:call-template name=entete/
 
!-- Début de la cration --
xsl:apply-templates select=cours/
xsl:apply-templates select=professeur/
xsl:call-template name=line/

xsl:if test=presentation/*  
xsl:apply-templates 
select=definition/
xsl:call-template name=space/
/xsl:if
xsl:if test=coordonnees/*   
xsl:apply-templates select=adresse/
xsl:call-template name=space/
/xsl:if
xsl:if test=materiel/*
xsl:apply-templates select=contenu/
xsl:call-template name=space/
/xsl:if
xsl:if test=evaluations/*   
xsl:apply-templates select=examens/
xsl:call-template name=space/
/xsl:if
xsl:if test=/[EMAIL PROTECTED]  
xsl:call-template name=lois 
/
xsl:call-template name=space/
/xsl:if
xsl:if test=cours/* 
xsl:apply-templates select=cours/
/xsl:if
   /fo:flow
 
   
/fo:page-sequence
/fo:root
/xsl:template

I must also say that the program is running fine in a standalone version
(web project) but once I integrate to a bigger project with lot of things in
it I get the error.



cbowditch wrote:
 
 pdiop wrote:
 I need your help everybody. I am getting the following error while 
 running fop on resin : java.lang.NullPointerException at 
   
 org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:290)
  
 
   at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
   at com.caucho.xml.SAXBuilder.popElement(SAXBuilder.java:291) at
 
 What version of FOP are you running? Can you provide a sample FO that 
 causes the error (not XML + XSLT)
 
 Thanks,
 
 Chris
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/java.lang.NullPointerException-tp16713234p16721673.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: endElement() called for fo:root -- solution

2008-04-16 Thread The Web Maestro
Does the error tell you where the problem lies, or do you have to find
the needle?

Clay



On 4/15/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Just an FYI on how to fix a very serious looking error that was driving me
 crazy -- here is the partial trace:

 ERROR [org.apache.fop.fo.FOTreeBuilder]
 javax.xml.transform.TransformerException: java.lang.IllegalStateException:
 endElement() called for fo:root where there is no current element
 ERROR [STDERR] file:///Report.xsl; Line #17; Column #40;
 java.lang.IllegalStateException: endElement() called for fo:root where
 there is no current element

 It took me a bit, but I finally figured it out (at least in my case).  I
 had a table that had extra cells in a row.  For example:

 column count=5
 column colWidth=25mm datatype=C/
 column colWidth=10mm datatype=I/
 column colWidth=10mm datatype=C/
 column colWidth=10mm datatype=I/
 column colWidth=20mm datatype=I/

 reportrow
 cellA/cell
 cellB/cell
 cellC/cell
 cellD/cell
 cellE/cell
 /reportrow

 reportrow
 cellA/cell
 cellB/cell
 cellC/cell
 cellD/cell
 cellE/cell
 cellF/cell !--BAD--
 /reportrow

 HTH
 -Lou


-- 
Regards,

The Web Maestro
-- 
[EMAIL PROTECTED] - http://ourlil.com/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.NullPointerException

2008-04-16 Thread andreas . delmelle
- Oorspronkelijk bericht -
Van: pdiop [mailto:[EMAIL PROTECTED]


Hi,

Note that Chris has asked a *FO*, not a stylesheet. Reason why we always ask 
the *result* of the XSL transform, is that the step of transforming the base 
XML into FO is actually not done by FOP.
On top of that, we cannot possibly reproduce your issue with a stylesheet 
alone. We'd need at least the included stylesheet and a sample XML.

I am using Fop 0.94 with Resin 2.1.17 an Java 1.4.

Java 1.4.2? Which build? Is it the Sun JVM, or a different vendor?


I am not exactly using a fo file ut a xslt with fo inside and a xml, here is
the sample of the xslt file:
snip /

I must also say that the program is running fine in a standalone version
(web project) but once I integrate to a bigger project with lot of things in
it I get the error.

I don't think the problem is situated in the FO itself.

I suspect the issue is caused by the combination of XML parser and XSLT 
processor in the environment. Sun Java, for example, ships with versions of 
Xerces and Xalan, and in some (mainly older) builds, the included versions are 
a bit buggy.

Try to make sure that the 'bigger' environment is using the same combination as 
in your local test. No idea how to configure this in Resin, but for the 
standard Java way, google around for 'Java endorsed' or 'Java bootclasspath'.


HTH!

Cheers

Andreas



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is table cell merging supported?

2008-04-16 Thread Andrejus Chaliapinas
Hi,

Not sure if that is specified on FOP compliance page, but could I have HTML
construct like:

table border=1 width=100% id=table1
tr
td colspan=2MergedCell1/td
td colspan=2MergedCell2/td
/tr
tr
tdCell1/td
td Cell2/td
td Cell3/td
td Cell4/td
/tr
/table

normally processed with latest FOP? If so - where could I find an example,
if not - is it supposed to be inside FOP 0.95?

Thank you,
Andrejus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IOException during build

2008-04-16 Thread Raphael Parree
Hi,

 

I am getting an IOException while building the latest trunk version. It
occurs on the first fixcrlf (line 430) for the EventFormatter.xml. The
EventFormatter.xml is writable; I can delete it manually, so there should be
no IOException. Is the build process somehow locking it?

 

Anu clues?



Re: endElement() called for fo:root -- solution

2008-04-16 Thread Louis . Masters
It was a needle.  The error points to the root template which does contain 
the issue, but my root template had some imports and several hundred lines 
of code.

I'm just bringing this up in case anyone else runs into something similar 
they will have a good place to start.

-Lou

~~
LOG-NET, Inc.
The Logistics Network Management System
~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~
CONFIDENTIAL  PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content, 
the information contained herein is privileged and confidential 
information/work product. The communication is intended for the use of the 
individual or entity named above.  If the reader of this transmission is 
not the intended recipient, you are  hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please 
notify the sender immediately by telephone (732-758-6800) or by electronic 
mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper 
or otherwise, which you may have of this communication.  Thank you.
~~



The Web Maestro [EMAIL PROTECTED] 
04/16/2008 09:23 AM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users@xmlgraphics.apache.org
cc

Subject
Re: endElement() called for fo:root -- solution






Does the error tell you where the problem lies, or do you have to find
the needle?

Clay



On 4/15/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Just an FYI on how to fix a very serious looking error that was driving 
me
 crazy -- here is the partial trace:

 ERROR [org.apache.fop.fo.FOTreeBuilder]
 javax.xml.transform.TransformerException: 
java.lang.IllegalStateException:
 endElement() called for fo:root where there is no current element
 ERROR [STDERR] file:///Report.xsl; Line #17; Column #40;
 java.lang.IllegalStateException: endElement() called for fo:root where
 there is no current element

 It took me a bit, but I finally figured it out (at least in my case).  I
 had a table that had extra cells in a row.  For example:

 column count=5
 column colWidth=25mm datatype=C/
 column colWidth=10mm datatype=I/
 column colWidth=10mm datatype=C/
 column colWidth=10mm datatype=I/
 column colWidth=20mm datatype=I/

 reportrow
 cellA/cell
 cellB/cell
 cellC/cell
 cellD/cell
 cellE/cell
 /reportrow

 reportrow
 cellA/cell
 cellB/cell
 cellC/cell
 cellD/cell
 cellE/cell
 cellF/cell !--BAD--
 /reportrow

 HTH
 -Lou


-- 
Regards,

The Web Maestro
-- 
[EMAIL PROTECTED] - http://ourlil.com/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Is table cell merging supported?

2008-04-16 Thread andreas . delmelle
- Oorspronkelijk bericht -
Van: Andrejus Chaliapinas [mailto:[EMAIL PROTECTED]


Hi

Not sure if that is specified on FOP compliance page, but could I have HTML
construct like:

table border=1 width=100% id=table1
   tr
   td colspan=2MergedCell1/td
   td colspan=2MergedCell2/td

See the property 'number-columns-spanned'.

HTH!

Cheers

Andreas



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multi layer xml directories

2008-04-16 Thread Eckel, George
Right now when I put all of my xml files in the same directory everything 
works. If I try to use a subdirectory, styles are not applied to the xml files 
in the subdirectory in the html output (PDF is fine). Does anyone know how to 
apply the styles to the files in the subdirectory?

/programmer guide
/programmer guide/API Reference
 
Styles not applied in this directory 
for html output

Thanks!

George..


Re: java.lang.NullPointerException

2008-04-16 Thread Jeremias Maerki
I agree with Andreas' observations. Looking at the source code of 0.94,
the SAX delegate is probably null which would suggest that this Caucho
SAXBuilder class didn't call startDocument() before starting with
startElement() calls. So, probably a breach of the SAX ContentHandler
contract by the caller.

On 16.04.2008 15:47:03 andreas.delmelle wrote:
 - Oorspronkelijk bericht -
 Van: pdiop [mailto:[EMAIL PROTECTED]
 
 
 Hi,
 
 Note that Chris has asked a *FO*, not a stylesheet. Reason why we always ask 
 the *result* of the XSL transform, is that the step of transforming the base 
 XML into FO is actually not done by FOP.
 On top of that, we cannot possibly reproduce your issue with a stylesheet 
 alone. We'd need at least the included stylesheet and a sample XML.
 
 I am using Fop 0.94 with Resin 2.1.17 an Java 1.4. 
 
 Java 1.4.2? Which build? Is it the Sun JVM, or a different vendor?
 
 
 I am not exactly using a fo file ut a xslt with fo inside and a xml, here is
 the sample of the xslt file:
 snip /
 
 I must also say that the program is running fine in a standalone version
 (web project) but once I integrate to a bigger project with lot of things in
 it I get the error.
 
 I don't think the problem is situated in the FO itself.
 
 I suspect the issue is caused by the combination of XML parser and XSLT 
 processor in the environment. Sun Java, for example, ships with versions of 
 Xerces and Xalan, and in some (mainly older) builds, the included versions 
 are a bit buggy.
 
 Try to make sure that the 'bigger' environment is using the same combination 
 as in your local test. No idea how to configure this in Resin, but for the 
 standard Java way, google around for 'Java endorsed' or 'Java bootclasspath'.
 
 
 HTH!
 
 Cheers
 
 Andreas



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: images in pdf file

2008-04-16 Thread morten
hi

That was a good hint :-)
I had installed sun java, but had not realised that I had java-gcj installed 
also.

I have now changed the symlinks in /etc/alternatives/ja* to point to my sun 
java binaries in /usr/java/jre1.6.0_05/bin/java

It works now, and I can go back to tweaking my docbook out.

Thanks for the help.
morten

On Tuesday 15 April 2008 09:30:01 Jan Wilhelm wrote:
 Hi Morten,

 it appears that you are using two different JREs.
 ... in  /usr/java/jre1.6.0_05/ ... vs.
 $ java --version
 java version 1.5.0 ...

 Jan


 -Ursprüngliche Nachricht-
 Von: morten [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 14. April 2008 19:47
 An: fop-users@xmlgraphics.apache.org
 Betreff: Re: images in pdf file

 Thanks for the reply.
 ok, I had misread the page.

 So now I have installed JAI image I/O tools in my java jre directory. That
 is in  /usr/java/jre1.6.0_05/

 But I still get same SEVERE: Image not available. Is there a way for me to
 test if my installation is ok?

 I found this page: http://xmlgraphics.apache.org/commons/image-loader.html
 but it is beyond my limited java skill.

 Help is appreciated.
 morten


 if it is relevant:
 $ java --version
 java version 1.5.0
 gij (GNU libgcj) version 4.3.0 20080202 (experimental) [trunk revision
 132072]

 On Sunday 13 April 2008 14:02:54 Peter Coppens wrote:
  Wrt to the imagepreloader not found, you might want to check
  http://xmlgraphics.apache.org/fop/0.95/graphics.html
 
  To summarize, you will need JAI Image I/O Tools for bmp to be
  supported as an input format
 
  Hth,
 
  Peter
 
  On 13 Apr 2008, at 00:07, morten wrote:
   hi
  
   I am trying to do a basic docbook - xls-fo - pdf
  
   It is a basic docbook book written in conglomerate on my newly
   installed
   debian system. I use the latest fop-095beta.
  
   I have tried to include an image, but it does not show up in the pdf.
  
   What I do:
   - use conglomerate to create a small docbook called mbndocbooktest.xml
  
   - generate the xls-fo : I use the style sheet included in debian to
   do the
   conversion.
   $ xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
   mbndocbooktest.xml  mbndocbooktest.fo.xml
  
   - convert using fop
   $ ../../download/fop/fop-0.95beta/fop mbndocbooktest.fo.xml
   mbndocbooktest.pdf
  
   Selected output is shown at the end.
  
   I also have an issue with draft.png, but I have read that it is a
   question of
   status=draft or something to that effect. The interesting part is
   that the
   error related to this image is Background image not available.
   This makes
   sense since the draft.png is unavailable.
  
   My error is No ImagePreloader found. I have tried to google it,
   and search
   the archive but apparently I am looking in the wrong place.
  
   Any suggestions?
   cheers
  
   Morten
  
  
   Selected texts from the process.
   --- docbook xml extract ---
  chapter status=quot;notdraftquot;
  titleHello, world/title
  screenshot
  graphic fileref=file:///home/morten/Devel/FS/SomeImage.bmp
   /
  /screenshot
  paraThis is my first DocBook file./para
  paralkjlkjlkj/para
  /chapter
  
   --- xml-fo extract ---
  fo:block
  fo:external-graphic
   src=url(file:///home/morten/Devel/FS/SomeImage.bmp) width=auto
   height=auto content-width=auto content-height=auto/
  /fo:block
  
   --- Fop error extract ---
   12-Apr-08 11:35:47
   org.apache.fop.fo.properties.CommonBorderPaddingBackground
   init
   SEVERE: Background image not available:
   http://docbook.sourceforge.net/release/images/draft.png
  
   12-Apr-08 11:35:48  org.apache.fop.fo.flow.ExternalGraphic bind
   SEVERE: Image not available: No ImagePreloader found for
   file:///home/morten/Devel/FS/SomeImage.bmp
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: endElement() called for fo:root -- solution

2008-04-16 Thread Jeremias Maerki
Hmm. I tried to reproduce that but didn't manage (0.94, 0.95beta and
current Trunk). Since 0.95beta, FOP throws a validation exception if
there are more cells in a row that have been specified (when columns are
explicitely specified):
http://markmail.org/message/gcc2767ckmahiqf6

On 16.04.2008 16:03:47 Louis.Masters wrote:
 It was a needle.  The error points to the root template which does contain 
 the issue, but my root template had some imports and several hundred lines 
 of code.
 
 I'm just bringing this up in case anyone else runs into something similar 
 they will have a good place to start.
 
 -Lou
 
 ~~
 LOG-NET, Inc.
 The Logistics Network Management System
 ~~
 230 Half Mile Road
 Third Floor
 Red Bank, NJ 07701
 PH: 732-758-6800
 FAX: 732-747-7497
 http://www.LOG-NET.com
 ~~
 CONFIDENTIAL  PRIVILEGED
 Unless otherwise indicated or if obvious from the nature of the content, 
 the information contained herein is privileged and confidential 
 information/work product. The communication is intended for the use of the 
 individual or entity named above.  If the reader of this transmission is 
 not the intended recipient, you are  hereby notified that any 
 dissemination, distribution or copying of this communication is strictly 
 prohibited.  If you have received this communication in error, please 
 notify the sender immediately by telephone (732-758-6800) or by electronic 
 mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper 
 or otherwise, which you may have of this communication.  Thank you.
 ~~
 
 
 
 The Web Maestro [EMAIL PROTECTED] 
 04/16/2008 09:23 AM
 Please respond to
 fop-users@xmlgraphics.apache.org
 
 
 To
 fop-users@xmlgraphics.apache.org
 cc
 
 Subject
 Re: endElement() called for fo:root -- solution
 
 
 
 
 
 
 Does the error tell you where the problem lies, or do you have to find
 the needle?
 
 Clay
 
 
 
 On 4/15/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Just an FYI on how to fix a very serious looking error that was driving 
 me
  crazy -- here is the partial trace:
 
  ERROR [org.apache.fop.fo.FOTreeBuilder]
  javax.xml.transform.TransformerException: 
 java.lang.IllegalStateException:
  endElement() called for fo:root where there is no current element
  ERROR [STDERR] file:///Report.xsl; Line #17; Column #40;
  java.lang.IllegalStateException: endElement() called for fo:root where
  there is no current element
 
  It took me a bit, but I finally figured it out (at least in my case).  I
  had a table that had extra cells in a row.  For example:
 
  column count=5
  column colWidth=25mm datatype=C/
  column colWidth=10mm datatype=I/
  column colWidth=10mm datatype=C/
  column colWidth=10mm datatype=I/
  column colWidth=20mm datatype=I/
 
  reportrow
  cellA/cell
  cellB/cell
  cellC/cell
  cellD/cell
  cellE/cell
  /reportrow
 
  reportrow
  cellA/cell
  cellB/cell
  cellC/cell
  cellD/cell
  cellE/cell
  cellF/cell !--BAD--
  /reportrow
 
  HTH
  -Lou
 
 
 -- 
 Regards,
 
 The Web Maestro
 -- 
 [EMAIL PROTECTED] - http://ourlil.com/
 My religion is simple. My religion is kindness.
 - HH The 14th Dalai Lama of Tibet
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XML to PDF (embedded) images paths

2008-04-16 Thread Jeremias Maerki
Using relative URIs/URLs is usually a good idea but you need to make
sure the base URI/URL is set accordingly. This is done either through
the configuration file (base setting) or through the setBaseURL()
methods on FopFactory and FOUserAgent.

If you do userAgent.setBaseURL(file:///C:/Temp/) and use
file:g0001.png, the effective URL is:
file:///C:/Temp/g0001.png

If you don't set the base URL, then the base URL is usually the
current directory of the application. If you're running FOP from the
command-line interface it's the directory where the source file is found.

On 16.04.2008 13:46:29 bonekrusher wrote:
 
 Hi,
 
 This might be a dumb question but I am trying to get an understanding of
 best practices.
 
 I have an XSLT that creates my PDF. My fo:external-graphic @src path is
 always going to be a relative path. e.g. src=file:g0001.png. When
 running XML - PDF I get image not found. 
 
 When I use XML-FO-PDF, I know my paths need to be relative to the FO file.
 
 This is my question. If doing XML-PDF where is my relative path?
 
 Thanks, 
 -- 
 View this message in context: 
 http://www.nabble.com/XML-to-PDF-%28embedded%29-images-paths-tp16721014p16721014.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IOException during build

2008-04-16 Thread Jeremias Maerki
Works for me. Does this IOException have an error message associated
with it? An IOException can be anything.

On 16.04.2008 16:24:37 Raphael Parree wrote:
 Hi,
 
  
 
 I am getting an IOException while building the latest trunk version. It
 occurs on the first fixcrlf (line 430) for the EventFormatter.xml. The
 EventFormatter.xml is writable; I can delete it manually, so there should be
 no IOException. Is the build process somehow locking it?
 
  
 
 Anu clues?
 




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: IOException during build

2008-04-16 Thread Raphael Parree

Jeremias,

I guess it has to do with the TransformerImpl implementation in the JVM. In
JDK jdk1.5.0_11 (Sun) (the one I was using) the internal _osstream is not
closed; in java 6 it is closed (hence it works with Java 6) (see line 726 in
the JDK 1.6 b4)
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl). The transform
is used in the EventProducerCollectorTask, it leaves the stream open and the
next ant task tries to delete the file and fails.

So it works with Java 6 update 4 not with JDK 1.5 b11 (both from SUN).



-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2008 18:05
To: fop-users@xmlgraphics.apache.org
Subject: Re: IOException during build 

Works for me. Does this IOException have an error message associated
with it? An IOException can be anything.

On 16.04.2008 16:24:37 Raphael Parree wrote:
 Hi,
 
  
 
 I am getting an IOException while building the latest trunk version. It
 occurs on the first fixcrlf (line 430) for the EventFormatter.xml. The
 EventFormatter.xml is writable; I can delete it manually, so there should
be
 no IOException. Is the build process somehow locking it?
 
  
 
 Anu clues?
 




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Including an image as a page

2008-04-16 Thread John Brown
The fox:external-document extension works. Since it seems that I will
probably have to post-process the fo file, I need to decide whether 
it is easier to:

1) insert the fox:external-document at an appropriate place, so that 
   the table of contents and any other hyperlinks still work
2) Fix the FO so that I do not get the following warnings:

Apr 16, 2008 6:29:20 PM org.apache.fop.layoutmgr.PageBreakingAlgorithm
updateData2
WARNING: Part/page 0 overflows the available area in block-progression
dimension. (fo:block-container, location: 317/58)
Apr 16, 2008 6:29:20 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: 324/52)
Apr 16, 2008 6:29:20 PM org.apache.fop.layoutmgr.PageBreaker$1
notifyOverflow
WARNING: Content of the region-body on page 2 overflows the available
area in
block-progression dimension. (fo:page-sequence, location: 65/312)

I have created extdoc.tar.bz2 and uploaded it to:
http://download.yousendit.com/4487E58200672F10

The archive contains:
Bytes  Filename Description
28823  doc1-page1.pdf   External document that I am trying to import

18854  extdoc.foFO produced by DocBook stylesheets + xsltproc
trimmed as much as possible

39827  extdoc.pdf   Result of fop extdoc.fo extdoc.pdf. You will
note the result is not correct.

16150  images/draft.png Background image in document

I did what I thought was necessary to set all borders to 0 in the
DocBook XML file.

Can you tell me how to fix the FO so that all the space on the 
8in X 11in page is available for the external document?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



0.95BETA Regression: ZapfDingbatsEncoding in final PDF output?

2008-04-16 Thread kennardconsulting

Dear All,

There seems to have been a change from 0.94 to 0.95BETA. I'm not sure if
this is intentional, but the encoding 'ZapfDingbatsEncoding' (which I
understand to be some kind of FOP-specific workaround) is making it into the
final PDF output:

128 0 obj

  /Type /Font
  /Subtype /Type1
  /BaseFont /ZapfDingbats
  /Encoding /ZapfDingbatsEncoding


I believe 0.94 also used ZapfDingbatsEncoding, but final PDFs produced by
0.94 don't include it:

127 0 obj
 /Type /Font
/Subtype /Type1
/Name /F14
/BaseFont /ZapfDingbats 

As far as I understand, ZapfDingbatsEncoding is not a 'standard' encoding
like WinAnsiEncoding, and so this causes problems for PDF processing tools.
For example, PDFBox (http://www.pdfbox.org) balks at stripping text from
0.95BETA PDFs because of it, whereas it works fine with 0.94 PDFs.

Is there any guidance for this issue?

Your help is much appreciated,

Richard.

-- 
View this message in context: 
http://www.nabble.com/0.95BETA-Regression%3A-ZapfDingbatsEncoding-in-final-PDF-output--tp16738796p16738796.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: IOException during build

2008-04-16 Thread Raphael Parree
Jeremias,

I also tried JJDK1.5 Update 15 and it has the same problem. 
Using another Transformer implementation does the trick for me:
set
ANT_OPTS=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor
.TransformerFactoryImpl

(adding lib\xalan-2.7.0.jar;lib\serializer-2.7.0.jar to the classpath when
running Ant.)




-Original Message-
From: Raphael Parree [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2008 18:19
To: 'fop-users@xmlgraphics.apache.org'
Subject: RE: IOException during build 


Jeremias,

I guess it has to do with the TransformerImpl implementation in the JVM. In
JDK jdk1.5.0_11 (Sun) (the one I was using) the internal _osstream is not
closed; in java 6 it is closed (hence it works with Java 6) (see line 726 in
the JDK 1.6 b4)
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl). The transform
is used in the EventProducerCollectorTask, it leaves the stream open and the
next ant task tries to delete the file and fails.

So it works with Java 6 update 4 not with JDK 1.5 b11 (both from SUN).



-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2008 18:05
To: fop-users@xmlgraphics.apache.org
Subject: Re: IOException during build 

Works for me. Does this IOException have an error message associated
with it? An IOException can be anything.

On 16.04.2008 16:24:37 Raphael Parree wrote:
 Hi,
 
  
 
 I am getting an IOException while building the latest trunk version. It
 occurs on the first fixcrlf (line 430) for the EventFormatter.xml. The
 EventFormatter.xml is writable; I can delete it manually, so there should
be
 no IOException. Is the build process somehow locking it?
 
  
 
 Anu clues?
 




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]