automatically putting a header at the top of every page in my PDF report.

2002-02-15 Thread Sampige, Srinivas
Hi
  I am just a few days old to FO&XSL. Iam trying to generate a printable
report from the result of a query (that returns hundreds of rows)to a
database. Say if the returned results are with the columns "OrderNo.",
"OrderDate","Quantity","Shipping Address"  etc. in an XML format like this -



OrderNo
OrderDate
Quantity
Shipping address


1
2/2/02
100
Test Address





500
2/2/02
100
Test Address



 I have the following question(s)

*   How do I dynamically control pagination of the above data so that is
appears accross multiple PDF pages.
*   How do I ensure that every page of the report has a table at the top
that displays the column headers?

Can somebody please guide me and give some sample code?

thanks
Srinivas 


RE: controlling orientation

2002-02-15 Thread Sampige, Srinivas
Thanks Chuck it worked.

-Original Message-
From: Chuck Paussa [mailto:[EMAIL PROTECTED]
Sent: Friday, February 15, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: controlling orientation


Sampige,

You set the page size to 11" x 8.5". The printer then figures out that 
it should be printed landscape

http://www.w3.org/1999/XSL/Format";>



Chuck

Sampige, Srinivas wrote:

>I want my PDF pages to be generated in a LandScape orientation. How do I do
>that?
>
>thanks
>Srinivas
>




Re: controlling orientation

2002-02-15 Thread Chuck Paussa
Sampige,
You set the page size to 11" x 8.5". The printer then figures out that 
it should be printed landscape

http://www.w3.org/1999/XSL/Format";>
   
   
Chuck
Sampige, Srinivas wrote:
I want my PDF pages to be generated in a LandScape orientation. How do I do
that?
thanks
Srinivas




Any way to use a non standard font without embedding it?

2002-02-15 Thread jthaemlitz
is there any way to use a non standard font without embedding it?

We're having problems on our Linux boxes with the embeded fonts printing.
The fonts are embedding correctly at FOP runtime.  We have tested pdf made
by Acrobat that use system fonts (not embedded) and it works.  We're hoping
to use the Aachen font without embedding it.

Thanks,

John






controlling orientation

2002-02-15 Thread Sampige, Srinivas
I want my PDF pages to be generated in a LandScape orientation. How do I do
that?

thanks
Srinivas


Re: fop roadmap

2002-02-15 Thread Jeremias Maerki

On 15.02.2002 16:27:35 Mike Wilkinson wrote:
> Is there anyway of telling when certain parts of fop will be completed ?

Nope. The more people that start helping out the sooner they are
finished. 

> For instance I would like to know when oveflow will be implemented.

For instance, this is something I need, too. I'm going to start on this
real soon. No date, sorry. Well, probably next month, IF it's not that
complicated. :-)

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - 6002 Luzern
Fon +41 (0)41 317 2020 - Fax +41 (0)41 317 2029
Internet http://www.outline.ch



AW: FOP and servlets

2002-02-15 Thread Michael Schifferdecker
Interesting problem!
(as fas as the empty browser window after requested pdf data is sent back to
the browser is concerned)

These may be the problems I have noticed in my test environment.
PDF generation code worked till last test and suddenly not any more although
code was not modified concering the PDF generation... there has been a
browser update since that!

my test url entered in the browser was
http://localhost:8080/fopwelcomeservlet?xml=/c:/XML_SPACE/form_lohnsteuer_sa
mpledata_without_dtd_ref.xml&xsl=/c:/XML_SPACE/form_lohnsteuer_fo.xsl&fo=/c:
/XML_SPACE/testdata.fo

internet explorer versions do match (also IE 5.5 used on test client)
fop version 2.20.2
server is tomcat version used by jbuilder 5

I had not time to check the details of this problem yet und I may not be
able to do that before monday but it would nice to keep each other up to
date...

I think it should >>NOT<< be necessary to code a workaround like you
proposed, even if it may work the way you say.

Regards, Michael

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. Februar 2002 17:17
An: [EMAIL PROTECTED]
Betreff: Re: FOP and servlets


No, it's not the solution. In fact, my code is good but my browser is I.E.
5.5 and there's a bug with I.E. when you request a servlet with a URL that
ends with .xml or .xsl : it considers that the servlet sends back a xml
response. To display the generated PDF, I have to add a parameter that does
not end with .xml or .xsl (for instance dummy=.pdf)in the URL.

