DO NOT REPLY [Bug 6813] New: - FopServlet does not work!

2002-03-01 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813

FopServlet does not work!

   Summary: FopServlet does not work!
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Major
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


FopServlet and FopPrintServlet, as provided in the 20.3 distribution, do not 
work with params 'xsl' and 'xml'.  They DO work with param 'fo'

The following error traceback is generated when FopServlet is invoked as:
 
"http://blah.blah.blah/fop/servlet/FopServlet?xml=c:/testing/f77PDF-
pg1.xml&xsl="c:\testing/toPDF.xsl>

Note the above xsl file contains the line:

http://www.w3.org/1999/XSL/Transform";   
xmlns:fo="http://www.w3.org/1999/XSL/Format";
>

error traceback-
Error: 500
Location: /fop/servlet/FopServlet
Internal Servlet Error:

javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:131)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
Root cause:
org.apache.fop.apps.FOPException
at org.apache.fop.apps.XSLTInputHandler.getParser
(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:124)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.reflect.InvocationTargetException: org.apache.fop.apps.FOPException: 
stylesheet requires attribute: version
at org.apache.fop.apps.TraxInputHandler.getXMLFilter
(TraxInputHandler.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.fop.apps.XSLTInputHandler.getParser
(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:124)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

-

javax.xml.transform.TransformerConfigurationException: stylesheet requires 
attribute: version
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates
(TransformerFactoryImpl.java:815)
at org.apache.xalan.processo

Re: Example extension

2002-03-01 Thread Matt Savino

I've been told than an extension is the way to go for these two needed
features:

1. Add a string ['(Continued)'] to a table header if the table spans
multiple pages. Note these tables are part of the content and can start
anywhere in the page. They could be seen more like paragraphs or blocks
with a title. Any other solution to this problem is acceptable. 

2. Separate page number display for a subsection. IE - master document
is page 4 of 7, but subsection is page 2 of 3.

Please let me know if I'm missing any existing functionality that solves
these problems. I am planning to look into writing an extension some
day. An example would certainly help.


In the meantime, someone mentioned using iText for final stage add-on
functionality like this. Does that make any sense here?

Thanks a lot,
Matt


BTW, if anyone is in there poking around with the redesign, and feels
like creating a table-add-something-different-to-header-after-break
property, or even table-omit-header-before-break, I'd certainly love you
for it.



Keiron Liddle wrote:
> 
> Hi,
> 
> It really depends on what type of extension you want to do.
> This is an area that will change and become much easier in the future (in
> theory). Examples and help will be available for the new way of doing
> things.
> 
> Could you tell us what you want your extension to do so that we have more
> ideas on what type of extensions people are thinking about. Then we can
> work out how they should be handled if possible.
> 
> So to answer your question, there are some extensions but it really
> depends on what you want to do.
> 
> On 2002.03.01 08:33 Adrian Edwards wrote:
> > Hi fop-dev,
> >
> > Has anyone written a simple(ish) FOP extension that they would be
> > willing to share with the list (or even just me) as an example?  I'm
> > talking full jar file here.  The lack of examples (other than the quite
> > complicated SVG extension) in the docs and on the mailing lists is quite
> > frustrating.
> >
> > We don't have to go through the work of writing it up for publication
> > (yet).  Just seeing the mechanics of someone else's jar would be great
> > for beginners.
> >
> > Thanks in advance.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




RE: [REDESIGN] TextLayoutManager whitespace handling

2002-03-01 Thread Arved Sandstrom

No, I am not sure about that, not 100%. :-) But 7.15.12 does say that
"white-space-treatment" and "linefeed-treatment" happen during refinement,
but that "white-space-collapse" happens during area tree generation.
Considering the meaning and intent of the property it seems to make more
sense at the time of area generation, anyway. But the language bears me out,
I think.

Arved

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Karen Lease
Sent: March 1, 2002 5:49 PM
To: [EMAIL PROTECTED]
Subject: Re: [REDESIGN] TextLayoutManager whitespace handling


