Re: underlining

2003-12-17 Thread J.Pietschmann
Manjush G. Menon wrote:
can anyone help me with a snippet of underlining a text?
I tried with a table and two rows, but it doesnt expand and
only a small portion is underlined.
Try
  foo
Have a look at D.Pawson's XSLFO book or any of the references
and tutorials on the net for details.
J.Pietschmann

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


underlining

2003-12-17 Thread Manjush G. Menon
hi
can anyone help me with a snippet of underlining a text?
I tried with a table and two rows, but it doesnt expand and
only a small portion is underlined.

Thanks
--

Manjush



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



Re: Formatting of retrieve-marker

2003-12-17 Thread J.Pietschmann
Jay Chiu wrote:
I also need this feature. When will this bug be fixed and is
there any workaround for this issue?
It will not be fixed in the short term. There is no really
good workaround, you have to spell out every property which
is not shared between the FO at the place where the marker
is defined and the place where a retrieve-marker will insert
it. This also means you can't format the same marker in
different styles using inherited properties from parents of
the retrieve-marker. You have to define two or more markers
already with the correct properties and use them accordingly.
J.Pietschmann

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


Re: alternating footer help

2003-12-17 Thread Clay Leeds
I'm guessing the fos were updated to match the spec, which requires  
"master-reference" instead of "master-name". Before you upgrade to  
fop-0.20.5 (recommended! ;-), you'll need to also read this FAQ which  
explains about a change you'll need to do with your own FOs:

http://xml.apache.org/fop/faq.html#no-page-master
Good luck!
Web Maestro Clay
On Dec 17, 2003, at 10:18 AM, Eric Dalquist wrote:
I'm attempting to use the example from the  
http://xml.apache.org/fop/fo.html for Recto/Verso Static Content  
Differences to get different footers on odd & even pages. I'm using  
FOP 0.20.2 and I get an exception when I try to use the xsl:fo  
verbatim from the web page.

The error states:
ERROR In com.mtu.XSQLSerializers.FOPSerializer
Stack Trace:
'master-name' for 'fo:page-sequence'matches no 'simple-page-master' or  
'page-sequence-master'
org.apache.fop.apps.FOPException: 'master-name' for  
'fo:page-sequence'matches no 'simple-page-master' or  
'page-sequence-master' at java.lang.Throwable.fillInStackTrace(Native  
Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at  
java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled  
Code) at org.apache.fop.apps.FOPException.(FOPException.java:28) at  
org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(Compiled  
Code) at org.apache.fop.fo.pagination.PageSequence.makePage(Compiled  
Code) at org.apache.fop.fo.pagination.PageSequence.format(Compiled  
Code) at org.apache.fop.apps.StreamRenderer.render(Compiled Code) at  
org.apache.fop.fo.FOTreeBuilder.endElement(Compiled Code) at  
org.apache.xerces.parsers.SAXParser.endElement(Compiled Code) at  
org.apache.xerces.validators.common.XMLValidator.callEndElement(Compile 
d Code) at  
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat 
ch(Compiled Code) at  
org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled  
Code) at  
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948) at  
org.apache.fop.apps.Driver.render(Driver.java:459) at  
org.apache.fop.apps.Driver.run(Driver.java:542) at  
com.mtu.fop.FOPDriver.render(FOPDriver.java:194) at  
com.mtu.fop.FOPDriver.renderPDF(Compiled Code) at  
com.mtu.XSQLSerializers.FOPSerializer.serialize(Compiled Code) at  
oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code) at  
oracle.xml.xsql.XSQLServlet.doGet(Compiled Code) at  
javax.servlet.http.HttpServlet.service(Compiled Code) at  
javax.servlet.http.HttpServlet.service(Compiled Code) at  
org.apache.jserv.JServConnection.processRequest(Compiled Code) at  
org.apache.jserv.JServConnection.run(Compiled Code) at  
java.lang.Thread.run(Compiled Code)

Error while attempting to render PDF
I've looked through the mailing list and the example from the FOP web  
page matches the examples given else where for doing this. Any ideas  
would be much appreciated.

-Eric Dalquist

-
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: alternating footer help

2003-12-17 Thread Eric Dalquist


