FOP 0.20.5: preserving preformatted text

2006-04-05 Thread Diego F Guillen

I have been trying to display pre-formatted text in FO, unsuccessfully.

I tried:


  [preformatted text goes here]



How do you do it?
Thanks,
   Diego





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



[Fwd: [docbook-apps] FOP 0.91 : "trying to remove a non-trailing word space"]

2006-04-05 Thread Glen Mazza

Hello FOP Team,

This is from the Docbook-Apps list.  I think there is a stray debugging 
comment in the 0.91 version that can probably be removed--it seems 
unrelated to anything "wrong" that the user might be doing, but rather 
just a debugging note added in during algorithm development.  See below.


Thanks,
Glen

 Original message 
Subject: [docbook-apps] FOP 0.91 : "trying to remove a non-trailing word 
space"

Date: Wed, 05 Apr 2006 13:24:21 +0900
From: Michael(tm) Smith <[EMAIL PROTECTED]>
To: docbook-apps@lists.oasis-open.org

Has anyone else observed the following message when generating
PDFs from FOP 0.91? -

  trying to remove a non-trailing word space

Any idea what kind of problem (if any) it indicates? Any clues on
how to avoid it and/or how to suppress the message? It seems to
just be a notification. But it appears even when FOP is run with
the "-q" (quiet) option.

  --Mike

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



Fonts not displayed properly in Linux

2006-04-05 Thread ice1123

Hi,

Thanks in advance for reading this message!! The problem that I encountered
is that when I run the following command line (fop -xsl test.xsl -xml
customer.xml -pdf customer.pdf) in the Command Prompt in windows , every
Latin characters in the pdf file all displayed properly (for example, á).
However, when the command line is ran through a Java program in JBoss, the
latin characters are not displayed properly (for example, á). I'm using
fop-0.20.5 with Java 1.4.2_06 and JBoss-3.2.2. 

Not quite sure why this is happening and the solution for this. I've been
searching through a lot of different fop forums in the past two days and I
didn't find similar issues related to my problem. Please help! Thank you in
advance!!

Best Regards,

--
View this message in context: 
http://www.nabble.com/Fonts-not-displayed-properly-in-Linux-t1403045.html#a3776010
Sent from the FOP - Users forum at Nabble.com.


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



Re: Error while creating metric file

2006-04-05 Thread Jeremias Maerki
See here: 
http://xmlgraphics.apache.org/fop/0.20.5/embedding.html#config-external

On 05.04.2006 16:57:51 Archana Visveswaran, ASDC Chennai wrote:
> Right! When I used fop -c option from my command line, the file gets
> converted well.
> 
> But I have a Java application that does this conversion. 
> 
> Executing this code is similar to execution fop from command line. 
> 
> How can I make this code work with the -c option. 
> 
> i.e how do I ensure that the correct config file is referred to?
> 
> I have attached the Java File.



Jeremias Maerki


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



RE: Couldn't find hyphenation pattern

2006-04-05 Thread Pascal Sancho
> -Original Message-
> From: kralik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 05, 2006 2:01 PM

> With "OFFO" is now hyphenation OK. 
> But in FOP 0.91beta I had no file fo-hyph.jar in my lib 
> folder or in classpath and hyphenation was OK too.
> I don't understand it.

Some hyphenation languages are yet enbedded in FOP (see table in fine) 
(v0.20.5, but I suppose it is the same with v0.91b).
That can explain why you can hyphenate without Offo...

Pascal

code   nameTEX   offo   FOP
-
ca catalan ca   
cs tchèque czcs 
da danois  dkda 
de allemandde-t  de 
   allemandde-n  de_DR  
et estonienee
eu basque  ba   
grcgrec ancien GRA
el grec monotoniqueGRM   el 
el grec polytoniqueGRP  
en anglais   en en
en-UK  anglais britanique  uken_GB
en-US  anglais américain   usen_US
es espagnoleses es
fi finnois fifi fi
fr françaisfrfr 
ga irlandais   ga   
hr croate  hr
hsbhaut sorabe sor
hu hongroishuhu hu
ia interlingua ia   
id indonésien  in   
is islandais   is  
it italien itit it
la latin   la   
mn mongole mn   
nl néerlandais nenl 
no norvégien   nono 
pl polonaisplpl pl
pt portugais   ptpt pt
ru russe   ruru ru
   serbo-croatesh   
sr serbe   sr
sv suédois se   
tr turqtk
uk ukrénienukr

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



Re: Error while creating metric file

2006-04-05 Thread Jeremias Maerki
Are you sure that FOP picks up your userconfig.xml (-c on the
command-line)? If I use your triplet for the OCR font with one of my
fonts, it works fine.