Arved, are you sure about that? It's a bit confusing since the spec
(actually it's 7.15.12 not 7.5.12 as I mistakenly wrote last time) says
white-space-collapse happens during area building but only talks about
adjacent flow objects not at all about areas. Well actually it does. It
says that the collapsed space doesn't "generate an area".
I thought only the "suppress-at-line-break" (7.16.3) was actually based
on areas.

I agree about the definition of ajacent areas (4.2.5) and I don't
believe there is a clear definition of ajacent FO, so maybe it's best to
follow your interpretation.

In fact, my white-space-collapse code in the new Fop is currently
collapsing them during FO tree construction (== refinement) after doing
the white-space and linefeed handling. So if it's supposed to deal with
areas it's not right.


-Karen


Arved Sandstrom wrote:
>
> I should add, if the 2 spaces end up on the same line, of course. Until we
> do layout we don't know.
>
> -Original Message-
> From: Arved Sandstrom [mailto:[EMAIL PROTECTED]]
> Sent: February 28, 2002 7:03 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [REDESIGN] TextLayoutManager whitespace handling
>
> Comments below.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Karen Lease
> Sent: February 28, 2002 6:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [REDESIGN] TextLayoutManager whitespace handling
>
> [ SNIP ]
>
> That's one thing. In your example, even supposing we are doing
> white-space collapse, the issue is which one gets thrown out. In 7.5.12
> (white-space-collapse), the spec says: ".. [if] the immediately
> preceding flow object is a character flow object with a character
> classified as white space in XML ... that flow object shall not generate
> an area."
>
> So if we think that the the space after "text" and the one before "more"
> are adjacent, which is strictly speaking not the case, I'd say the one
> before "more" disappears. If we aren't collapsing or we decide that the
> intervening newline makes them not adjacent, there are two spaces and
> the second is underlined.
>
> -Karen
>
> Keiron Liddle wrote:
> >
> > Hi Karen,
> >
> > I seem to be having a bit of trouble getting that text parsing right. I
> > was mainly just trying to get something to work to see on the output.
> > It should be able to be simplified thanks to the earlöier whitespace
> > handling.
> > I still wonder what should be done in a situation like:
> > some text  more
> > text
> > Is the space before "more" underlined or not?
>
> Pursuant to my earlier post on this question, I think we are all agreed
that
> "score-spaces" dictates whether or not the space immediately preceding the
> word "more" in the example gets underlined or not, _assuming_ that that
> space survives.
>
> As Karen points out, initial value for "white-space-collapse" will make
the
> second space go away (leastways I concur in that interpretation).
Adjacency
> is based on whether or not the 2 areas have a block- or
> inline-stacking-constraint, and the two spaces in question have an
> inline-stacking-constraint by 3a in Inline Stacking Constraints, Section
> 4.2.5, so are adjacent.
>
> Regards,
> AHS
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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


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




Re: [REDESIGN] TextLayoutManager whitespace handling

2002-03-01 Thread Karen Lease

Arved, are you sure about that? It's a bit confusing since the spec
(actually it's 7.15.12 not 7.5.12 as I mistakenly wrote last time) says
white-space-collapse happens during area building but only talks about
adjacent flow objects not at all about areas. Well actually it does. It
says that the collapsed space doesn't "generate an area".
I thought only the "suppress-at-line-break" (7.16.3) was actually based
on areas.

I agree about the definition of ajacent areas (4.2.5) and I don't
believe there is a clear definition of ajacent FO, so maybe it's best to
follow your interpretation.

In fact, my white-space-collapse code in the new Fop is currently
collapsing them during FO tree construction (== refinement) after doing
the white-space and linefeed handling. So if it's supposed to deal with
areas it's not right.


-Karen


Arved Sandstrom wrote:
> 
> I should add, if the 2 spaces end up on the same line, of course. Until we
> do layout we don't know.
> 
> -Original Message-
> From: Arved Sandstrom [mailto:[EMAIL PROTECTED]]
> Sent: February 28, 2002 7:03 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [REDESIGN] TextLayoutManager whitespace handling
> 
> Comments below.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Karen Lease
> Sent: February 28, 2002 6:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [REDESIGN] TextLayoutManager whitespace handling
> 
> [ SNIP ]
> 
> That's one thing. In your example, even supposing we are doing
> white-space collapse, the issue is which one gets thrown out. In 7.5.12
> (white-space-collapse), the spec says: ".. [if] the immediately
> preceding flow object is a character flow object with a character
> classified as white space in XML ... that flow object shall not generate
> an area."
> 
> So if we think that the the space after "text" and the one before "more"
> are adjacent, which is strictly speaking not the case, I'd say the one
> before "more" disappears. If we aren't collapsing or we decide that the
> intervening newline makes them not adjacent, there are two spaces and
> the second is underlined.
> 
> -Karen
> 
> Keiron Liddle wrote:
> >
> > Hi Karen,
> >
> > I seem to be having a bit of trouble getting that text parsing right. I
> > was mainly just trying to get something to work to see on the output.
> > It should be able to be simplified thanks to the earlöier whitespace
> > handling.
> > I still wonder what should be done in a situation like:
> > some text  more
> > text
> > Is the space before "more" underlined or not?
> 
> Pursuant to my earlier post on this question, I think we are all agreed that
> "score-spaces" dictates whether or not the space immediately preceding the
> word "more" in the example gets underlined or not, _assuming_ that that
> space survives.
> 
> As Karen points out, initial value for "white-space-collapse" will make the
> second space go away (leastways I concur in that interpretation). Adjacency
> is based on whether or not the 2 areas have a block- or
> inline-stacking-constraint, and the two spaces in question have an
> inline-stacking-constraint by 3a in Inline Stacking Constraints, Section
> 4.2.5, so are adjacent.
> 
> Regards,
> AHS
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




Problem with TTFReader

2002-03-01 Thread Richard Waginger

I tried to convert times.ttf font from my winXP fonts directory, but I failed. I used 
the command like in example on font support page, but program allways ended with 
exception: 

command: 
c:\Fop-0.20.2>java build\org.apache.fop.fonts.apps.TTFReader 
C:\windows\fonts\times.ttf C:\fontmetrics\times.xml 

Respond: 
Exception in thread "main" java.lang.NoClassDefFoundError: 
build\org/apache/fop/fonts/apps/TTFReader 

Later I tried many variants (e.g. without "build\" or c:\Fop-0.20.2>java -cp 
build\fop.jar;lib\xerces.jar;lib\xalan.jar;lib\batik.jar 
org.apache.fop.fonts.apps.TTFReader ... ) but with same result. Where is the problem ? 
In configuration of JDK or where ? (I use JDK 1.3) 

Please help me, thnx 

--
Najcerstvejsie spravy zo SME e-mailom - http://www.sme.sk/emailom/

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




Re: converting SVG to PDF

2002-03-01 Thread fred redf

You're right. I'm going to read your previous post.
Sorry for my dirty solution...
Fred.

--- James Richardson <[EMAIL PROTECTED]> a
écrit : > fred redf wrote:
> 
> > 
> > 
> > Hi Boby,
> > 
> > The prob is that svg renderer *need* to connect to
> an
> > X11 server cause batik relies on AWT. When you run
> it
> > via the command line there is no prob (assuming
> you
> > actually are connected to some kind of X11
> server). I
> > found a workaround by running servlet container in
> a
> > shell where i export correct DISPLAY variable
> first. I
> > know it's a little bit dirty but i don't know any
> > better solution...
> >
> 
> 
> Please see my post re PJA for a solution about this,
> or use Xvfb.
> 
> Setting the DISPLAY variable is going to cause you
> big problems if the X 
> server you are connected to goes down.
> 
> cheers
> 
> james
> 
> 
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: Example extension

2002-03-01 Thread Matt Savino

I've been told than an extension is the way to go for these two needed
features:

1. Add a string ['(Continued)'] to a table header if the table spans
multiple pages. Note these tables are part of the content and can start
anywhere in the page. They could be seen more like paragraphs or blocks
with a title. Any other solution to this problem is acceptable. 

2. Separate page number display for a subsection. IE - master document
is page 4 of 7, but subsection is page 2 of 3.

Please let me know if I'm missing any existing functionality that solves
these problems. I am planning to look into writing an extension some
day. An example would certainly help.


In the meantime, someone mentioned using iText for final stage add-on
functionality like this. Does that make any sense here?

Thanks a lot,
Matt


BTW, if anyone is in there poking around with the redesign, and feels
like creating a table-add-something-different-to-header-after-break
property, or even table-omit-header-before-break, I know I'd love you
for it.



Keiron Liddle wrote:
> 
> Hi,
> 
> It really depends on what type of extension you want to do.
> This is an area that will change and become much easier in the future (in
> theory). Examples and help will be available for the new way of doing
> things.
> 
> Could you tell us what you want your extension to do so that we have more
> ideas on what type of extensions people are thinking about. Then we can
> work out how they should be handled if possible.
> 
> So to answer your question, there are some extensions but it really
> depends on what you want to do.
> 
> On 2002.03.01 08:33 Adrian Edwards wrote:
> > Hi fop-dev,
> >
> > Has anyone written a simple(ish) FOP extension that they would be
> > willing to share with the list (or even just me) as an example?  I'm
> > talking full jar file here.  The lack of examples (other than the quite
> > complicated SVG extension) in the docs and on the mailing lists is quite
> > frustrating.
> >
> > We don't have to go through the work of writing it up for publication
> > (yet).  Just seeing the mechanics of someone else's jar would be great
> > for beginners.
> >
> > Thanks in advance.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




Re: converting SVG to PDF

2002-03-01 Thread James Richardson

fred redf wrote:

> 
> 
> Hi Boby,
> 
> The prob is that svg renderer *need* to connect to an
> X11 server cause batik relies on AWT. When you run it
> via the command line there is no prob (assuming you
> actually are connected to some kind of X11 server). I
> found a workaround by running servlet container in a
> shell where i export correct DISPLAY variable first. I
> know it's a little bit dirty but i don't know any
> better solution...
>


Please see my post re PJA for a solution about this, or use Xvfb.

Setting the DISPLAY variable is going to cause you big problems if the X 
server you are connected to goes down.

cheers

james






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




Re: converting SVG to PDF

2002-03-01 Thread fred redf

Hi Boby,

The prob is that svg renderer *need* to connect to an
X11 server cause batik relies on AWT. When you run it
via the command line there is no prob (assuming you
actually are connected to some kind of X11 server). I
found a workaround by running servlet container in a
shell where i export correct DISPLAY variable first. I
know it's a little bit dirty but i don't know any
better solution...

--- "Lewis, Bobby" <[EMAIL PROTECTED]> a écrit : > I'm
running the example that comes with fop,
> embedding.fo (in
> examples/svg/). When I do it command line (to
> convert this XSLFO that
> contains SVG into a PDF), it works fine. I open the
> PDF and see a picture of
> a tiger.  
> 
> Now, I try to do it on the web. The JSP (that works
> correctly with examples
> like border.fo that do NOT use SVG) takes an XSLFO
> file, and converts it to
> PDF, then returns the byte stream with a header of
> application/pdf. When I
> try it with the SVG FO file, I get:
> 
> Can't connect to X11 window server using ':0.0' as
> the value of the DISPLAY
> variable.
> 
> 
> It's like it's trying to render the SVG to a display
> on the server side. I'm
> explicitly calling 
> driver.setRenderer(Driver.RENDER_PDF);
> so that it renders PDF and not AWT or Print or
> something else. I get this
> stack trace BEFORE the driver.run method returns
> (it's all happening
> somewhere in the conversion process):
> 
> [02.03.01 10:19:12:344 CST] 46e06145 SystemOut U
> reading user
> configuration file
> 
> [02.03.01 10:19:12:349 CST] 46e06145 SystemOut U
> building formatting
> object tree
> 
> [02.03.01 10:19:12:350 CST] 46e06145 SystemOut U
> setting up fonts
> 
> [02.03.01 10:19:12:475 CST] 46e06145 SystemOut U
>  [1
> [02.03.01 10:19:13:443 CST] 46e06145 WebGroup  X
> Servlet Error:
> Can't connect to X11 window server using
> ':0.0' as the value of
> the DISPLAY variable.: java.lang.Exception: Can't
> connect to X11 window
> server using ':0.0' as the value of the DISPLAY
> variable.
> at
> jsp.pdf_jsp_23._jspService(pdf_jsp_23.java:154)
> at
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:286)
> at
>
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
> at
>
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java:827)
> 
> Any help is appreciated.
> 
> Bobby Lewis
> Solutions Architect
> Aivia
> 3100 McKinnon Suite 1000
> Dallas, TX 75201 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




converting SVG to PDF

2002-03-01 Thread Lewis, Bobby

I'm running the example that comes with fop, embedding.fo (in
examples/svg/). When I do it command line (to convert this XSLFO that
contains SVG into a PDF), it works fine. I open the PDF and see a picture of
a tiger.  

