Re: Retrieve a marker from the previous page

2007-02-05 Thread Chris Bowditch

Roger Kovack1 wrote:

Is there any way of retrieving the last marker from the previous page? 
If the last marker on the previous page has a content of "blah", I'd 
like to display 'Continuing "blah"' in the header of the current page. 


the problem is that a retrieve marker FO will search back through the 
document starting at the current page until it find an occurrence of the 
named marker. So that if you have markers on the current page then the 
retrieve will find the marker on the current page not the previous page.


The way I have achieved such affects is to insert 2 markers on every 
paragraph, e.g.


Title2
Title1

Chris




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



Infinite Loop when using SVG Image

2007-02-05 Thread Christian Loock
 <> He 
<> llo everyone,

on friday i wrote an email about an exception that appeart while i was
trying to use an svg image in FOP 0.25.. Now i have encountered another
Problem which i cannot really explain by myself. I attached an fo file
and a svg image used in the fo. When i try to render this fo as an PDF
Fop seems to be running into an infinite Loop.
The PDF which should be about 8 pages long is looped over 10 pages
>_>. Killing the process after about 100k pages showed me a PDF File
which was about 300MB big and could not be opened in Adobe Acrobat
Reader.

Here is a slice of the output FOP generates...it rendered about 5
seconds...then i killed the process.

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP @version@
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] [2]
[INFO] [3]
[INFO] [4]
[INFO] [5]
[INFO] [6]
.
.
.
[INFO] [6064]
[INFO] [6065]
[INFO] [6066]
[INFO] [6067]
[INFO] [6068]

Do you have any ideas about what is wrong with that svg?

Best regards,

Christian


NACS_17_tentcard.svg
Description: Binary data


f0b6414e9676a3afb5bdc5f7cf8bf6d9_2355.fo
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Infinite Loop when using SVG Image

2007-02-05 Thread Chris Bowditch

Christian Loock wrote:

 <> He 
<> llo everyone,


on friday i wrote an email about an exception that appeart while i was
trying to use an svg image in FOP 0.25.. Now i have encountered another
Problem which i cannot really explain by myself. I attached an fo file
and a svg image used in the fo. When i try to render this fo as an PDF
Fop seems to be running into an infinite Loop.
The PDF which should be about 8 pages long is looped over 10 pages


The SVG is probably too big to fit on the page. FOP creates a new page 
because it may fit on that page if there is less content or the page 
dimensions are bigger. However, in your case no pages are found which 
are big enough to contain the SVG. Try specifying an explicit size on 
fo:external-graphic or fo:instream-foreign-object tag.




Chris




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



Problem aligning a text at the bottom of a cell

2007-02-05 Thread Asbjørn Thorsen

I use FOP 0.25 and wonder how I can align a text to the bottom of a cell ? 
Check out the source-code under where I'
d like the email address to be at the bottom of the cell:

snip
.
.







  
  

  

  
  

  
  

  
  

  
  

  
  

  


.
.
snip



Asbjørn

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



RE: Problem aligning a text at the bottom of a cell

2007-02-05 Thread Pascal Sancho
Hi AT,

In FOP 0.20.5, vertical alignment is only supported on 
fo:table-row/fo:table-cell.
Il you want to display a part of a fo:table-cell content at the bottom of your 
cell, you have to embed a new fo:table with 2 fo:table-row in your initial 
fo:table-row.

Then give an explicit height on your 2 fo:table-row, and specify the 
display-align property (either to fo:table-row, or to fo:table-cell).

display-align usual values can be "before", "center", or "after".

HTH,

Pascal


