RE: Flow of tables please help PLEEEAAASSEE

2001-12-11 Thread Smith, Paul

Put the tables in a table.

---
Paul Smith

 I have 3 tables amongst other items on my page. The rest of 
 the stuff on my
 page is 100%, its just these three tables.
 
 table
 table
 table
 
 
 At the moment theyr'e being stacked under each other. what i 
 need is for
 them to be placed next to each other from left to right.
 
 So what i want is this
 
 table table table


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




RE: Flow of tables please help PLEEEAAASSEE

2001-12-11 Thread Smith, Paul

 How ?

Something along the lines of:

fo:table
  fo:table-column column-width=100.0pt/
  fo:table-column column-width=100.0pt/
  fo:table-body
  fo:table-row
fo:table-cell
fo:table
  fo:table-column column-width=100.0pt/
  fo:table-body
fo:table-row
  fo:table-cell
fo:blockOne/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
 /fo:table  
  /fo:table-cell
  fo:table-cell
fo:table
  fo:table-column column-width=100pt/
  fo:table-body
fo:table-row
  fo:table-cell
fo:blockTwo/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

Hope that helps
---
Paul Smith


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Smith, Paul

You should be able to create a directory to servlet mapping in your web
server (usually in the web.xml file). 

Something like:

  servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/MyServletDir/url-pattern
  /servlet-mapping

  servlet
servlet-nameMyServlet/servlet-name
servlet-classMyPdfGeneratingServlet/servlet-class
  /servlet

Then the browser can call www.myserver.com/MyServletDir/filename.pdf

Your servlet can retrieve the filename requested from the HttpServletRequest
(or just ignore it) and output it's response to the HttpServletResponse

---
Paul Smith

 Jim Urban wrote:
 
 So how do you  use a url that ends with .pdf when using servlets?


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




RE: page orientation

2001-12-04 Thread Smith, Paul

You can (obviously) achieve the same effect by swaping the values for
page-width and page-height in the page-master. I don't know if there is a
*proper* solution?

-- Paul

 -Original Message-
 From: Isana Luzia Seabra Campos [mailto:[EMAIL PROTECTED]]
 Sent: 04 December 2001 11:30
 To: [EMAIL PROTECTED]
 Subject: page orientation
 
 
 Hi,
 
 How can I generate a page at landscape orientation format 
 in pdf file? Is it
 possible?
 I've tried
 fo:region-start reference-orientation=90
 and
 fo:region-start reference-orientation=-90 
 but  I got an warning from fop: reference-orientation is not 
 implemented yet.
 
 Thanks for any help!
 Isana


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




RE: page orientation

2001-12-04 Thread Smith, Paul R

I swapped the page width and height...

I am not sure if this is the correct way.

- Paul Smith

