Error using TTFReader

2007-01-09 Thread Nicol Bolas

I'm attempting to import some fonts into FOP 0.93, but I'm running into
trouble. I keep getting this error whenever I try to run TTFReader:

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:116)

I don't really know what that means or why it's happenning. The command line
I'm using is:

C:\fop-0.93java -cp
c:\fop-0.93\build\fop.jar;c:\fop-0.93\lib\avalon-framework.jar;c:\fop-0.93\lib\commons-logging.jar;c:\fop-0.93\lib\commons-io.jar
org.apache.fop.fonts.apps.TTFReader

It doesn't matter what parameters I use; it always gets that error.
-- 
View this message in context: 
http://www.nabble.com/Error-using-TTFReader-tf2944457.html#a8233671
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Write text vertically

2007-01-09 Thread Gregan, Miroslav
Hello all,
 
I'm trying to write text vertically from an XSL-FO file to PDF
with FOP 0.93 used like a library in a java code under windows XP, (but
should also work under Linux).
The SVG code used is working fine in an SVG file, and with FOP 20.5.
 
fo start file:
http://www.filefactory.com/file/f107a9/
http://www.filefactory.com/file/f107a9/ 
 
pdf result file:
http://www.filefactory.com/file/d30969/
http://www.filefactory.com/file/d30969/ 
 
 
If someone knows a better server where to put the files than
fileFactory,
I'll be glad if you could tell me it's address.
 
Kind regards,
 
Miroslav


Re: Problem change layout page size

2007-01-09 Thread fabio76

Hi J.Pietschmann,
the example of xml document is this:
document
pThis is a test/p
table
tr
tdFirst TD/td
tdSecond TD/td
/tr
/table
figure
titleFIGURE 1/title
gGRAPHIC 1/g
/figure
pParagraph n° 1 after figure 1/p
pParagraph n° 2 after figure 1/p
pOther Text after figure 3
   
figure
titleFIGURE 2/title
gGRAPHIC 2/g
/figure
pParagraph n° 1 after figure 2/p
   
pParagraph n° 2 after figure 2/p
/p
pParagraph n° 3 uunderline tag/uafter figure 2/p
fOther TAG/f
p
figure
titleFIGURE 3/title
gGRAPHIC 3/g
/figureText after figure 3
pParagraph into onother Paragraph /p
/p
pLast paragraph/p
/document 


I think to use following and not following-sibling because the element
figure can be found in any position .. as in the preceding example.

If I use the preceding-sibling, I extract only the figure with the same
parent.

The result that I would like to obtain is this : 

1° node group in A4 layout page:
 pThis is a test/p
table
tr
tdFirst TD/td
tdSecond TD/td
/tr
/table

2° node group in A3 layout page:
figure
   titleFIGURE 1/title
gGRAPHIC 1/g
/figure

3° node group in A4 layout page:
pParagraph n° 1 after figure 1/p
pParagraph n° 2 after figure 1/p
pOther Text after figure 3

4° node group in A3 layout page:
figure
titleFIGURE 2/title
gGRAPHIC 2/g
/figure

5° node group in A4 layout page:
  pParagraph n° 1 after figure 2/p
pParagraph n° 2 after figure 2/p
/p
pParagraph n° 3 uunderline tag/uafter figure 2/p
fOther TAG/f
p

6° node group in A3 layout page:
figure
titleFIGURE 3/title
gGRAPHIC 3/g
/figure

7°  node group in A4 layout page:
Text after figure 3
pParagraph into onother Paragraph /p
/p
pLast paragraph/p



Is possible to obtain this? 

with best regards
Fabio




J.Pietschmann wrote:
 
 fabio76 wrote:
 I have a repetition of each paragraph ...and this is no correct.
 
 The problems are here:
 xsl:variable name=current-figure-node
 select=following::figure[1]/
 use
   xsl:variable name=current-figure-node select=./
 here and