Thanks for your response, either.

JD.




> application/x-pdf, not application/pdf
>
> [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I've been using FOP for a few days and i have a problem with displaying
PDF through a browser with FOP. I'm using FOP 0.20.1 with Xalan 1.2 and
Xerces 1.2. Here's a sample of my servlet source :
> >
> > String xmlString = request.getParameter("XML");
> > String xslString = resquest.getParameter("XSL");
> > ByteArrayOutputStream fo = new ByteArrayOutputStream();
> > //XSLT transformation
> > XSLTProcessor lProcessor = XSLTProcessorFactory.getProcessor();
> > lProcessor.process(new XSLTInputSource(new StringReader(xmlString)), new
XSLTInputSource(new StringReader(xslString), new XLSTResultTarget(fo));
> > // PDF generation with FOP
> > Driver lFOPDriver = new Driver();
> > InputSource FOSource = new InputSource(fo);
> > response.setContentType("application/pdf");
> > ServletOutputStream output = response.getOutputStream();
> > lFOPDriver.setOutputStream(output);
> > lFOPDriver.setRenderer(RENDER_PDF);
> > XMLReader reader = (XMLReader)
Class.forName("org.apache.xerces.parsers.SAXParser").newInstance();
> > lFOPDriver.setXmlReader(reader);
> > lFOPDriver.setInputSource(FOSource);
> > lFOPDriver.run();
> > output.flush();
> > output.close();
> >
> > When I call this servlet, the browser don't display the generated PDF
but I 've noticed that it appears in my Temporary Internet Files.
> >
> > Does anyone have an idea ?
> >
> > Regards.
> >
> > JD.
> > 
> > Faites un voeu et puis Voila ! www.voila.fr
> > Avec Voila Mail, consultez vos e-mails sur votre mobile Wap.
> >
>
>
>


Faites un voeu et puis Voila ! www.voila.fr
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap.



Re: FOP and servlets

2002-02-15 Thread [EMAIL PROTECTED]
No, it's not the solution. In fact, my code is good but my browser is I.E. 5.5 
and there's a bug with I.E. when you request a servlet with a URL that ends 
with .xml or .xsl : it considers that the servlet sends back a xml response. To 
display the generated PDF, I have to add a parameter that does not end with 
.xml or .xsl (for instance dummy=.pdf)in the URL.

Thanks for your response, either.

JD.




> application/x-pdf, not application/pdf
> 
> [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> > I've been using FOP for a few days and i have a problem with displaying PDF 
> > through a browser with FOP. I'm using FOP 0.20.1 with Xalan 1.2 and Xerces 
> > 1.2. Here's a sample of my servlet source :
> > 
> > String xmlString = request.getParameter("XML");
> > String xslString = resquest.getParameter("XSL");
> > ByteArrayOutputStream fo = new ByteArrayOutputStream();
> > //XSLT transformation 
> > XSLTProcessor lProcessor = XSLTProcessorFactory.getProcessor();
> > lProcessor.process(new XSLTInputSource(new StringReader(xmlString)), new 
> > XSLTInputSource(new StringReader(xslString), new XLSTResultTarget(fo));
> > // PDF generation with FOP
> > Driver lFOPDriver = new Driver();
> > InputSource FOSource = new InputSource(fo);
> > response.setContentType("application/pdf");
> > ServletOutputStream output = response.getOutputStream();
> > lFOPDriver.setOutputStream(output);
> > lFOPDriver.setRenderer(RENDER_PDF);
> > XMLReader reader = (XMLReader) 
> > Class.forName("org.apache.xerces.parsers.SAXParser").newInstance();
> > lFOPDriver.setXmlReader(reader);
> > lFOPDriver.setInputSource(FOSource);
> > lFOPDriver.run();
> > output.flush();
> > output.close();
> > 
> > When I call this servlet, the browser don't display the generated PDF but I 
> > 've noticed that it appears in my Temporary Internet Files.
> > 
> > Does anyone have an idea ?
> > 
> > Regards.
> > 
> > JD.
> > 
> > Faites un voeu et puis Voila ! www.voila.fr 
> > Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. 
> > 
> 
> 
> 


Faites un voeu et puis Voila ! www.voila.fr 
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. 


Re: FOP and servlets

2002-02-15 Thread James Richardson
Bart Locanthi wrote:

application/x-pdf, not application/pdf
[50lines of quoted stuff deleted]


Unlikely. Look in the archives about IE's handling of content types.
Of course this has nothing to do with FOP.
Cheers
James




Re: FOP and servlets

2002-02-15 Thread Bart Locanthi
application/x-pdf, not application/pdf
[EMAIL PROTECTED] wrote:
Hi,
I've been using FOP for a few days and i have a problem with displaying PDF 
through a browser with FOP. I'm using FOP 0.20.1 with Xalan 1.2 and Xerces 1.2. 
Here's a sample of my servlet source :
String xmlString = request.getParameter("XML");
String xslString = resquest.getParameter("XSL");
ByteArrayOutputStream fo = new ByteArrayOutputStream();
//XSLT transformation 
XSLTProcessor lProcessor = XSLTProcessorFactory.getProcessor();
lProcessor.process(new XSLTInputSource(new StringReader(xmlString)), new XSLTInputSource(new StringReader(xslString), new XLSTResultTarget(fo));
// PDF generation with FOP
Driver lFOPDriver = new Driver();
InputSource FOSource = new InputSource(fo);
response.setContentType("application/pdf");
ServletOutputStream output = response.getOutputStream();
lFOPDriver.setOutputStream(output);
lFOPDriver.setRenderer(RENDER_PDF);
XMLReader reader = (XMLReader) Class.forName("org.apache.xerces.parsers.SAXParser").newInstance();
lFOPDriver.setXmlReader(reader);
lFOPDriver.setInputSource(FOSource);
lFOPDriver.run();
output.flush();
output.close();

When I call this servlet, the browser don't display the generated PDF but I 've 
noticed that it appears in my Temporary Internet Files.
Does anyone have an idea ?
Regards.
JD.

Faites un voeu et puis Voila ! www.voila.fr 
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. 




fop roadmap

2002-02-15 Thread Mike Wilkinson
Title: fop roadmap





HI 


Is there anyway of telling when certain parts of fop will be completed ?


For instance I would like to know when oveflow will be implemented.


Mike Wilkinson





Re: A brain teaser

2002-02-15 Thread jthaemlitz

a like that homey.

   
  
   
   
  
 
   
   
   
 
  
   


   
  
   





   
[EMAIL PROTECTED]   
 
APACHE.ORG
To: "fop" <[EMAIL PROTECTED]>  
  
cc:  
02/15/02 02:50 AM 
Subject: A brain teaser  
Please respond to fop-user  
   

   

   




Hi,

How can I put a special heading on page one, and a normal heading on all
subsequent pages. The special heading is a superset of the normal heading
and contains multiple lines. The subsequent heading contains only the first
line of the group.

In all other respects, the text should flow as normal.

--
Best,
Stephen Clarke














FOP and servlets

2002-02-15 Thread [EMAIL PROTECTED]

Hi,

I've been using FOP for a few days and i have a problem with displaying PDF 
through a browser with FOP. I'm using FOP 0.20.1 with Xalan 1.2 and Xerces 1.2. 
Here's a sample of my servlet source :

String xmlString = request.getParameter("XML");
String xslString = resquest.getParameter("XSL");
ByteArrayOutputStream fo = new ByteArrayOutputStream();
//XSLT transformation 
XSLTProcessor lProcessor = XSLTProcessorFactory.getProcessor();
lProcessor.process(new XSLTInputSource(new StringReader(xmlString)), new 
XSLTInputSource(new StringReader(xslString), new XLSTResultTarget(fo));
// PDF generation with FOP
Driver lFOPDriver = new Driver();
InputSource FOSource = new InputSource(fo);
response.setContentType("application/pdf");
ServletOutputStream output = response.getOutputStream();
lFOPDriver.setOutputStream(output);
lFOPDriver.setRenderer(RENDER_PDF);
XMLReader reader = (XMLReader) 
Class.forName("org.apache.xerces.parsers.SAXParser").newInstance();
lFOPDriver.setXmlReader(reader);
lFOPDriver.setInputSource(FOSource);
lFOPDriver.run();
output.flush();
output.close();

When I call this servlet, the browser don't display the generated PDF but I 've 
noticed that it appears in my Temporary Internet Files.

Does anyone have an idea ?

Regards.

JD.

Faites un voeu et puis Voila ! www.voila.fr 
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. 


Re: A brain teaser

2002-02-15 Thread Magnus Sjöberg
Here's a skeleton version of the page structure:


 
 
 
 

 
  
  
 



 
 
   

  

 
 



Note that it is n o t complete but just shows how the
general structure could look.
Assuming your header data is contained in some xml, all you
need to do is to create xsl:templates to extract all rows
from it into the 'frontpage' xsl-region-before flow and
another template to extract only the first line into
'documentpage' xsl-region before flow.

But that part I leave to you.

Cheers!

///Magnus

Stephen Clarke wrote:
> 
> Hi,
> 
> How can I put a special heading on page one, and a normal heading on all
> subsequent pages. The special heading is a superset of the normal heading
> and contains multiple lines. The subsequent heading contains only the first
> line of the group.
> 
> In all other respects, the text should flow as normal.
> 
> --
> Best,
> Stephen Clarke

-- 

Secode - Total Internet Security
Magnus Sjöberg
Research And Development

email: [EMAIL PROTECTED]
cell: +46 709 150 710
POTS: +46 8 564 875 05
http://www.secode.com

Internet is to be a safe area for business, transactions and
information exchange


Antw: RE: FOP --> PDF

2002-02-15 Thread Karim Karman
In Acrobat 4 and 5 he said, he can´t analyse this side?
To somebody knows details?

Thx Karim


>>> [EMAIL PROTECTED] 02/14 10:12  >>>
I just tried touching up one of my generated PDFs w/Acrobat 5 and it worked.

> -Original Message-
> From: Chuck Paussa [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 14, 2002 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP --> PDF
> 
> 
> Karim,
> 
> I'm able to touch up my own PDFs. (I'd never tried it before 
> but, I just 
> did it now.)  I generated the PDFs with FOP-0.20.2 and touched it up 
> with Adobe Acrobat 4.0 all under Windows 2000. I've heard there are 
> problems with certain versions of Acrobat 5.
> 
> Chuck
> 
> Karim Karman wrote:
> 
> >Hi Chuck!
> >
> >I have a problem, we generate PDF-Files with FOP. 
> >I tried to edit this PDF-Files with the Touch-Up Tool from 
> Acrobat, but it is not possible! 
> >
> >Do you have any solutions? Perhaps you have already 
> expierence with this... 
> >
> >Thanks in advance 
> >
> >Karim 
> >
> >
> 
> 
> 



In Acrobat 4 and 5 he said, he can´t analyse this 
side?
To somebody knows details?
 
Thx Karim
>>> [EMAIL PROTECTED] 02/14 10:12  
>>>I just tried touching up one of my generated PDFs w/Acrobat 5 
and it worked.> -Original Message-> From: Chuck Paussa 
[mailto:[EMAIL PROTECTED]> 
Sent: Thursday, February 14, 2002 1:07 PM> To: 
[EMAIL PROTECTED]> Subject: Re: FOP --> PDF> > 
> Karim,> > I'm able to touch up my own PDFs. (I'd never 
tried it before > but, I just > did it now.)  I generated the 
PDFs with FOP-0.20.2 and touched it up > with Adobe Acrobat 4.0 all under 
Windows 2000. I've heard there are > problems with certain versions of 
Acrobat 5.> > Chuck> > Karim Karman wrote:> 
> >Hi Chuck!> >> >I have a problem, we generate 
PDF-Files with FOP. > >I tried to edit this PDF-Files with the 
Touch-Up Tool from > Acrobat, but it is not possible! > 
>> >Do you have any solutions? Perhaps you have already > 
expierence with this... > >> >Thanks in advance > 
>> >Karim > >> >> > > 



A brain teaser

2002-02-15 Thread Stephen Clarke
Hi,

How can I put a special heading on page one, and a normal heading on all
subsequent pages. The special heading is a superset of the normal heading
and contains multiple lines. The subsequent heading contains only the first
line of the group.

In all other respects, the text should flow as normal.

--
Best,
Stephen Clarke



Twisting Text in fo:block?

2002-02-15 Thread Skladov, Victor
Hi to all!

Is is possible to twist the text in  so that it runs vertical,
not horizontal? Are they any properties?

Many many thanx!
Viktor