heh, replying to myself ... well I just thought to look in the release
notes for the .20 branch and found under the .3 release
This version supports the XSL-FO Version 1.0 W3C Recommendation syntax.
So don't forget to update your Stylesheets: 
Just rename the master-name property to master-reference on
fo:page-sequence, fo:single-page-master-reference,
fo:repeatable-page-master-reference and
fo:conditional-page-master-reference.
changing all my master-reference to master-name fixed it.
To bad upgrading isn't an option right now :-(
-Eric
At 01:18 PM 12/17/2003 -0500, you wrote:
I'm attempting to use the example
from the
http://xml.apache.org/fop/fo.html
for Recto/Verso Static Content Differences to get different footers on odd & even pages. I'm using FOP 0.20.2 and I get an exception when I try to use the xsl:fo verbatim from the web page.
The error states:
ERROR In com.mtu.XSQLSerializers.FOPSerializer
Stack Trace:
'master-name' for 'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master'
org.apache.fop.apps.FOPException: 'master-name' for 'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master' at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at org.apache.fop.apps.FOPException.(FOPException.java:28) at org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(Compiled Code) at org.apache.fop.fo.pagination.PageSequence.makePage(Compiled Code) at org.apache.fop.fo.pagination.PageSequence.format(Compiled Code) at org.apache.fop.apps.StreamRenderer.render(Compiled Code) at org.apache.fop.fo.FOTreeBuilder.endElement(Compiled Code) at org.apache.xerces.parsers.SAXParser.endElement(Compiled Code) at org.apache.xerces.validators.common.XMLValidator.callEndElement(Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948) at org.apache.fop.apps.Driver.render(Driver.java:459) at org.apache.fop.apps.Driver.run(Driver.java:542) at com.mtu.fop.FOPDriver.render(FOPDriver.java:194) at com.mtu.fop.FOPDriver.renderPDF(Compiled Code) at com.mtu.XSQLSerializers.FOPSerializer.serialize(Compiled Code) at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code) at oracle.xml.xsql.XSQLServlet.doGet(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.jserv.JServConnection.processRequest(Compiled Code) at org.apache.jserv.JServConnection.run(Compiled Code) at java.lang.Thread.run(Compiled Code)
Error while attempting to render PDF

I've looked through the mailing list and the example from the FOP web page matches the examples given else where for doing this. Any ideas would be much appreciated.
-Eric Dalquist

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


--
Eric Dalquist
Computer Science
Student Programmer - MTU-ACS
Senior Technician - MTU-SLS
-- 



alternating footer help

2003-12-17 Thread Eric Dalquist
I'm attempting to use the example from the 
http://xml.apache.org/fop/fo.html for Recto/Verso Static Content 
Differences to get different footers on odd & even pages. I'm using FOP 
0.20.2 and I get an exception when I try to use the xsl:fo verbatim from 
the web page.

The error states:
ERROR In com.mtu.XSQLSerializers.FOPSerializer
Stack Trace:
'master-name' for 'fo:page-sequence'matches no 'simple-page-master' or 
'page-sequence-master'
org.apache.fop.apps.FOPException: 'master-name' for 
'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master' 
at java.lang.Throwable.fillInStackTrace(Native Method) at 
java.lang.Throwable.fillInStackTrace(Compiled Code) at 
java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) 
at org.apache.fop.apps.FOPException.(FOPException.java:28) at 
org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(Compiled Code) 
at org.apache.fop.fo.pagination.PageSequence.makePage(Compiled Code) at 
org.apache.fop.fo.pagination.PageSequence.format(Compiled Code) at 
org.apache.fop.apps.StreamRenderer.render(Compiled Code) at 
org.apache.fop.fo.FOTreeBuilder.endElement(Compiled Code) at 
org.apache.xerces.parsers.SAXParser.endElement(Compiled Code) at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(Compiled 
Code) at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Compiled 
Code) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled 
Code) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948) at 
org.apache.fop.apps.Driver.render(Driver.java:459) at 
org.apache.fop.apps.Driver.run(Driver.java:542) at 
com.mtu.fop.FOPDriver.render(FOPDriver.java:194) at 
com.mtu.fop.FOPDriver.renderPDF(Compiled Code) at 
com.mtu.XSQLSerializers.FOPSerializer.serialize(Compiled Code) at 
oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code) at 
oracle.xml.xsql.XSQLServlet.doGet(Compiled Code) at 
javax.servlet.http.HttpServlet.service(Compiled Code) at 
javax.servlet.http.HttpServlet.service(Compiled Code) at 
org.apache.jserv.JServConnection.processRequest(Compiled Code) at 
org.apache.jserv.JServConnection.run(Compiled Code) at 
java.lang.Thread.run(Compiled Code)

Error while attempting to render PDF
I've looked through the mailing list and the example from the FOP web page 
matches the examples given else where for doing this. Any ideas would be 
much appreciated.

-Eric Dalquist

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


Re: How to get ALL parts of a large SVG document in a single PDF page

2003-12-17 Thread Peter Menzel
Hi,

I ran into nearly the same problem some time ago.
I had a svg with arbitrary height and width and I wanted to fit the image to a
single page (A4).
But my image is directly embedded in fo code, that is given to FOP for pdf
output.

   


And like you, I just got a clip of the whole image.
My solution to fit this image to a single page was to find out,
how many px fit in one page and then scale my image to this size.
Actually all fo code is produced with xslt:








 
 
  
 
 
  
 
 


 




$height and $width are the effective dimensions of the image.
then just put everything in svg:g :

...

and your svg will fit everytime..

Hope that helps, Peter

--
[EMAIL PROTECTED]
Institut für Medizinische Informatik, Statistik und Epidemiologie (IMISE)
Universität Leipzig

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



RE: Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén
>I used to propose to manually remove the kerning elements in the generated 
>>XML font metric file. This disables kerning for this font but normally 
>>solves the alignment problem.

I like that proposal.
Works like a charm.

Thank you!


Regards,
Dennis JD Myrén
Developer
Oslo Kode Bureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 17. desember 2003 13:09
To: [EMAIL PROTECTED]
Subject: Re: Table columns with custom font incorrectly aligned