xsl:apply-templates
 select=following::node()[generate-id(following::figure[1]) ...
  
 select=preceding-sibling::node()[generate-id(preceding-sibling::figure[1])
 
 The ..-sibling was the reason you got your content processed multiple
 times, and the following... was a bug.
 
 J.Pietschmann
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-change-layout-page-size-tf2912574.html#a8234323
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: Error using TTFReader

2007-01-09 Thread Chris Bowditch

Nicol Bolas wrote:

I'm attempting to import some fonts into FOP 0.93, but I'm running into
trouble. I keep getting this error whenever I try to run TTFReader:

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:116)


Its a classpath problem.



I don't really know what that means or why it's happenning. The command line
I'm using is:

C:\fop-0.93java -cp
c:\fop-0.93\build\fop.jar;c:\fop-0.93\lib\avalon-framework.jar;c:\fop-0.93\lib\commons-logging.jar;c:\fop-0.93\lib\commons-io.jar
org.apache.fop.fonts.apps.TTFReader


The commons-logging.jar file that you've referenced in the classpath is 
actually called commons-logging-1.0.4.jar. Take a look in the lib sub 
folder to check the names of JAR files that you are referencing in your 
classpath.


Chris




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



Re: Need Help

2007-01-09 Thread Jeremias Maerki
It's easiest if you write a servlet that constructs the PDF using FOP
and sends it back to the user. Look here for ideas:
http://xmlgraphics.apache.org/fop/stable/servlets.html

On 08.01.2007 11:56:24 Prashant Saraf wrote:
 Hello friends. I am new to Fop. I am creating application using struts
 where I m forwarding pdf to user according to username can I use *FOP*
 for send pdf to user, if yes how?
 
 Thanks and Regards 
 Prashant Saraf



Jeremias Maerki


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



Re: Set up a servlet with fop

2007-01-09 Thread Jeremias Maerki
Well, just put fop.jar and all JAR files from FOP's lib directory in the
WEB-INF/lib directory of your web application. You can omit the JAXP
stuff, i.e. the following JARs if you use JDK 1.4 or later:
- xalan*.jar
- xercesImpl*.jar
- xml-apis*.jar
- serializer*.jar

(but make sure you use at least the versions delivered with FOP to avoid
problems with the buggy JAXP implementations Sun delivers with some
JRE/JDKs. See:
http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required)

On 08.01.2007 12:29:58 Xavier Ottolini wrote:
 Thank you manuel,
 
 The build is successfull with the 0.93 release.
 
 I know this page.
 
 http://xmlgraphics.apache.org/fop/0.93/servlets.html
 
 But it does not explain which jar files are required and how to set up 
 the server without building the whole fop application.

 Regards,
 
 Xavier
 
 Manuel Mall a écrit :
  On Monday 08 January 2007 19:29, Xavier Ottolini wrote:

  Hi,
 
  I am a newbee with FOP. I would like to create a servlet application
  able to create a PDF file. I choosed fop.
 
  I downloaded the fop 0.92 src.
 
  I tried to build it with ant (Java 1.4 and Ant 1.7.0). But I get 44
  compile errors.
  The servlet will be hosted on a Tomcat 4.3 server (linux).
 
  I think I will use the binary distribution.
 
  
 
  The first stable fop release of the new code base is just out (fop 
  0.93). I recommend you use that.
 

  Are there any how to to build and set up a servlet ?
  Which jar files are necessary ?
 
  
 
  See http://xmlgraphics.apache.org/fop/0.93/servlets.html


Jeremias Maerki


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



Re: Error using TTFReader

2007-01-09 Thread Nicol Bolas

OK, I've gotten past that error using this command line:

java -cp
build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar
org.apache.fop.fonts.apps.TTFReader

However, I get the following:

Exception in thread main java.lang.NoClassDefFoundError: org/w3c/dom/Node

Is there something else I'm missing?



cbowditch wrote:
 
 Nicol Bolas wrote:
 I'm attempting to import some fonts into FOP 0.93, but I'm running into
 trouble. I keep getting this error whenever I try to run TTFReader:
 
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/commons/logging/LogFactory
 at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:116)
 
 Its a classpath problem.
 
 
 I don't really know what that means or why it's happenning. The command
 line
 I'm using is:
 
 C:\fop-0.93java -cp
 c:\fop-0.93\build\fop.jar;c:\fop-0.93\lib\avalon-framework.jar;c:\fop-0.93\lib\commons-logging.jar;c:\fop-0.93\lib\commons-io.jar
 org.apache.fop.fonts.apps.TTFReader
 
 The commons-logging.jar file that you've referenced in the classpath is 
 actually called commons-logging-1.0.4.jar. Take a look in the lib sub 
 folder to check the names of JAR files that you are referencing in your 
 classpath.
 
 Chris
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-using-TTFReader-tf2944457.html#a8250928
Sent from the FOP - Users mailing list archive at Nabble.com.


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