> -Message d'origine-
> De : Asbjørn Thorsen [mailto:[EMAIL PROTECTED] 
> Envoyé : lundi 5 février 2007 13:53
> À : fop-users@xmlgraphics.apache.org
> Objet : Problem aligning a text at the bottom of a cell
> 
> I use FOP 0.25 and wonder how I can align a text to the 
> bottom of a cell ? Check out the source-code under where I'
> d like the email address to be at the bottom of the cell:
> 
> snip
> .
> .
> 
>  
>  
>  
>  
>  
>  
>
>
>   border="solid 1px" number-rows-spanned="4">
>
>  
>
>
>   select="formular/mottakerinfo/adresselinje1"/>
>
>
>   select="formular/mottakerinfo/adresselinje2"/>
>
>
>   select="formular/mottakerinfo/adressested"/>
>
>
>   select="formular/mottakerinfo/adresseland"/>
>
>
>   select="formular/mottakerinfo/epostadresse"/>
>
> 
>  
> .
> .
> snip
> 
> 
> 
> Asbjørn
> 
> -
> 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: Infinite Loop when using SVG Image

2007-02-05 Thread Pascal Sancho
Hi,

In complement, I think you have 2 other alternatives:

 - keep FOP 0.20.5 and parse your SVG files in a XSLT in order to control width 
and height, and put the result in a fo:instream-foreing-object;
 - upgrade form 0.20.5 to latest 0.93 FOP version.

Pascal

> -Message d'origine-
> De : Chris Bowditch [mailto:[EMAIL PROTECTED] 
> Envoyé : lundi 5 février 2007 13:31
> À : fop-users@xmlgraphics.apache.org
> Objet : Re: Infinite Loop when using SVG Image
> 
> Christian Loock wrote:
> 
> >  <> He
> > <> llo everyone,
> > 
> > on friday i wrote an email about an exception that appeart 
> while i was 
> > trying to use an svg image in FOP 0.25.. Now i have encountered 
> > another Problem which i cannot really explain by myself. I 
> attached an 
> > fo file and a svg image used in the fo. When i try to 
> render this fo 
> > as an PDF Fop seems to be running into an infinite Loop.
> > The PDF which should be about 8 pages long is looped over 
> 10 pages
> 
> The SVG is probably too big to fit on the page. FOP creates a 
> new page because it may fit on that page if there is less 
> content or the page dimensions are bigger. However, in your 
> case no pages are found which are big enough to contain the 
> SVG. Try specifying an explicit size on fo:external-graphic 
> or fo:instream-foreign-object tag.
> 
> 
> 
> Chris
> 
> 
> 
> 
> -
> 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: Problem aligning a text at the bottom of a cell

2007-02-05 Thread Asbjørn Thorsen

Pascal Sancho skrev:

Hi AT,

In FOP 0.20.5, vertical alignment is only supported on 
fo:table-row/fo:table-cell.
Il you want to display a part of a fo:table-cell content at the bottom of your 
cell, you have to embed a new fo:table with 2 fo:table-row in your initial 
fo:table-row.

Then give an explicit height on your 2 fo:table-row, and specify the 
display-align property (either to fo:table-row, or to fo:table-cell).

display-align usual values can be "before", "center", or "after".

HTH,

Pascal



-Message d'origine-
De : Asbjørn Thorsen [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 5 février 2007 13:53

À : fop-users@xmlgraphics.apache.org
Objet : Problem aligning a text at the bottom of a cell

I use FOP 0.25 and wonder how I can align a text to the 
bottom of a cell ? Check out the source-code under where I'

d like the email address to be at the bottom of the cell:

snip
.
.

 
 
 
 
 
 
   
   
 border="solid 1px" number-rows-spanned="4">

   
 
   
   
 select="formular/mottakerinfo/adresselinje1"/>

   
   
 select="formular/mottakerinfo/adresselinje2"/>

   
   
 select="formular/mottakerinfo/adressested"/>

   
   
 select="formular/mottakerinfo/adresseland"/>

   
   
 select="formular/mottakerinfo/epostadresse"/>

   

 
.
.
snip



Asbjørn

-
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]


Thanx.

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



Re: display-align="justify"

2007-02-05 Thread Luis Ferro

I will try both solutions...

I've to give you all Hats off... you devs are the best i've seen everywhere
;)

And indeed... i was fortunate to have found FOP... it's a charm to work with
it, specially because it's user base and dev base are extremelly helpfull as
i've seen in the past and i see everyday with other problems.

Keep the good work,
LF

-- 
View this message in context: 
http://www.nabble.com/display-align%3D%22justify%22-tf3162421.html#a8807939
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Multiple page number + total page number

2007-02-05 Thread Sergio Lopez

Hi

I'm newbie in FO so sorry for my 1sr question maybe and easy one or i didn't 
send it to the correct place ...


I want to create one pdf consisting in group of numbered pages, I mean, if 
my PDF has 10 pages I must have pages numbered like this:

- first group of pages:  1 of 1
- 2nd group --> 1 of 3, ..., 1 of 3
- 3rd group --> 1 of 5, 2 of 5, ..., 5 of 5

And the 11th page, and the last one of this PDF, it's a summary in which i 
must show the total number of pages (1 + 3 + 5 +1)


As a clue (?) ... To create this PDF I use 3 FOP + XSLT. Let's say one who 
acts at the main and imports the other 2


No problem in initiating the number of page for each group of pages. The 
problem it's to set/count the total number of pages of the generated PDF. 
Any hint?


I looked quickly in the mailing list but I got a little lost ... and, as 
usual, have to solve it quickly 


Thx for ur time, ur patientwith my poor English and for hints.

Best regards

_
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos 
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos



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



Re: Multiple page number + total page number

2007-02-05 Thread mahmoudi ould abdel vetah

hi,

you can create an empty block at the end of the last page-sequence of your
document and put an id like "content-and" like an attribute for this
blockso to display the total number you will make something like this :



i hope this helps you.




2007/2/5, Sergio Lopez <[EMAIL PROTECTED]>:


Hi

I'm newbie in FO so sorry for my 1sr question maybe and easy one or i
didn't
send it to the correct place ...

I want to create one pdf consisting in group of numbered pages, I mean, if
my PDF has 10 pages I must have pages numbered like this:
- first group of pages:  1 of 1
- 2nd group --> 1 of 3, ..., 1 of 3
- 3rd group --> 1 of 5, 2 of 5, ..., 5 of 5

And the 11th page, and the last one of this PDF, it's a summary in which i
must show the total number of pages (1 + 3 + 5 +1)

As a clue (?) ... To create this PDF I use 3 FOP + XSLT. Let's say one who
acts at the main and imports the other 2

No problem in initiating the number of page for each group of pages. The
problem it's to set/count the total number of pages of the generated PDF.
Any hint?

I looked quickly in the mailing list but I got a little lost ... and, as
usual, have to solve it quickly 

Thx for ur time, ur patientwith my poor English and for hints.

Best regards

_
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis.

http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos


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




Re: Multiple page number + total page number

2007-02-05 Thread Chris Bowditch

mahmoudi ould abdel vetah wrote:


hi,
 
you can create an empty block at the end of the last page-sequence of 
your document and put an id like "content-and" like an attribute for 
this blockso to display the total number you will make something 
like this :
 

 
i hope this helps you.


Whilst this works for a document with a single sequence of page numbers, 
the OP said that he has multiple page sequences, which reset the page 
numbering. In such a situation your solution will return the page number 
of the sequence containing the id and not the total for the entire 
document. XSL-FO has no means to manipulate page numbers. I'm afraid you 
are stuck :(




Chris




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



Re: Multiple page number + total page number

2007-02-05 Thread mahmoudi ould abdel vetah

hi chris,

thank's chris, in thi case  you can only create not an empty block but an
empty page-sequence at the end of the last page-sequence of your document
and make the same thing that i explainedthe inconvenient is that you
will have a blank page at the end of your document!

mahmoudi.


2007/2/5, Chris Bowditch <[EMAIL PROTECTED]>:


mahmoudi ould abdel vetah wrote:

> hi,
>
> you can create an empty block at the end of the last page-sequence of
> your document and put an id like "content-and" like an attribute for
> this blockso to display the total number you will make something
> like this :
>
> 
>
> i hope this helps you.

Whilst this works for a document with a single sequence of page numbers,
the OP said that he has multiple page sequences, which reset the page
numbering. In such a situation your solution will return the page number
of the sequence containing the id and not the total for the entire
document. XSL-FO has no means to manipulate page numbers. I'm afraid you
are stuck :(



Chris




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




Re: block-container and margin/padding properties

2007-02-05 Thread paul
Jay and Andreas, thanks for your helpful ideas... The article about
indent-inheritance is very interesting, and probably it is indeed a inheritance
problem. But from how I understand the document, indents should be inherited,
not margins... anyways, my workaround for the moment is to reset the margins of
the block within the block-container by assigning them the negative value of the
margin of the container. That works :)

...


...


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



font-family="Arial Unicode MS" in rtf doesn't work

2007-02-05 Thread Dominic Marcotte

Hello,

Font-family "Arial Unicode MS" in FO become "Arial" in RTF.

Like if font-family can't have a space in their name.

font-size="9.5pt">⇓




If I try with font-family "ArialUnicodeMS", I get "ArialUnicodeMS" in 
RTF but I Word or WordPad doesn't konw this font. I must change it 
manualy to "Arial Unicode MS".



I use "FOP Trunk" revision 499827.

Any suggestion?

Dominic



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



Re: Multiple page number + total page number

2007-02-05 Thread J.Pietschmann

Sergio Lopez wrote:
I want to create one pdf consisting in group of numbered pages, I mean, 
if my PDF has 10 pages I must have pages numbered like this:

- first group of pages:  1 of 1
- 2nd group --> 1 of 3, ..., 1 of 3
- 3rd group --> 1 of 5, 2 of 5, ..., 5 of 5

And the 11th page, and the last one of this PDF, it's a summary in which 
i must show the total number of pages (1 + 3 + 5 +1)



This is a FAQ. As already pointed out, you can only get page numbers,
rather than a total page count, within the FO standard.
If you can implement a small Java class, you can use a two pass
solution, grabbing the total page count from the rendering results
of the first pass.

J.Pietschmann

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



RE: font-family="Arial Unicode MS" in rtf doesn't work

2007-02-05 Thread Jeff Vannest
I've noticed the same going to PDF. For some reason specifying "Arial
Unicode MS" is not honored. I worked around it by using the Arial
font-family and mapping the Arial triplets to the ARIALUNI.TTF in the
userconfig.xml.

Jeff


-Original Message-
From: Dominic Marcotte [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 4:37 PM
To: fop-users@xmlgraphics.apache.org
Subject: font-family="Arial Unicode MS" in rtf doesn't work

Hello,

Font-family "Arial Unicode MS" in FO become "Arial" in RTF.

Like if font-family can't have a space in their name.

?



If I try with font-family "ArialUnicodeMS", I get "ArialUnicodeMS" in 
RTF but I Word or WordPad doesn't konw this font. I must change it 
manualy to "Arial Unicode MS".


I use "FOP Trunk" revision 499827.

Any suggestion?

Dominic



-
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: font-family="Arial Unicode MS" in rtf doesn't work

2007-02-05 Thread Jeremias Maerki
Try font-family="'Arial Unicode MS'"

http://www.w3.org/TR/xsl11/#font-family says:
"Font family names containing whitespace should be quoted."

On 05.02.2007 22:36:32 Dominic Marcotte wrote:
> Hello,
> 
> Font-family "Arial Unicode MS" in FO become "Arial" in RTF.
> 
> Like if font-family can't have a space in their name.
> 
>  font-size="9.5pt">⇓
> 
> 
> 
> If I try with font-family "ArialUnicodeMS", I get "ArialUnicodeMS" in 
> RTF but I Word or WordPad doesn't konw this font. I must change it 
> manualy to "Arial Unicode MS".
> 
> 
> I use "FOP Trunk" revision 499827.
> 
> Any suggestion?
> 
> Dominic



Jeremias Maerki


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



Re: font-family="Arial Unicode MS" in rtf doesn't work

2007-02-05 Thread Daniel Noll

Jeremias Maerki wrote:

Try font-family="'Arial Unicode MS'"

http://www.w3.org/TR/xsl11/#font-family says:
"Font family names containing whitespace should be quoted."


...but not "must" ;-)

Still, this all sounds awfully familiar.

Interestingly, 0.20.5 did support it without spaces... at least as far 
as I remember.


Daniel


--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699
Web: http://nuix.com/   Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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



RE: font-family="Arial Unicode MS" in rtf doesn't work

2007-02-05 Thread Jeff Vannest
Jeremias Maerki wrote:
> Try font-family="'Arial Unicode MS'"
> 
> http://www.w3.org/TR/xsl11/#font-family says:
> "Font family names containing whitespace should be quoted."


font-family="Arial Unicode MS" is already quoted, right? To my knowledge,
all attribute values must be quoted in order to meet most SGML-based
specifications. I am not familiar with any cases where double-quoting values
should be recommended.

Jeremias, are you referring to a known bug?

Jeff




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



Re: font-family="Arial Unicode MS" in rtf doesn't work

2007-02-05 Thread Daniel Noll

Jeff Vannest wrote:

Jeremias Maerki wrote:

Try font-family="'Arial Unicode MS'"

http://www.w3.org/TR/xsl11/#font-family says:
"Font family names containing whitespace should be quoted."



font-family="Arial Unicode MS" is already quoted, right? To my knowledge,
all attribute values must be quoted in order to meet most SGML-based
specifications. I am not familiar with any cases where double-quoting values
should be recommended.


The reason is that the CSS specification (which XSL-FO happens to borrow 
from in this instance) recommends the quotes.


To make matters more interesting, the spec also says that a font family 
like "Arial  Unicode  MS" (no quotes, and note the double spaces) should 
also resolve back to "Arial Unicode MS" (single spaces).  FOP doesn't do 
any of this of course, it splits at the spaces, which is a spec 
violation the way I see it.


But at the same time, the spec does say it SHOULD be quoted, so you 
should quote it.


Daniel

--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699
Web: http://nuix.com/   Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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



Error in Running FOP 0.93

2007-02-05 Thread Jeff Sese

Hi,

I'm trying out FOP 0.93 using the command-line and my input is an FO
file. However I got this error message when I tried running it:

SEVERE: Exception
java.lang.IllegalStateException: FOTreeBuilder (and the Fop class)
cannot be reused. Please instantiate a new instance.
   at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)

   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
   at org.apache.fop.cli.Main.startFOP(Main.java:160)
   at org.apache.fop.cli.Main.main(Main.java:191)
-
java.lang.IllegalStateException: FOTreeBuilder (and the Fop class)
cannot be reused. Please instantiate a new instance.
   at
org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:147)
   at