On 05.04.2006 15:55:24 Archana Visveswaran, ASDC Chennai wrote:
> Oops! I have now changed the userconfig file. 
> 
> I still get the same error.
> 
> What is this font-triplet name?
> 
> What should be the actual value?
> 
> I have attached the userconfig.xml and orb1.xml files for reference.



Jeremias Maerki


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



Re: Error while creating metric file

2006-04-05 Thread Jeremias Maerki
You register the font as "PrecisionIDOCRB1DEMO" in the configuration but
refer to it as "PrecisionID OCR B1 DEMO" in XSL-FO. Notice the spaces!


On 05.04.2006 15:20:28 Archana Visveswaran, ASDC Chennai wrote:
> Hi,
>  
> Thanks for the info. I have created the metric file for OCR B1 font.
> I have included this in the userconfig.xml file using these lines.
>  
>  embed-file="C:\WINNT\Fonts\PrecisionID OCR B1 DEMO.ttf">
> 
>  
> 
>  
> Is there any error in the above lines? Because I still get this message while 
> converting:
> [ERROR] unknown font PrecisionID OCR B1 DEMO,normal,bold so defaulted font to 
> any
> How should this be resolved?




Jeremias Maerki


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



RE: Error while creating metric file

2006-04-05 Thread Archana Visveswaran, ASDC Chennai








Hi,

 

Thanks for the info. I have created the metric file
for OCR B1 font.

I have included this in the userconfig.xml file using
these lines.

 



   
embed-file="C:\WINNT\Fonts\PrecisionID OCR B1 DEMO.ttf">

     

    

 

Is there any error in the above lines? Because I still
get this message while converting:

[ERROR] unknown font PrecisionID OCR B1
DEMO,normal,bold so defaulted font to any

How should this be resolved?

 

Thanks and Regards,

Archana V

 

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 5:25 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error while creating metric file

 

Indeed, Windows' Webdings and Symbol TrueType fonts
cannot be processed

by TTFReader and can therefore not be used with FOP at
the moment. For

the Symbol font this is not tragic because the Symbol
font is one of the

base14 fonts which are simply available in FOP. For
the other fonts,

this is a problem. In the last few months a number of
people have

reported problems with certain fonts. One would hope
that the itch to

make these fonts work would at some point be enough to
get someone to

look into the problem. Patches are always welcome.
Otherwise, you'll

have to live with these restrictions.

 

Alternatives are to find other fonts, possibly in Type
1 format, or to

use SVG graphics instead of the Webdings fonts, for
example.

 

On 05.04.2006 12:04:16 Archana Visveswaran, ASDC
Chennai wrote:

> Hi, 

>  

> I am using fop-0.20.5.

> I need to create a metric file for Webdings, OCR
font and Symbol. But I

> get the following error:

>  

> Reading C:\WINNT\Fonts\Symbol.ttf...

>  

> Number of glyphs in font: 192

> Unicode cmap table not present

> java.lang.IndexOutOfBoundsException: Index: 0,
Size: 0

>
at java.util.ArrayList.RangeCheck(ArrayList.java:507)

>
at java.util.ArrayList.get(ArrayList.java:324)

>
at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449)

>
at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439)

>
at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222)

>
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184)

>  

> I saw a similar post but the solution was not
provided. 

> How can I write the metric file? I am using
1.4.2_03 version of Java.

> My aim is to convert an fo file to pdf. This uses
Symbol and OCR font.

> Is there any way these fonts can be included or
do we have any

> restrictions while using FOP?

 

 

 

Jeremias Maerki

 

 

-

To unsubscribe, e-mail:
[EMAIL PROTECTED]

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








Re: Fop 0.92 and php transparency.

2006-04-05 Thread Jeremias Maerki
Yes, PNG images with alpha channel are supported in PDF, but not
necessarily in other output formats (like PostScript format, for example).

On 05.04.2006 13:17:50 Pierre-Yves Landuré wrote:
> i'm need png alpha layer in some of my pdf, and i was wondering if fop 
> 0.92 is supporting png alpha layer for transparency ? i remember that 
> fop 0.20.5 don't support it.


Jeremias Maerki


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



Re: Couldn't find hyphenation pattern

2006-04-05 Thread kralik

With "OFFO" is now hyphenation OK. 
But in FOP 0.91beta I had no file fo-hyph.jar in my lib folder or in
classpath and hyphenation was OK too.
I don't understand it.

Pavel Tyl
--
View this message in context: 
http://www.nabble.com/Couldn%27t-find-hyphenation-pattern-t1398418.html#a3762935
Sent from the FOP - Users forum at Nabble.com.


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