FOP Problem

2007-01-09 Thread pwillsey

Hello,
I'm getting a validation exception:
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: Error(Unknown location): For
fo:simple-page-master, only one fo:region-body may be declared.

But I've checked the XLST sheet and there is no fo:simple-page-master
element with more then one fo:region-body.  I've also tested this on another
machine and it works fine.  I'm using FOP V. 0.93 (on Both machines). 

 Not sure if this makes a difference but I'm using FOP in a webobjects
project and I get the exception when I deploy the project but not when I run
it using eclipse on my development machine.

Any help would be greatly Appreciated

Thanks

Peter Willsey
-- 
View this message in context: 
http://www.nabble.com/FOP-Problem-tf2950761.html#a8252450
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: Error using TTFReader

2007-01-09 Thread Jeremias Maerki
That means you're probably still on old JDK 1.3 which doesn't contain
JAXP. Please add Xerces and Xalan to the classpath.

On 10.01.2007 03:00:41 Nicol Bolas wrote:
 
 OK, I've gotten past that error using this command line:
 
 java -cp
 build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar
 org.apache.fop.fonts.apps.TTFReader
 
 However, I get the following:
 
 Exception in thread main java.lang.NoClassDefFoundError: org/w3c/dom/Node
 
 Is there something else I'm missing?
 
 
 
 cbowditch wrote:
  
  Nicol Bolas wrote:
  I'm attempting to import some fonts into FOP 0.93, but I'm running into
  trouble. I keep getting this error whenever I try to run TTFReader:
  
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/commons/logging/LogFactory
  at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:116)
  
  Its a classpath problem.
  
  
  I don't really know what that means or why it's happenning. The command
  line
  I'm using is:
  
  C:\fop-0.93java -cp
  c:\fop-0.93\build\fop.jar;c:\fop-0.93\lib\avalon-framework.jar;c:\fop-0.93\lib\commons-logging.jar;c:\fop-0.93\lib\commons-io.jar
  org.apache.fop.fonts.apps.TTFReader
  
  The commons-logging.jar file that you've referenced in the classpath is 
  actually called commons-logging-1.0.4.jar. Take a look in the lib sub 
  folder to check the names of JAR files that you are referencing in your 
  classpath.
  
  Chris
  
  


Jeremias Maerki


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



Re: FOP Problem

2007-01-09 Thread Jeremias Maerki
If you haven't done so already, run only the XSLT transformation outside
your application (on the command-line) and inspect the generated FO file.
You may also need to verify that you're using the same XSLT processor in
both environments.

On 10.01.2007 06:33:05 pwillsey wrote:
 
 Hello,
 I'm getting a validation exception:
 javax.xml.transform.TransformerException:
 org.apache.fop.fo.ValidationException: Error(Unknown location): For
 fo:simple-page-master, only one fo:region-body may be declared.
 
 But I've checked the XLST sheet and there is no fo:simple-page-master
 element with more then one fo:region-body.  I've also tested this on another
 machine and it works fine.  I'm using FOP V. 0.93 (on Both machines). 
 
  Not sure if this makes a difference but I'm using FOP in a webobjects
 project and I get the exception when I deploy the project but not when I run
 it using eclipse on my development machine.
 
 Any help would be greatly Appreciated



Jeremias Maerki


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



PROBLEM while trying to write text vertically with SVG

2007-01-09 Thread Gregan, Miroslav
Hello all,
 
I'm trying to write text vertically in a PDF by using an XSL-FO with SVG
code.
I use FOP 0.93 like a library in a java code under windows XP, (but
should also work under Linux).
The SVG code used is working fine in an SVG file, and with FOP 20.5.
 
BUT it is NOT working with FOP 0.93.
 
Could someone, please, have a look at it and tell my what am I doing
wrong?
 
fo start file:
http://www.filefactory.com/file/f107a9/
http://www.filefactory.com/file/f107a9/ 
 
pdf result file:
http://www.filefactory.com/file/d30969/
http://www.filefactory.com/file/d30969/ 
 
Thank you.
 
Kind regards,
 
Miroslav
 
PS
If someone knows a better server where to put the files than
fileFactory,
I'll be glad if you could tell me it's address.