net.sf.saxon.event.ContentHandlerProxy.open(ContentHandlerProxy.java:242)
   at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:76)
   at
net.sf.saxon.event.ReceivingContentHandler.startDocument(ReceivingContentHandler.java:145)
   at
org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source)
   at
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
   at
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
   at
org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:269)
   at net.sf.saxon.event.Sender.send(Sender.java:144)
   at
net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:29)
   at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
   at org.apache.fop.cli.Main.startFOP(Main.java:160)
   at org.apache.fop.cli.Main.main(Main.java:191)

After googling for some related problems, users list the same problem
when running a transformation using saxon, but in my case i did not run
a transformation and have a FO file as input for FOP.

I'm running FOP in a JRE 1.5.0_09 in a Windows XP.

Also when i tried using FOP 0.20.5, i was able to create a PDF output.

How can i resolve this problem?

TIA
--
*Jeff Sese*


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



Re: font-family="Arial Unicode MS" in rtf doesn't work

2007-02-05 Thread Andreas L Delmelle

On Feb 6, 2007, at 03:59, Daniel Noll wrote:


Jeff Vannest wrote:

Jeremias Maerki wrote:

Try font-family="'Arial Unicode MS'"

http://www.w3.org/TR/xsl11/#font-family says:
"Font family names containing whitespace should be quoted."
font-family="Arial Unicode MS" is already quoted, right? To my  
knowledge,

all attribute values must be quoted in order to meet most SGML-based
specifications. I am not familiar with any cases where double- 
quoting values

should be recommended.


The reason is that the CSS specification (which XSL-FO happens to  
borrow from in this instance) recommends the quotes.


To make matters more interesting, the spec also says that a font  
family like "Arial  Unicode  MS" (no quotes, and note the double  
spaces) should also resolve back to "Arial Unicode MS" (single  
spaces).  FOP doesn't do any of this of course, it splits at the  
spaces, which is a spec violation the way I see it.


If anyone feels like fixing it, the problem is roughly:
the standard PropertyParser parses the property "Arial Unicode MS" as  
a ListProperty containing three StringProperties


All that needs to be done, IIC, is to override Maker.make 
(PropertyList, String, FObj) in FontFamilyProperty. Note that this is  
about the only property that can contain spaces, where these spaces  
do /not/ signify boundaries between multiple values, as a list of  
font-families will be separated by commas.


Should be simple enough for someone who wants to get his feet wet...  
Might even take it on myself, if no one beats me to it.



Cheers,

Andreas


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