-Original Message-
From: Isana Luzia Seabra Campos [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 11:30
To: [EMAIL PROTECTED]
Subject: page orientation


Hi,

How can I generate a page at landscape orientation format in pdf file? Is
it
possible?
I've tried
fo:region-start reference-orientation=90
and
fo:region-start reference-orientation=-90 
but  I got an warning from fop: reference-orientation is not implemented
yet.

Thanks for any help!
Isana




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

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




RE: Newbie - controlling table alignment

2001-12-04 Thread Smith, Paul

I think the post you needed to see is:

 Hi,
  
 please have a look at the FOP FAQs, I think the solution should be in
there:
  
 - create a table as large as the page-body with only one cell
 - put your table into the block inside that cell
 - center the block in that cell
  
 HTH, Corinna

You can see the whole thread at
http://marc.theaimsgroup.com/?l=fop-devm=100703165918190w=2

Anyway, to give you an example, assuming your html is:

div align=right
table
[Stuff Inside Table]
/table
/div

Then in XSL-FO (with FOP at least) you have to do:

fo:table
fo:table-column column-width=[What Ever Width You Want]/
fo:table-body
fo:table-row
fo:table-cell
fo:block text-align=end
fo:table
[Stuff Inside Table]
/fo:table
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table  

Hope that helps. If you are still confused then maybe you could send me the
files you are working with?

---
Paul Smith


 -Original Message-
 From: John M. Corro [mailto:[EMAIL PROTECTED]]
 Sent: 04 December 2001 15:56
 To: [EMAIL PROTECTED]
 Subject: Newbie - controlling table alignment
 
 
 I've seen several posts in various archives asking the same 
 question, but
 haven't been able to find an answer yet - how do you control 
 aligning of an
 entire table (not the individual cell's contents)?
 
 ie in HTML something like
 div align=left | center | right
 table...
 /table
 /div
 
 I've attempted using the text-align tag, but didn't seem to work.


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




RE: Support for large row spanning

2001-11-16 Thread Smith, Paul

Should have included this originally.
Bug was registered as bugzilla bug #3400 by Alec Kalinin on 4/9/01.

---
Paul Smith


 -Original Message-
 From: Smith, Paul [mailto:[EMAIL PROTECTED]]
 Sent: 16 November 2001 14:26
 To: Fop-Dev (E-mail)
 Subject: Support for large row spanning
 
 
 In Fop 0.20.2 if a table cell spans more rows than fit on a 
 page it loops
 infinitely, presumably trying to find a page big enough to 
 place the cell
 on. Looking through the archives of this list I found that I 
 am not the only
 one who has been affected by this. David S. Dixon reported it 
 as a problem
 on 21/9/01. At that time Karen Lease said that she was looking at this
 problem. So what is this current situation? Is it a priority 
 to fix this
 bug? If so what sort of timescale are we looking at?
 
 I can write a work around (although it will be messy) in my 
 application but
 it would be nice to have a proper fix in FOP. I will take a 
 look at the FOP
 code but as I am new to FOP any pointers on where to look and 
 ideas of how
 this problem maybe solved would be much appreciated.
 
 
 I have included the original thread below. Taken from
 http://marc.theaimsgroup.com/?l=fop-devm=100117495412259w=2
 
 ---
 Paul Smith
 
 
 
 
 
 Karen,
 
 That's it -- thre spanning column has a long list-block that 
 goes over to
 the next
 page.  Okay, I can workaround by putting tables within 
 tables.  Thanks.
 
 -dd
 
 Karen Lease wrote:
 
  David,
 
  I don't think it was in 0.19.0, which is consistent with the error
  message.
  The reason for the infinite loop may well be that some group of rows
  which are held together by spans is too big to fit on the 
 page. This is
  a known bug, and I'm not currently working on it, as it's 
 not that easy
  to do. Like many difficult layout issues, we hope to attack 
 this in the
  redesign.
  However, just to make sure that there isn't some other 
 wierd reason for
  this problem, I'd be happy to look at your .fo file.
 
  Regards,
  Karen
 
  David S. Dixon wrote:
  
   Karen,
  
   Was number-rows-spanned support in 0.19.0?  I have an .fo 
 file that
 turns into a
   .pdf file under 0.19.0 but complains of
  
   WARNING: Number of cell columns under table-row not equal 
 to number of
   table-columns
  
   for the two rows corresponding to the spanned rows.  
 Under 0.20.1, fop
 goes into
   an infinite loop on this file.
  
   -dd
  
   Karen Lease wrote:
  
Hi Amit,
   
The number-rows-spanned property is now implemented in 
 FOP, but it
wasn't yet in 0.18.1. If you want to use it, you should 
 download the
latest version of FOP from the website - that's 0.20.1.
   
Regards,
Karen
   
[EMAIL PROTECTED] wrote:

 I'm not sure if this is the right place to ask such a 
 question... if
 not, I
 would appreciate some information on where to find a 
 solution to
 this
 problem :-

 I've been trying to use the number-rows-spanned property to
 generate
 tables in my PDF file using FOP 0.18.1. However, I 
 keep getting
 errors - is
 the number-rows-spanned property not implemented in FOP yet?

 Thanks for your help
 amit
 
 
 ***
 DISCLAIMER: The information contained in this email
  is confidential and is intended solely for the use of the
  named addressee.  Access, copying or re-use of the
  information in it by any other person is not authorised.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




Difficulties embedding FOP by firing SAX events myself

2001-11-15 Thread Smith, Paul

Hi,

I am trying to embed FOP within my own Java application as described in
http://xml.apache.org/fop/embedding.html, specifically the third method:
calling getContentHandler() and firing the SAX events yourself and I am
running into difficulties!

I have a class called MyParser which fires the required events (it
implements XMLReader). Its parse method that calls SAX events on
ContentHandler and ignores the InputStream. If I do:
(I have simplifed the code samples so their maybe a few typos)

MyParser parser = new MyParser();
XMLSerializer serializer = new XMLSerializer(new
FileOutputStream(output.fo), new OutputFormat(method, encoding,
indenting));
ContentHandler handler = serializer.asContentHandler();
parser.setContentHandler(handler);
parser.parse(new InputStream());

Then I can produce a well formed XSL-FO file that validates against the DTD
provided by N. Grigoriev from RenderX. Running fop on this file eg. fop
output.fo output.pdf, generates output.pdf successfully.

HOWEVER, If I try and embed FOP by doing:

Driver driver = new Driver();
driver.setOutputStream(new FileOutputStream(output.pdf);
driver.setInputSource(new InputSource());
Logger logger =
Hierarchy.getDefaultHierarchy().getLoggerFor(foRender);
logger.setPriority(Priority.INFO);
driver.setLogger(logger);

MyParser parser = new MyParser();
driver.render(parser, new InputSource());

FOP generates output.pdf but when opened in Acrobat Reader I get There was
an error opening this document. Could not repair file.
Closer inspection shows that the PDF has not been correctly generated at
all. The first 9 lines look like:

%PDF-1.3
%ª«¬­
4 0 obj
 /Type /Info
/Producer (null) 
endobj
5 0 obj
 /Length 235 /Filter /FlateDecode 
 

where as the first 9 lines of the PDF generated by running FOP from the
command line look like:

%PDF-1.3
%ª«¬­
4 0 obj
 /Type /Info
/Producer (FOP 0.20.1) 
endobj
5 0 obj
 /Length 296 /Filter [ /ASCII85Decode /FlateDecode ]
 

During driver.render the logger prints out:

INFO10058   [foRender] (): building formatting object tree
DEBUG   10058   [fop ] (): setting up fonts
INFO10058   [foRender] (): [1]


Any help you can offer is much appreciated. Thanks in advance

---
Paul Smith


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




RE: Difficulties embedding FOP by firing SAX events myself

2001-11-15 Thread Smith, Paul

Unfortunately I am using Java 1.3.1, javax.xml.* doesn't make an appearance
until 1.4 so I can't use TransformerFactory.

---
Paul Smith

 -Original Message-
 From: Beer, Christian [mailto:[EMAIL PROTECTED]]
 Sent: 15 November 2001 13:14
 To: '[EMAIL PROTECTED]'
 Subject: AW: Difficulties embedding FOP by firing SAX events myself
 
 
 I did it this way:
 
 code
 // FO -- PDF
 driver.reset();
 driver.setOutputStream(pdf);
 driver.setRenderer(org.apache.fop.apps.Driver.RENDER_PDF);
 
 TransformerFactory tFactory = TransformerFactory.newInstance();
 if (tFactory.getFeature(SAXSource.FEATURE) 
 tFactory.getFeature(SAXResult.FEATURE)) {
   SAXTransformerFactory saxTFactory = 
 ((SAXTransformerFactory)tFactory);
 
   TransformerHandler th = saxTFactory.newTransformerHandler(new
 StreamSource(xsl));
 
   // Create SAXResult based on FOP Driver content handler 
 which will accept
   // SAX events and build FOP tree
   SAXResult saxResult = new SAXResult(driver.getContentHandler());
 
   th.setResult(saxResult);
 comment
 
 Now you can use th as a ContentHandler and fire the events on it!
 
 /comment
   pdf.close();
 }
 /code
 
 Christian
 
 -Ursprüngliche Nachricht-
 Von: Smith, Paul [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 15. November 2001 13:11
 An: Fop-Dev (E-mail)
 Cc: Smith, Paul
 Betreff: Difficulties embedding FOP by firing SAX events myself
 
 
 Hi,
 
 I am trying to embed FOP within my own Java application as 
 described in
 http://xml.apache.org/fop/embedding.html, specifically the 
 third method:
 calling getContentHandler() and firing the SAX events 
 yourself and I am
 running into difficulties!
 
 I have a class called MyParser which fires the required events (it
 implements XMLReader). Its parse method that calls SAX events on
 ContentHandler and ignores the InputStream. If I do:
 (I have simplifed the code samples so their maybe a few typos)
 
   MyParser parser = new MyParser();
   XMLSerializer serializer = new XMLSerializer(new
 FileOutputStream(output.fo), new OutputFormat(method, encoding,
 indenting));
   ContentHandler handler = serializer.asContentHandler();
   parser.setContentHandler(handler);
   parser.parse(new InputStream());
 
 Then I can produce a well formed XSL-FO file that validates 
 against the DTD
 provided by N. Grigoriev from RenderX. Running fop on this 
 file eg. fop
 output.fo output.pdf, generates output.pdf successfully.
 
 HOWEVER, If I try and embed FOP by doing:
 
   Driver driver = new Driver();
   driver.setOutputStream(new FileOutputStream(output.pdf);
   driver.setInputSource(new InputSource());
   Logger logger =
 Hierarchy.getDefaultHierarchy().getLoggerFor(foRender);
   logger.setPriority(Priority.INFO);
   driver.setLogger(logger);
   
   MyParser parser = new MyParser();
   driver.render(parser, new InputSource());
   
 FOP generates output.pdf but when opened in Acrobat Reader I 
 get There was
 an error opening this document. Could not repair file.
 Closer inspection shows that the PDF has not been correctly 
 generated at
 all. The first 9 lines look like:
 
 %PDF-1.3
 %ª«¬­
 4 0 obj
  /Type /Info
 /Producer (null) 
 endobj
 5 0 obj
  /Length 235 /Filter /FlateDecode 
  
 
 where as the first 9 lines of the PDF generated by running 
 FOP from the
 command line look like:
 
 %PDF-1.3
 %ª«¬­
 4 0 obj
  /Type /Info
 /Producer (FOP 0.20.1) 
 endobj
 5 0 obj
  /Length 296 /Filter [ /ASCII85Decode /FlateDecode ]
  
 
 During driver.render the logger prints out:
 
 INFO10058   [foRender] (): building formatting object tree
 DEBUG   10058   [fop ] (): setting up fonts
 INFO10058   [foRender] (): [1]
 
 
 Any help you can offer is much appreciated. Thanks in advance
 
 ---
 Paul Smith
 
 
 ***
 DISCLAIMER: The information contained in this email
  is confidential and is intended solely for the use of the
  named addressee.  Access, copying or re-use of the
  information in it by any other person is not authorised.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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

RE: Servlet called twice

2001-10-09 Thread Smith, Paul R

I have _exactly_ the same problem. Nothing I have tried has worked.

Please help

- Paul Smith

-Original Message-
From: Kuehnberger [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2001 09:52
To: [EMAIL PROTECTED]
Subject: Servlet called twice


Hi,

My servlet can produce html or pdf, depending on a parameter which is
passed.
I read the discussion about that problem, but whatever I tried my
servlet is still called twice when the output is pdf,
if the out output is html the servlet is invoked just once.

If someone can please help me with that

Jens





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

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




RE: Total page number of a PDF document

2001-09-14 Thread Smith, Paul R

There is an example concerning this in the doco I think but...

Put a block like this in the document

fo:block border-color=white border-style=solid text-align=end
  Page fo:page-number/ of fo:page-number-citation
ref-id=terminator/
/fo:block

and then at the end of the document put a block with the id terminator, like
so...

fo:block id=terminator /
  /fo:flow
  /fo:page-sequence
/fo:root

Regards,

- Paul Smith

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 14 September 2001 08:59
To: [EMAIL PROTECTED]
Subject: Total page number of a PDF document


Hi!

Is it possible to indicate the total page number of the document, e.g. for
an output of the type page 3 of 35 ?
I did not find something to this question in the documentation or the
examples.

Thank you first

Greetings
Viktor Keimes

___
 Dr. Viktor Keimes
 Gerling GKI AB-IM; Spiesergasse 20, D-50597 Köln
 Tel: +49 (0)221 144-62005
e-Mail: [EMAIL PROTECTED]
___





-
This message is intended for the addressee or its representative only. Any
form of unauthorized use, publication, reproduction, copying or disclosure
of the content of this e-mail is not permitted. If you are not the intended
recipient of this e-mail message and its contents, please notify the sender
immediately and delete this message and all its attachments subsequently.

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

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