Now, I try to do it on the web. The JSP (that works correctly with examples
like border.fo that do NOT use SVG) takes an XSLFO file, and converts it to
PDF, then returns the byte stream with a header of application/pdf. When I
try it with the SVG FO file, I get:

Can't connect to X11 window server using ':0.0' as the value of the DISPLAY
variable.


It's like it's trying to render the SVG to a display on the server side. I'm
explicitly calling  driver.setRenderer(Driver.RENDER_PDF);
so that it renders PDF and not AWT or Print or something else. I get this
stack trace BEFORE the driver.run method returns (it's all happening
somewhere in the conversion process):

[02.03.01 10:19:12:344 CST] 46e06145 SystemOut U reading user
configuration file

[02.03.01 10:19:12:349 CST] 46e06145 SystemOut U building formatting
object tree

[02.03.01 10:19:12:350 CST] 46e06145 SystemOut U setting up fonts

[02.03.01 10:19:12:475 CST] 46e06145 SystemOut U  [1
[02.03.01 10:19:13:443 CST] 46e06145 WebGroup  X Servlet Error:
Can't connect to X11 window server using ':0.0' as the value of
the DISPLAY variable.: java.lang.Exception: Can't connect to X11 window
server using ':0.0' as the value of the DISPLAY variable.
at jsp.pdf_jsp_23._jspService(pdf_jsp_23.java:154)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:286)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)