Re: Error while creating metric file

2006-04-05 Thread Jeremias Maerki
Indeed, Windows' Webdings and Symbol TrueType fonts cannot be processed
by TTFReader and can therefore not be used with FOP at the moment. For
the Symbol font this is not tragic because the Symbol font is one of the
base14 fonts which are simply available in FOP. For the other fonts,
this is a problem. In the last few months a number of people have
reported problems with certain fonts. One would hope that the itch to
make these fonts work would at some point be enough to get someone to
look into the problem. Patches are always welcome. Otherwise, you'll
have to live with these restrictions.

Alternatives are to find other fonts, possibly in Type 1 format, or to
use SVG graphics instead of the Webdings fonts, for example.

On 05.04.2006 12:04:16 Archana Visveswaran, ASDC Chennai wrote:
> Hi, 
>  
> I am using fop-0.20.5.
> I need to create a metric file for Webdings, OCR font and Symbol. But I
> get the following error:
>  
> Reading C:\WINNT\Fonts\Symbol.ttf...
>  
> Number of glyphs in font: 192
> Unicode cmap table not present
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:507)
> at java.util.ArrayList.get(ArrayList.java:324)
> at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449)
> at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439)
> at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222)
> at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184)
>  
> I saw a similar post but the solution was not provided. 
> How can I write the metric file? I am using 1.4.2_03 version of Java.
> My aim is to convert an fo file to pdf. This uses Symbol and OCR font.
> Is there any way these fonts can be included or do we have any
> restrictions while using FOP?



Jeremias Maerki


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



Re: Couldn't find hyphenation pattern

2006-04-05 Thread Jeremias Maerki
I don't see any problems with hyphenation in the latest FOP Trunk. I
suspect the JAR file with the hyphenation patterns (from
http://offo.sf.net) is not on your classpath. It may have gone lost when
you went from 0.91beta to Trunk.

On 05.04.2006 11:45:45 kralik wrote:
> 
> Hello!
> 
> I have a problem with FOP Trunk. 
> If I run FOP, it transform my document, but without hyphenation. 
> Statement of FOP always ends with following message:
>  
> Couldn't find hyphenation pattern cs
> 
> In previous version (0.91beta) was hyphenation OK. I assumed, that
> hyphenation of Czech and Slovak words is also implemented in Trunk.
>  
> Example from my XSL file:
> 
> 
> 
>   
>   
>   
> 
> 
> Where could be mistake?


Jeremias Maerki


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



Fop 0.92 and php transparency.

2006-04-05 Thread Pierre-Yves Landuré




Hi,

i'm need png alpha layer in some of my pdf, and i was wondering if fop
0.92 is supporting png alpha layer for transparency ? i remember that
fop 0.20.5 don't support it.

Thanx for help

Pierre-Yves
Landuré







Re: Couldn't find hyphenation pattern

2006-04-05 Thread Chris Bowditch

kralik wrote:


Hello!
I have a problem with FOP Trunk.
If I run FOP, it transform my document, but without hyphenation.
Statement of FOP always ends with following message:
*Couldn't find hyphenation pattern cs*


Did you download the fop-hyph.jar available separately from OFFO?

The hypenation patterns are now distributed in fop-hyph.jar because they 
are not compatible with Apache's License. OFFO home page can be found here:


http://offo.sourceforge.net/



Chris



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



Error while creating metric file

2006-04-05 Thread Archana Visveswaran, ASDC Chennai








Hi, 

 

I am using fop-0.20.5.

I need to create a
metric file for Webdings, OCR font and Symbol. But I get the following error:

 

Reading
C:\WINNT\Fonts\Symbol.ttf...

 

Number of glyphs in
font: 192

Unicode cmap table not
present

java.lang.IndexOutOfBoundsException:
Index: 0, Size: 0

   
at java.util.ArrayList.RangeCheck(ArrayList.java:507)

 
  at java.util.ArrayList.get(ArrayList.java:324)

   
at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449)

   
at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439)

   
at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222)

   
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184)

 

I saw a similar post
but the solution was not provided. 

How can I write the
metric file? I am using 1.4.2_03 version of Java.

My aim is to convert
an fo file to pdf. This uses Symbol and OCR font.

Is there any way these
fonts can be included or do we have any restrictions while using FOP?

 

 

Thanks and Regards,

Archana V








Couldn't find hyphenation pattern

2006-04-05 Thread kralik

Hello!
I have a problem with FOP Trunk. If I run FOP, it transform my document, but without hyphenation. Statement of FOP always ends with following message: 
Couldn't find hyphenation pattern cs
In previous version (0.91beta) was hyphenation OK. I assumed, that hyphenation of Czech and Slovak words is also implemented in Trunk. 
Example from my XSL file:


	
		
	


