Article for using FOP in a Web Service

2007-11-03 Thread Glen Mazza

Hello,

I recently figured out how to use FOP as part of a web service that returns
PDF documents.  In case this might be of help to others who would like to do
something similar, I have blogged it here:  
http://www.jroller.com/gmazza/date/20071102

Regards,
Glen




-- 
View this message in context: 
http://www.nabble.com/Article-for-using-FOP-in-a-Web-Service-tf4742505.html#a13561699
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: proper fop command line

2007-11-03 Thread Khaled Aly
Hi Vincent

Just having reduced the FO to the table where the problem was, I found there
was an error on my behalf. While every other row had two cells, the header
row where the problem was had only one cell with the empty block. With two
cells as should be, and at least one of them non-empty, a good pdf output is
generated. But when I made both cell blocks empty, there is the same error I
mentioned before - without the Replacing GU in slot... lines.

In spite of my error, I note:

- FOP 0.94 should still have accepted two cells each with an empty block,
according to Andreas statement.
- The initial incorrect layout of one cell with an empty block was processed
ok by FOP 0.93. 
- FO validates well in all cases.

I attach the reduced FO, console error response, and the good PDF with just
one empty block.

Thanks for taking interest. 

Regards
Khaled


| -Original Message-
| From: Vincent Hennebert [mailto:[EMAIL PROTECTED] 
| Sent: Friday, November 02, 2007 11:59 AM
| To: fop-users@xmlgraphics.apache.org
| Subject: Re: proper fop command line
| 
.
|
| Sorry that I didn't follow the thread very closely. Do you 
| still have the error messages that appear on your console 
| screenshot (Replacing GU in slot...)?
| If yes, then this is not related to bug #43766. Please post 
| the FO file (obfuscated, if needed) that causes the error. It 
| will probably help us spot and correct a weird bug.
| 
| Thanks,
| Vincent
| 
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=FrontPages page-height=29.7cm 
page-width=21cm
margin-top=2cm margin-bottom=1cm margin-left=1.5cm 
margin-right=2cm
fo:region-body margin-bottom=1.5cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
fo:simple-page-master master-name=leftPage page-height=297mm 
page-width=210mm
margin-top=2cm margin-bottom=1cm margin-left=1.5cm 
margin-right=2cm
fo:region-body margin-bottom=1.5cm/
fo:region-after extent=1.5cm region-name=leftPageFooter/
/fo:simple-page-master
fo:simple-page-master master-name=rightPage page-height=297mm 
page-width=210mm
margin-top=2cm margin-bottom=1cm margin-left=2cm 
margin-right=1.5cm
fo:region-body margin-bottom=1.5cm/
fo:region-after extent=1.5cm region-name=rightPageFooter/
/fo:simple-page-master
fo:page-sequence-master master-name=PageSequence
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference 
master-reference=leftPage odd-or-even=even/
fo:conditional-page-master-reference 
master-reference=rightPage odd-or-even=odd
/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
/fo:layout-master-set
fo:page-sequence master-reference=FrontPages
fo:flow flow-name=xsl-region-body
fo:block font-size=16pt font-family=sans-serif 
font-weight=bold
border-bottom-style=solid border-bottom-width=2pt 
space-after=20ptTable cell
block content issue/fo:block
fo:block font-size=12pt font-weight=bold font-style=italic 
space-after=8pt
text-align=left[EMAIL PROTECTED]/fo:block
/fo:flow
/fo:page-sequence
fo:page-sequence master-reference=PageSequence
fo:static-content flow-name=leftPageFooter
fo:block text-align=left font-size=10pt 
font-family=sans-serif
border-bottom-style=solid border-bottom-width=1pt 
padding-bottom=4pt
fo:inline font-weight=bold
fo:page-number/
/fo:inline
fo:inline - Title/fo:inline
/fo:block
/fo:static-content
fo:static-content flow-name=rightPageFooter
fo:block text-align=right font-size=10pt 
font-family=sans-serif
border-bottom-style=solid border-bottom-width=1pt 
padding-bottom=4ptTitle -
fo:inline font-weight=bold
fo:page-number/
/fo:inline/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block border-top-style=solid border-top-width=1.5pt 
font-size=12pt
font-family=sans-serif font-weight=bold space-before=12pt 
space-after=12pt
break-before=page padding-top=8pt 
id=N18Preface/fo:block
fo:block font-size=10pt font-family=sans-serif 
text-align=justify
space-after=10pt keep-with-next=alwaystext/fo:block






fo:block font-size=11pt font-family=sans-serif 
font-weight=bold
space-after=11pt