Nope. You're confusing things, I'm afraid. It's correct that some metric
information needed by FOP is not present in PFM files, only in PFB (but
which are currently not parsed). The problem here is most probably
kerning. We've had that problem before. I just can't find the right
thread right now. I think Jörg had an explanation (but I don't remember
it). I used to propose to manually remove the kerning elements in the
generated XML font metric file. This disables kerning for this font but
normally solves the alignment problem.

On 17.12.2003 12:10:36 Chris Bowditch wrote:
> > Could it be that the generated font metrics is incorrect?
> 
> Yes, I believe the current PFMReader ignores the PFB file which has some 
>   parts of the font metrics in them.

Jeremias Maerki


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




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



Re: Table columns with custom font incorrectly aligned

2003-12-17 Thread Jeremias Maerki
Nope. You're confusing things, I'm afraid. It's correct that some metric
information needed by FOP is not present in PFM files, only in PFB (but
which are currently not parsed). The problem here is most probably
kerning. We've had that problem before. I just can't find the right
thread right now. I think Jörg had an explanation (but I don't remember
it). I used to propose to manually remove the kerning elements in the
generated XML font metric file. This disables kerning for this font but
normally solves the alignment problem.

On 17.12.2003 12:10:36 Chris Bowditch wrote:
> > Could it be that the generated font metrics is incorrect?
> 
> Yes, I believe the current PFMReader ignores the PFB file which has some 
>   parts of the font metrics in them.

Jeremias Maerki


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



RE: RE: Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén
> Could it be that the generated font metrics is incorrect?

>> Yes, I believe the current PFMReader ignores the PFB file which has some 
>> parts of the font metrics in them.

Ok.
Is there any workaround? Any advises?

Thank you.

Regards,
Dennis JD Myrén
Developer
Oslo Kode Bureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: 17. desember 2003 12:11
To: [EMAIL PROTECTED]
Subject: Re: Table columns with custom font incorrectly aligned

Dennis Myrén wrote:



> I used the PFMReader utility to generate XML metrics files from these 3 
> different font metrics files (PFM files).



> My problem is, the columns are not properly aligned, a right aligned 
> column gets to look something like this:



> I tested with a base 14 font, no problems.
> 
> Could it be that the generated font metrics is incorrect?

Yes, I believe the current PFMReader ignores the PFB file which has some 
  parts of the font metrics in them.

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: Table columns with custom font incorrectly aligned

2003-12-17 Thread Chris Bowditch
Dennis Myrén wrote:

I used the PFMReader utility to generate XML metrics files from these 3 
different font metrics files (PFM files).

My problem is, the columns are not properly aligned, a right aligned 
column gets to look something like this:

I tested with a base 14 font, no problems.
Could it be that the generated font metrics is incorrect?
Yes, I believe the current PFMReader ignores the PFB file which has some 
 parts of the font metrics in them.

Chris

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


Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén








Hi again.

I use FOP to generate PDF documents from XSL-FO documents.

The resulting PDF documents contains a big table, and it
uses a custom font (called ‘Signa’).

The font files needed are embedded in the document.

I used the PFMReader utility to generate XML metrics files
from these 3 different font metrics files (PFM files).

The table in the PDF document typically uses right aligned
cells.

My problem is, the columns are not properly aligned, a right
aligned column gets to look something like this:

   
12 363 474

   
   43 382 39

   
93

   
 9 393

   64 484 505

   
   38 483

 

I tested with a base 14 font, no problems.

Could it be that the generated font metrics is incorrect?

 

 

Regards,

Dennis JD Myrén

Developer

Oslo Kode Bureau

Tel:  (+47) 98
00 11 92

Mail:   [EMAIL PROTECTED]

Web:   www.oslokb.no

 








Re: Formatting of retrieve-marker

2003-12-17 Thread Jay Chiu

I also need this feature. When will this bug be fixed and is
there any workaround for this issue?

Basically in our application, user may choose to retrieve marker
multiple times in header/footer with different formatting
property. In the body, we set marker for all global variable
without any formatting properties.  For example,

Header section may have:

DATA1=


DATA2=



and in body:
data
value

The generated pdf would have "DATA1=" in font size 20pt with
blue color, "DATA2=" in font size 16pt with red color, and
however "data value" in black with default font size in both
places.

Please advice how to solve this issue.

Also I remember someone mentioned
retrieve-position="first-including-carryover" is fully supported
by FOP now. Can someone tell me when this will be implemented by
FOP?

Thanks a lot.

Jay



==
List: fop-user
Subject:  Re: Formatting of retrieve-marker
From: "J.Pietschmann" 
Date: 2003-06-09 17:06:33
[Download message RAW]

Christopher R. Maden wrote:
> I have a block in the text flow with a marker in it.  I
retrieve the marker 
> in the header.  The text of the marker seems to be formatting
according to 
> the context in which it was originally used, rather than
according to its 
> context.

Yes, that's a known bug.

Avoid inheritable properties on blocks enclosing markers.
unless
you override them in the marker anyway.

J.Pietschmann



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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