Where could be mistake?

Regards,
Pavel Tyl

View this message in context: Couldn't find hyphenation pattern
Sent from the FOP - Users forum at Nabble.com.


RE: Page number and ref-id - FOPException : The id already exists

2006-04-05 Thread Pascal Sancho
> -Original Message-
> From: Cedric Augustin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 05, 2006 10:15 AM

> We curently have a customized servlet to generate PDF for 
> various projects in production. This servlet is build on fop 
> version 0.20.5. We do not plan to switch to new version 
> unless version 1.0.

> [ERROR] org.apache.fop.apps.FOPException: The id "ln2350" 
> already exists in this document
> 
> I check and found no duplicate id in the fo file. A search in 
> the mailing list archive gave me J.Pietschmann answer about 
> this problem :
> 
> FOP 0.20.5 has a few bug which cause this error message even 
> for perfectly legal FO input.
> - Do not reference IDs in static content.
> - Do not reference IDs in table cells which are in rows with 
> a keep-together or keep-with-next property or which are 
> followed by a row with a keep-with-previous property.
> - Be careful referencing IDs in content which may be 
> rebalanced due to footnotes or due to span="all" blocks in a 
> multi-column layout.

Yes, FOP 0.20.5 is buggy here.

> My doc use two column layout with some page on one column, so 
> I think I am in trouble... :(

As a workaround, when I have a multi-column layout, I use a fo:block
nested in a spanned fo:block to define an id:



...



Hope that helps.

Pascal

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



Re: Gif and RTF

2006-04-05 Thread Chris Bowditch

Ian Boston wrote:


Hi,
I noticed a post on GIF & RTF on Jan 09, 2006. (reporting it isnt 
supported as yet)


Are there plans to fix it, or has it been fixed ?


I don't think anyone has done this yet.

If not can I submit a patch to make it work (transcoding GIF to PNG or 
JPG) ?


Yes please :) FOP is an Open Source project, and such projects thrive on 
people sending patches.



If so where ?


The process is documented here:

http://xmlgraphics.apache.org/fop/dev/index.html#patches



Thanks,

Chris



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



Re: Unknown Error

2006-04-05 Thread kralik

Thanks for your advice. 
It was my mistake, that I tried to run UNCOMPILED FOP Trunk. I found
something about it (ANT, ...) and now it's OK.

I am looser :-)
--
View this message in context: 
http://www.nabble.com/Unknown-Error-t1395660.html#a3760740
Sent from the FOP - Users forum at Nabble.com.


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



Gif and RTF

2006-04-05 Thread Ian Boston

Hi,
I noticed a post on GIF & RTF on Jan 09, 2006. (reporting it isnt 
supported as yet)


Are there plans to fix it, or has it been fixed ?
If not can I submit a patch to make it work (transcoding GIF to PNG or 
JPG) ?

If so where ?

I am intending to use it in sakaiproject wiki tool 
(www.sakaiproject.org), need RTF support, and cant wait for the 1.0 
release.

Ian

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



Page number and ref-id - FOPException : The id already exists

2006-04-05 Thread Cedric Augustin



Hello,We curently have a customized 
servlet to generate PDF for various projects in production. This servlet is 
build on fop version 0.20.5. We do not plan to switch to new version unless 
version 1.0.Until now, I never had to create a document with a sumary 
including page number. I just try and I get the following error 
:[ERROR] 
org.apache.fop.apps.FOPException: The id "ln2350" already exists in this 
documentI check and found no duplicate id in the fo file. A 
search in the mailing list archive gave me J.Pietschmann answer about this 
problem :FOP 0.20.5 has a few bug which cause this error message 
even for perfectlylegal FO input.- Do not reference IDs in static 
content.- Do not reference IDs in table cells which are in rows with a 
keep-together or keep-with-next property or which are followed by a row with a 
keep-with-previous property.- Be careful referencing IDs in content which 
may be rebalanced due to footnotes or due to span="all" blocks in a multi-column 
layout.My doc use two column layout with some page on one column, 
so I think I am in trouble... :(Is it any work around or patch to found 
a way to have the page number on the sumary ?Thanks by 
advance,Cédric Augustin  


Re: Unknown Error

2006-04-05 Thread Chris Bowditch

kralik wrote:


Please HELP!

I tried to use FOP Trunk version, but I always get following message:
*Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/fop/cli/Main*


This is a classpath problem. Look into FOP.bat and you will see that it 
references some files with .jar extension. Make sure they exist in the 
path referenced by fop.bat.


Chris



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