Any help is appreciated.

Bobby Lewis
Solutions Architect
Aivia
3100 McKinnon Suite 1000
Dallas, TX 75201 

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




RE: Corrupt PDF files?

2002-03-01 Thread Lewis, Bobby

Good idea, but I tried to look into doing the same in
org.apache.fop.apps.Driver. The problem is there are too many classes in
there that I don't have (where do org.apache.log and org.apache.avalon come
from?)

Has anyone tried this with Driver? (Manually editing it to close the stream
at the end of the run method)?

Bobby Lewis
Solutions Architect
Aivia
3100 McKinnon Suite 1000
Dallas, TX 75201 

-Original Message-
From: Solange Desseignes [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:59 AM
To: [EMAIL PROTECTED]
Subject: RE: Corrupt PDF files?


I had the same problem, but it was because the OutputStream is not closed in
method run() of the class CommandLineStarter of the FOP library. I patched
my FOP and closed the OutputStream, and have no more problems...

If you use this class try to close the Stream...

Solange Desseignes

-Message d'origine-
De : Lewis, Bobby [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 1 mars 2002 00:53
À : Fop-Dev (E-mail)
Objet : Corrupt PDF files?


I have a problem that is hard to debug. I am generating PDF files with FOP,
and the process is working ok most of the time. Sometimes though, the file
becomes corrupt (I'm sending the PDF back to a web browser based on a
request a user makes from a JSP).

Here's what we just found: we're using an external barcode font (a Code39
font). If we take the font out and don't use it in the PDF, it works fine
everytime. Otherwise, it works sometimes. There's no discernible factor as
to why it does/does not work, so I'm thinking there's something buggy in
FOP. Has anyone had any kind of unpredictable behavior before with FOP when
using external fonts? I'm using a TTF, I generated the metric file ok and
everything, because the barcode does show up correctly SOMETIMES.

Any help is greatly appreciated.

Bobby Lewis
Solutions Architect
Aivia
3100 McKinnon Suite 1000
Dallas, TX 75201 

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


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

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




RE: EBCDIC os390

2002-03-01 Thread Jason . West

Anyone have any documents on how the software works already to help 
me speed up where to look and what to patch? What it looks like to me,
is that there are some compressed streams inside the entire pdf stream.
So, a conversion at the final output won't work; appears to convert the
non-compressed parts ok though.

Thanks, Jason

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:16 AM
To: [EMAIL PROTECTED]
Subject: Re: EBCDIC os390


> I'll apologize upfront as I think my question is really for the users list
> but,
> I was unable to find how to subscribe to it.

No, I think you're in the right place.

> I'm developing under Websphere 4.0 and have had success in using FOP .20
> on my NT machines. I take that ear file and install it on our os390
> Websphere
> server and I get back garbage. If I convert the garbage from EBCDIC to
ASCII
> with a tool, it appears the uncompressed streams convert fine. The
document
> still does not work. How can I make FOP ensure that all of it's temporary
> streams
> use the proper encoding? The following snippet is how I'm using FOP.

Ben Fowler posted a similar mail two days ago.
http://marc.theaimsgroup.com/?l=fop-dev&m=101480100804070&w=2

You're in the same boat. I think it would be good if you one of you two
could really track down the problem, create a patch for it and post it
to the list for inclusion into FOP along with some documentation
(guidelines) what has to be done to ensure non-ascii-environment
compatibility in FOP for the future.


Cheers
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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

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




Re: Options

2002-03-01 Thread Peter B. West

Jeremias

The files are *rather*, but not *entirely* static, especially scripts at 
the moment.  It seems to me that in principle such file should be able 
to be changed completely independently of the code base.

Peter

Jeremias Maerki wrote:

>
>I see. Are those three not rather static so it would make sense to place
>the resource files with the classes and hard-code the validation code.
>That would make it simpler. Or do you see a case where you need to use a
>different validation file? If you code something like this I'd
>apreciate if validation could be switched of for performance reasons.
>



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




AW: output PDF via java.io.Writer

2002-03-01 Thread Beer, Christian

> Is it generally possible to output a pdf stream via a java.io.Writer
object?

Well a java.io.Writer is used for character output. A PDF is binary output,
especialy if you use filters (Flate, ...)

I think it could be possible, but no good idea! The problem is, that a
writer
handles character data (2 bytes) and it can convert the data (for example
"\n\r"
to "\r" or something) and then the offsets in the PDF don't fit any more.

The more I think about it, I'd say "let it be", also because a JSP is
constructed
to return character data, not binary. We tried to implement a
"download"-JSP, but
implemented that in a servlet, because there were many errors and caveats.

Greetings

Christian Beer

> -Ursprüngliche Nachricht-
> Von: Holger Prause [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 1. März 2002 13:59
> An: [EMAIL PROTECTED]
> Betreff: output PDF via java.io.Writer
> 
> 
> Hello,
> 
> I am using Fop-0.20.2
> 
> Is it generally possible to output a pdf stream via a 
> java.io.Writer object
> ? 
> 
> I know its better to use OutputStreams objects to output 
> binary streams as
> pdf,but i want to use a JSPWriter(in a TagLibrary Class) to 
> output a Pdf
> Stream so that i can use it as embedded pdf.
> 
> The following sourcode should do the the job
> 
> 
> InputSource foInputSource = getInputSource();
> //buffer fo outputStream
> ByteArrayOutputStream foBufferStream = new ByteArrayOutputStream();
> Driver driver = new Driver(foInputSource,foBufferStream);
> driver.setRenderer(driver.RENDER_PDF);
> //perform the fo rendering process
> driver.run();
> 
> String foOutString = new String(foBufferStream.toByteArray());
> //the writer reference is as reference to the JSPWriter which 
> was passed as
> Argument
> writer.write(foOutString);
> writer.flush();
> 
> The problem is that when i convert a ByteArrayOutputStream to 
> a String ,
> some characters are converted wrong.
> 
> For Example , the HEX 8d will be converted to HEX 3f , how 
> can i avoid this
> ? What encoding do i have to use to avoid this ?
> 
> Thank you in advance,
> 
> Holger
> 
> 
> 
> -- 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




output PDF via java.io.Writer

2002-03-01 Thread Holger Prause

Hello,

I am using Fop-0.20.2

Is it generally possible to output a pdf stream via a java.io.Writer object
? 

I know its better to use OutputStreams objects to output binary streams as
pdf,but i want to use a JSPWriter(in a TagLibrary Class) to output a Pdf
Stream so that i can use it as embedded pdf.

The following sourcode should do the the job


InputSource foInputSource = getInputSource();
//buffer fo outputStream
ByteArrayOutputStream foBufferStream = new ByteArrayOutputStream();
Driver driver = new Driver(foInputSource,foBufferStream);
driver.setRenderer(driver.RENDER_PDF);
//perform the fo rendering process
driver.run();

String foOutString = new String(foBufferStream.toByteArray());
//the writer reference is as reference to the JSPWriter which was passed as
Argument
writer.write(foOutString);
writer.flush();

The problem is that when i convert a ByteArrayOutputStream to a String ,
some characters are converted wrong.

For Example , the HEX 8d will be converted to HEX 3f , how can i avoid this
? What encoding do i have to use to avoid this ?

Thank you in advance,

Holger



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re: FOP Interfaces

2002-03-01 Thread fred redf

Thanks Jeremias

--- Jeremias Maerki <[EMAIL PROTECTED]> a
écrit : > I get it now, thanks. I think that's an
interesting
> thing. Definitely,
> worth putting on the task list. I could use
> something like that, too.
> 
> > I would like to know where an arbitrary event has
> > occured during fop rendering. Let me give you a
> short
> > example:
> > i produce a *big* pdf with fop that should include
> > another pdf that was produced in another way (i my
> > case, it was produced by distiller from a word
> > document). That document should be included after
> a
> > ... that is somewhere inside
> my
> > document.
> > Second example : i want to watermark some specific
> > pages according to the content that is on these
> pages.
> > For that purpose, i use iText.
> > So what i want is some kind of mechanism (for
> exemple
> > something like ) that
> > would enable me to get an Hashtable that contains
> the
> > page where this event has occured. After getting
> this
> > hashtable, i could run iText-based process to
> finish
> > my pdf. 
> > Is that more clear? Excuse me for my
> > not-that-good-english, i have also to admit that
> it
> > was not that clear in my head.
> 
> Cheers,
> Jeremias Märki
> 
> mailto:[EMAIL PROTECTED]
> 
> OUTLINE AG
> Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
> Tel. +41 41 317 2020 - Fax +41 41 317 2029
> Internet http://www.outline.ch
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




cvs commit: xml-fop/test createpdf.sh

2002-03-01 Thread chrisg

chrisg  02/03/01 04:44:40

  Modified:.Tag: fop-0_20_2-maintain CHANGES build.bat build.sh
build.xml fop.bat
   docs/design Tag: fop-0_20_2-maintain build.bat build.sh
   docs/examples Tag: fop-0_20_2-maintain runtests.bat
runtests.sh
   docs/examples/embedding Tag: fop-0_20_2-maintain
FopPrintServlet.java FopServlet.java
   docs/xml-docs Tag: fop-0_20_2-maintain makedoc.bat
makedoc.sh
   test Tag: fop-0_20_2-maintain createpdf.sh
  Added:   lib  Tag: fop-0_20_2-maintain logkit-1.0.jar
  Removed: lib  Tag: fop-0_20_2-maintain logkit-1.0b4.jar
  Log:
  updated logkit from 1.0b4 to 1.0
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.10.2.8  +2 -1  xml-fop/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /home/cvs/xml-fop/CHANGES,v
  retrieving revision 1.10.2.7
  retrieving revision 1.10.2.8
  diff -u -r1.10.2.7 -r1.10.2.8
  --- CHANGES   18 Feb 2002 18:27:36 -  1.10.2.7
  +++ CHANGES   1 Mar 2002 12:44:39 -   1.10.2.8
  @@ -22,6 +22,8 @@
 Submitted by:  Ralph LaChance <[EMAIL PROTECTED]>
   - Proper use of font encodings for "native" fonts
 Submitted by: Peter S. Housel ([EMAIL PROTECTED]) and Rainer Garus 
([EMAIL PROTECTED])
  +- fixed Marker (Christian Geisert)
  +- updated logkit from 1.0b4 to to 1.0 (Christian Geisert)
   
   *** Tables
   - Implement the proportional-column-width() function in table-column and
  @@ -79,7 +81,6 @@
 Submitted by:  Ralph LaChance <[EMAIL PROTECTED]>
   - Improved i18n support for AWT viewer (Japanese dialogs)
 Submitted by: Satoshi Ishigami ([EMAIL PROTECTED])
  -
   
   *** TXTRenderer
   - Generated text is written in UTF-8 encoding instead of ISO-8859-1
  
  
  
  1.14.2.2  +1 -1  xml-fop/build.bat
  
  Index: build.bat
  ===
  RCS file: /home/cvs/xml-fop/build.bat,v
  retrieving revision 1.14.2.1
  retrieving revision 1.14.2.2
  diff -u -r1.14.2.1 -r1.14.2.2
  --- build.bat 11 Feb 2002 00:43:43 -  1.14.2.1
  +++ build.bat 1 Mar 2002 12:44:39 -   1.14.2.2
  @@ -7,7 +7,7 @@
   
   set LIBDIR=lib
   set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\ant-1.3-optional.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar

  -set 
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\logkit-1.0b4.jar;%LIBDIR%\avalon-framework-4.0.jar

  +set 
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\logkit-1.0.jar;%LIBDIR%\avalon-framework-4.0.jar

   
   set ANT_HOME=%LIBDIR%
   
  
  
  
  1.15.2.2  +1 -1  xml-fop/build.sh
  
  Index: build.sh
  ===
  RCS file: /home/cvs/xml-fop/build.sh,v
  retrieving revision 1.15.2.1
  retrieving revision 1.15.2.2
  diff -u -r1.15.2.1 -r1.15.2.2
  --- build.sh  11 Feb 2002 00:43:43 -  1.15.2.1
  +++ build.sh  1 Mar 2002 12:44:39 -   1.15.2.2
  @@ -14,7 +14,7 @@
   fi
   LIBDIR=lib
   
LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/ant-1.3-optional.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar
  
-LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/logkit-1.0b4.jar:$LIBDIR/avalon-framework-4.0.jar
  
+LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/logkit-1.0.jar:$LIBDIR/avalon-framework-4.0.jar
   
   ANT_HOME=$LIBDIR
   
  
  
  
  1.44.2.6  +2 -2  xml-fop/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/xml-fop/build.xml,v
  retrieving revision 1.44.2.5
  retrieving revision 1.44.2.6
  diff -u -r1.44.2.5 -r1.44.2.6
  --- build.xml 20 Feb 2002 17:37:06 -  1.44.2.5
  +++ build.xml 1 Mar 2002 12:44:39 -   1.44.2.6
  @@ -138,7 +138,7 @@
  
  
  
  -   
  +   
  
  
  
  @@ -275,7 +275,7 @@
   
   
   
  -
  +
  
   
   
  
  
  
  1.4.2.1   +1 -1  xml-fop/fop.bat
  
  Index: fop.bat
  ===
  RCS file: /home/cvs/xml-fop/fop.bat,v
  retrieving revision 1.4
  retrieving revision 1.4.2.1
  diff -u -r1.4 -r1.4.2.1
  --- fop.bat   20 Aug 2001 21:11:02 -  1.4
  +++ fop.bat   1 Mar 2002 12:44:39 -   1.4.2.1
  @@ -1 +1 @@
  -java -cp 
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0b4.jar;lib\jimi-1.0.ja

Re: FOP Interfaces

2002-03-01 Thread Jeremias Maerki

I get it now, thanks. I think that's an interesting thing. Definitely,
worth putting on the task list. I could use something like that, too.

> I would like to know where an arbitrary event has
> occured during fop rendering. Let me give you a short
> example:
> i produce a *big* pdf with fop that should include
> another pdf that was produced in another way (i my
> case, it was produced by distiller from a word
> document). That document should be included after a
> ... that is somewhere inside my
> document.
> Second example : i want to watermark some specific
> pages according to the content that is on these pages.
> For that purpose, i use iText.
> So what i want is some kind of mechanism (for exemple
> something like ) that
> would enable me to get an Hashtable that contains the
> page where this event has occured. After getting this
> hashtable, i could run iText-based process to finish
> my pdf. 
> Is that more clear? Excuse me for my
> not-that-good-english, i have also to admit that it
> was not that clear in my head.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




Re: FOP Interfaces

2002-03-01 Thread fred redf

Hi Jeremias, and all other peoples here,

I would like to know where an arbitrary event has
occured during fop rendering. Let me give you a short
example:
i produce a *big* pdf with fop that should include
another pdf that was produced in another way (i my
case, it was produced by distiller from a word
document). That document should be included after a
... that is somewhere inside my
document.
Second example : i want to watermark some specific
pages according to the content that is on these pages.
For that purpose, i use iText.
So what i want is some kind of mechanism (for exemple
something like ) that
would enable me to get an Hashtable that contains the
page where this event has occured. After getting this
hashtable, i could run iText-based process to finish
my pdf. 
Is that more clear? Excuse me for my
not-that-good-english, i have also to admit that it
was not that clear in my head.
Thanks,

Fred.


 --- Jeremias Maerki <[EMAIL PROTECTED]> a
écrit : > Do you just want to know how many pages were
> rendered (See
> Driver.getResults().getPageCount()) or do you want
> to insert PDF pages
> of your own while FOP is rendering? Or something
> else, because I think I
> don't undertand, yet, what you want?
> 
> > I would *love* to be able to be able to get the
> page
> > number where some event append (for example by
> stating
> >  in .fo source) cause it would
> > greatly improve fop/itext interfacing. I
> personnaly
> > use fop to render most of my content but i finish
> the
> > work using itext (to watermark content, reorganize
> > pages to produce booklets, insert some annexes
> written
> > in pdf .. etc)
> > Thanks a lot, whether you implement that or not!
> 
> Cheers,
> Jeremias Märki
> 
> mailto:[EMAIL PROTECTED]
> 
> OUTLINE AG
> Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
> Tel. +41 41 317 2020 - Fax +41 41 317 2029
> Internet http://www.outline.ch
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: C# version of FOP

2002-03-01 Thread [EMAIL PROTECTED]

-> Arved Sandstrom wrote:
-> Speaking as an individual committer I think it's excellent that 
you've done
-> this. I happen to be completely language-agnostic and I'll use 
anything that
-> works, including everything in the MS stable.

I agree. 

-> Sarandos Steve wrote:
-> I wanted to find out if any of you are interested in a C# version of 
FOP or,
-> if not, then if you could direct me to a group that might be.  I 
would like
-> to get an a open source group started on developing this version 
further.

I'm interested in a C# version of FOP and in giving my contrib to an 
Open Source 
project about it. Source Forge should be the right place to host this 
initiative.

Let me know about it.

Regards, 
Pierfrancesco Bionda


Re: Example extension

2002-03-01 Thread Keiron Liddle

Hi,

It really depends on what type of extension you want to do.
This is an area that will change and become much easier in the future (in 
theory). Examples and help will be available for the new way of doing 
things.

Could you tell us what you want your extension to do so that we have more 
ideas on what type of extensions people are thinking about. Then we can 
work out how they should be handled if possible.

So to answer your question, there are some extensions but it really 
depends on what you want to do.

On 2002.03.01 08:33 Adrian Edwards wrote:
> Hi fop-dev,
> 
> Has anyone written a simple(ish) FOP extension that they would be
> willing to share with the list (or even just me) as an example?  I'm
> talking full jar file here.  The lack of examples (other than the quite
> complicated SVG extension) in the docs and on the mailing lists is quite
> frustrating.
> 
> We don't have to go through the work of writing it up for publication
> (yet).  Just seeing the mechanics of someone else's jar would be great
> for beginners.
> 
> Thanks in advance.

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




RE: Corrupt PDF files?

2002-03-01 Thread Solange Desseignes

I had the same problem, but it was because the OutputStream is not closed in method 
run() of the class CommandLineStarter of the FOP library. I patched my FOP and closed 
the OutputStream, and have no more problems...

If you use this class try to close the Stream...

Solange Desseignes

-Message d'origine-
De : Lewis, Bobby [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 1 mars 2002 00:53
À : Fop-Dev (E-mail)
Objet : Corrupt PDF files?


I have a problem that is hard to debug. I am generating PDF files with FOP,
and the process is working ok most of the time. Sometimes though, the file
becomes corrupt (I'm sending the PDF back to a web browser based on a
request a user makes from a JSP).

Here's what we just found: we're using an external barcode font (a Code39
font). If we take the font out and don't use it in the PDF, it works fine
everytime. Otherwise, it works sometimes. There's no discernible factor as
to why it does/does not work, so I'm thinking there's something buggy in
FOP. Has anyone had any kind of unpredictable behavior before with FOP when
using external fonts? I'm using a TTF, I generated the metric file ok and
everything, because the barcode does show up correctly SOMETIMES.

Any help is greatly appreciated.

Bobby Lewis
Solutions Architect
Aivia
3100 McKinnon Suite 1000
Dallas, TX 75201 

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


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




Re: Example extension

2002-03-01 Thread Jeremias Maerki

> Have a look at: http://www.exslt.org/

That's an XSLT extension, not a FOP extension. Right?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




Re: Options

2002-03-01 Thread Jeremias Maerki

Peter

> >You'll have to create a GUI or use OS X. :-) Well, that leads me to the
> >question: What are you actually trying to do? We're talking about
> >solutions here, but not what you need them for (I think).
> >
> There's a very useful discussion going on about logging, Avalon, etc, 
> which covers this territory in more general terms.  Anything that 
> rationalises and makes consistent and readily understandable the 
> invovation and setup of FOP will be a very good thing.  I'm just talking 
> about the very limited aim of unifying and making more useful the 
> existing maintenance branch options/configuration code.

Right, I got that. And I appreciate your effort in this. My problem is
that I haven't yet seen the benefit of what you're trying to do. I
really think which we should have a least a third opinion on this.

> >>>I don't get you here. What do you need the language validation for?
> >>>
> >>For completeness.  I can specify country, language and script, and these 
> >>may be acted upon in respect of hyphenation.  Two situations may arise. 
> >> 1) That particular language/country/script may have no support in this 
> >>version of FOP.  2) There is no such language/country/script.  When I'm 
> >>parsing one of these attributes, I like to be able to detect the second 
> >>situation at the point of parsing.
> >>
> >
> >I'm lost. Sorry, but I really can't follow you.
> >
> My fault.  In the middle of this discussion about options processing, I 
> came across the references to the language file in the config file, so I 
> dragged them in, kicking and screaming.  "I can specify country.language 
> and script..." should read, "The user can specify country, language and 
> script..." as properties in the FO file that I'm processing.  See 7.9.2 
> "language", 7.9.1 "country", and 7.9.3 "script" in the Recommendation. 
> When I was looking at the parsing of such properties, I wanted to be 
> able to validate the element attributes immediately after they were 
> parsed by the expression parser.  I either had to hard-code the lists, 
> or provide for a way of updating them outside the code, so I went for a 
> configuration file, pointed to by the the general config file.

I see. Are those three not rather static so it would make sense to place
the resource files with the classes and hard-code the validation code.
That would make it simpler. Or do you see a case where you need to use a
different validation file? If you code something like this I'd
apreciate if validation could be switched of for performance reasons.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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