Re: encoding space in xsl:fo

2005-03-23 Thread Peter B. West
Andreas L. Delmelle wrote:
-Original Message-
From: Peter B. West [mailto:[EMAIL PROTECTED]

Hi Peter,

  is A0 in hex; 1100  in binary.

Slight adjustment... 160 = 2^7 + 2^5, so 1010 ? (Fresh out of bed, ay?
;-))
Precisely.  And I'm not good in the morning.
I was thinking along the same lines, but haven't discovered the mapping
yet...

When this value is represented in UTF-8, it becomes
the two-byte sequence

How exactly?
If you are on a linux system, man utf-8 explains it well.  The Unicode 
manual has an appendix on transformations, which is probably available 
online.

This is from the man page.
ENCODING
   The  following  byte  sequences  are used to represent a 
character. The
   sequence to be used depends on the UCS code number of the character:

   0x - 0x007F:
   0xxx
   0x0080 - 0x07FF:
   110x 10xx
   0x0800 - 0x:
   1110 10xx 10xx
   0x0001 - 0x001F:
   0xxx 10xx 10xx 10xx
   0x0020 - 0x03FF:
   10xx 10xx 10xx 10xx 10xx
   0x0400 - 0x7FFF:
   110x 10xx 10xx 10xx 10xx 10xx
It's a beautiful encoding.  A0 (0101 ) uses the two byte form.
So,
110x 10xx
where the first 5 bits are 000 + the top two bits of the original, i.e. 
10, and the remaining 6 bits are the lower 6 bits of the original, i.e.
10 ,
becomes
110.000.10 10.10 
1100 0010 1010 
C2 A0

So the result in iso 8859-1 is Â+  where the fllowing A0 will be 
interpreted as an ordinary space, I believe.

Peter
--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/> <http://folio.bkbits.net/>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: encoding space in xsl:fo

2005-03-22 Thread Peter B. West
Andreas L. Delmelle wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Hi,

I set  in my xsl as encoding
output but on a window system   is rendered as a space ; on unix
systemis rendered as A^ (unique character)
It look like the mapping is dependent by system.
Possible?

In order to know for sure, a few more questions:
- Which JVMs are you using? (Which version on Windows, which one on Linux?)
- Are you using the same XSLT processor on both platforms? If so, is it the
same version? If not, maybe one of them doesn't fully support
 (as I recall, it is not mandatory according to the
XSLT Spec.)
I'd also try posting this question on Xalan's user-list. If both XSLT
processors are Xalan, their development team is far more likely to offer you
an explanation...
What is your locale on linux? Type the word
locale
at a command line prompt.
  is A0 in hex; 1100  in binary. When this value is represented 
in UTF-8, it becomes the two-byte sequence 1100 0011 1000 , or C2 80 
in hex.  C2 is the  (capital A with circumflex) character that you are 
seeing in linux.  The 80 is, I believe, treated as a null character, 
i.e. like 00, when encountered in an ISO 8859-1 character set.  So it 
looks as though your   is beng translated into UTF-8, then read on 
your linux system as two ISO 8859-1 (or -15) characters.

Peter
--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/> <http://folio.bkbits.net/>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FopServlet

2005-03-09 Thread Peter Harrison
On Wed, 2005-03-09 at 10:02 +, Ben Gill wrote:
> Hi,
> 
> I am trying to use the FopServlet, but ideally, dont want to have to produce
> the XML file on disk, and then load it up again, just to pass in File, File
> into XSLTHandler (or TraxInputHandler)...

I'm not sure about FopServlet, but our approach is to have a servlet
mapping. All files named *.vfo will point to our Servlet.

The Servlet will then extract the name requested and load the .vfo file.
It will then use velocity first to insert information from the request
and session before using the FOP engine to render as PDF and pass the
resulting document directly out via streaming. No saving to disk is
required anywhere in this process.

Even better - I forgot to mention this is a two step process. Before
being passed to FOP we actually have a XSLT transform occur. We have a
standard transform for content which takes away the complexity of FO.


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



Using FOP with docbook

2005-03-02 Thread Peter Harrison
We have started using docbook and using our existing FOP processing
along with Ant. It appears that certain things are not supported in the
currently released FOP - such as keeping a heading and the first
paragraph together, not breaking up paragraphs, and not breaking figure
headings from the figure.

Is the new FOP in development ready to be used, or should I stick with
the current released version?

Regards,
Peter


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



xslt library

2005-02-24 Thread Peter Menzel
Hallo XSLT-experts,
I am looking for some kind of XSLT Library, which provides a set of 
standard components (HTML) for web applications,
e.g. menus, form stuff, ...
Substantially I would like to have somtething like Java Server Faces, 
but in XSLT.

Does anybody know some project providing such thing?
Kind regards, Peter Menzel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Trouble getting fop to work with cocoon CLI

2005-02-01 Thread Peter Gustafsson
Hi.
I have this strange problem with fop in combination with cocoon.
What I try to do is to make a offline archive of my cocoon pdf files. I use 
the cocoon command line interface (CLI) to accomplish this. The problem 
however is that fop fail's to render images. It prints out the error message 
shown below and omits the image from the output, hence the pdf is rendered 
without the image.

"
ERROR   2005-02-01 07:33:01.749 [manager.] (): Unsupported element 
encountered: external-graphic (Namespace: default). Source context: 
file:/C:/software/tomcat/webapps/cocoon/index.fo (line: 1, col: 1)
ERROR   2005-02-01 07:33:01.759 [manager.] (): Expected XSL-FO (root, 
page-sequence, etc.), SVG (svg, rect, etc.) or elements from another 
supported language.
ERROR   2005-02-01 07:33:01.829 [manager.] (): no handler defined for 
external-graphic foreign xml
"

If I render the pdf the normal way, using cocoon as a servlet the result is 
as desired, the same is true when I use the CLI to generate the xsl-fo xml 
and after that uses fop.bat on the xml.

My first thought was that my java environment used the wrong Xerces or Xalan 
files. However the problem persisted even after placing the same Xalan and 
Xerces files found in my tomcat endorsed folder in the jre endorsed folder.

The error message indicate that the namespace of the external-graphic 
element is omitted for some reason. When trying to use a none existing fo 
element such as  the same error message is shown. However 
the Namespace : default is change to Namespace: 
http://www.w3.org/1999/XSL/Format) for the blablabla object.

I run Cocoon 2.0 binary version. and fop 0.20.5. I have tried to do a 
complete reinstall of cocoon (only updating the batik.jar so that cocoon 
will start on tomcat5). In this test environment I used a minimal sitemap 
and a static xsl:fo file. The result is the same. The pdf is generated as it 
should when called through the cocoon servlet but fails when called through 
the CLI.

If anyone has had this problem I would be very happy to find a solution. I 
have no problem making some adjustments to cocoon or fop source files but as 
it is now I don't know where to start looking for the problem.

Best regards
Peter Gustafsson

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


Re: Large Page-Sequences and Memory Usage

2004-11-01 Thread Peter B. West
Bobby,
Regarding 1. The ability to handle arbitrary-sized page-sequences is a 
fundamental part of Defoe <http://defoe.sourceforge.net/>, by design.  I 
think it is fair to say that there is no corresponding capability in the 
current HEAD re-development of FOP.

Defoe is the continuation of the alt-design strand of FOP.  Defoe will 
be in a symbiotic relationship with the new Apache XML-Graphics project 
(incorporating FOP and Batik).  I anticipate that the 
Graphics2D-compatible PDF renderer, which exist in skeletal form in the 
current FOP codebase, will handle PDF for Defoe.

I encourage anyone who specifically needs large-file support to become 
involved in the development of Defoe.  If you don't have time to code or 
write documentation, just send money.  (Well, as soon as I get an 
AU$-friendly donation scheme in place.)

Peter
bobby abraham wrote:
I am getting an out of memory exception for my large (51M fo file). It 
consists of a single table and single page sequence.

I have read and understand the memory issues listed at  
http://xml.apache.org/fop/running.html#memory  I also note this this has been 
discussed often on the mail lists.
...
1.  Is the ability to have arbitrary sized page-sequences being addressed by 
the fop redesign ?  ie Is this something worth waiting for or possibly 
helping out with ?
...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


use already existing PDF for XSL:FO

2004-09-02 Thread Peter
Hello lists,

I know it's probably not the right list.

situation: on a client i have a C++ application that creates a pdf by list &
labels. the data from the client application ist transferd by webservice to
a server, the server make out of the object an xml file.
problem: Can I make a XSL:FO out of the PDF that already exists? otherwise I
have to recreate the layout, structure and design of the document.

thanks for your help


with kind regards
Peter Reiner


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



pdf creation without file operations

2004-08-30 Thread Peter
hello list,

I have a question:

is in FOP a way, to give, e.g. the PDF Output, in a stream to a java
application.

reason: only RO access to the webserver where FOP ist running.

thanks people.

so long
Peter Reiner



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



Re: FOP extension development (newbie)

2004-08-20 Thread Peter Verhoye
> Get the image source URL from a style sheet parameter:
>   
> 
> 
>   ...
>   
>   ...
> 
> See
>   http://xml.apache.org/fop/embedding.html#render-with-xslt
> for an example of embedding FOP. You can set the paramter
> by using setParameter on the transformer (details in the
> JavaDoc).
> 
> Definitely much easier than implementing a FOP extension.

Could you elaborate more on this? This may be one more step in showing 
myself as a complete newbie (which I am) but I don't see how thiscould 
help me.

BB
Peter


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



Re: FOP extension development (newbie)

2004-08-19 Thread Peter Verhoye
> Instead of an extension element--*very* complex--can't
> you use XSLT to generate your FO stylesheet, possibly
> using xsl:param to dynamically choose the graphic
> desired?

I wish I could (and maybe I can, but I'm a XSLT newbie also :-)

The problem I have is as follows. The PDF need to include a graphic which 
is specific for each document. Its a kind of watermark that is generated 
using data that's found in the XML used to create the document.

For example (and it is an example), the graphic could look like a bunny 
rabbit when your name is Peter Verhoye :-)

So, I don't see how to do this using anything else than an extension.

The problem is that I've been looking at existing example, but whenever 
they do graphics, they use SVG and the component that I use generates JPG.
This, and the fact that I can even seem to find an example that shows a 
very basic extension (like print a text) means my work is kinda hard :-D

BB
Peter


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



FOP extension development (newbie)

2004-08-19 Thread Peter Verhoye
Hi all,

I'm in the process of writing a FOP extension. To be able to start I was 
planning on creating a FOP extension that does something very silly: to 
load an jpg file and insert it in a PDF document.

I know, this is already possible but the goal is to be able to insert a 
generated image in a PDF document on the fly.
I can't use a servlet so no help there.

Does somebody has some good, very good pointers to help me out as, to be 
honest, it's all over my head a bit right now :-S

Thanks in advance
Peter


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



Including images

2004-08-13 Thread Peter Verhoye
Hi all,

I'm just starting to work with FOP so bear with me :-) (I already looked 
through the archive but I could have missed the answer though)

Anyway, I'm working on a project where I need to include an image into a 
PDF generated using FOP.
Now, the component I use to generate the image writes the image (a JPEG) 
to the filesystem. So, I could include it using the standard method.
However, since I'm not so pro creating files, I am looking for a way to 
be able to generate the image at runtime using for example extensions.

So the idea is to create an extension that calls a component, which 
generates the image, and then it's done *ahem*

However, looking at the xalan site, I saw that extensions always need to 
return a String, a DOM element or such thing...

So now my question is, can it be done? And, if so, how (all help is 
welcome so pointers are good too :-)

Many thanks for your help all!!

BB
Peter


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



Re: FOP 0.20.5 and XDK 10.10.0.2.0

2004-07-27 Thread Peter B. West
Jörg, I love your work.
Peter
J.Pietschmann wrote:
Slavko Dzalto wrote:
I tried to use FOP 0.20.5 and XDK 10.10.0.2.0 but they don´t work 
together. If I use an older version of the XDK it works but I have to 
use the new one.

Are there any details available about the "don't work
together" part? Like: error messages, stack traces,
browser behaviour description etc.
J.Pietschmann
--
Peter B. West <http://cv.pbw.id.au/>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: command line problem

2004-07-26 Thread Peter B. West
Ganesh,
Thanks for pointing that out.  The advantage of the method is that 
fop.sh does not need to be executable.  That is only required if you try 
to execute it directly, as in ./fop 

Peter
Ganesh Babu Nallamothu, Integra-India wrote:
Dear All,
There is another way of running this fop.
sh fop.sh will give the same result as ./fop.sh. Make sure that the fop.sh
is having executable permission to the user.
--
Peter B. West <http://cv.pbw.id.au/>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: command line problem: success!

2004-07-25 Thread Peter B. West
Conor Quinn wrote:
Yep, this was the issue: my ignorance of the basic
syntax involved.  For the want of a period (full stop)
a day was lost.  But not really : I have learned quite
a bit, since this was my first time trying anything at
all involving the command line (hence I spent the
whole of yesterday researching, testing, and
practicing these newfound knowledge)---and so I thank
you very much for taking the time to help an
interested beginner get started: your advice has made
me confident that I'll be able to do even more with
these tools, and perhaps offer the same kind of help
to someone else some day.  Till later, keep well.
I'm pleased you have it working.  BTW, in the interests of security, 
*never* put '.' in a root user's PATH.

Peter
--
Peter B. West <http://cv.pbw.id.au/>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: command line problem

2004-07-25 Thread Peter B. West
Conor,
What's your environment?  Are you running OSX?  I assume so, because I 
assume you are running the commands in a terminal window.

Conor Quinn wrote:
--- Glen Mazza <[EMAIL PROTECTED]> wrote:
Did you build (compile) the application first?  If
you
just downloaded the source (instead of the binary)
version of FOP, you'll need to build the app first
by
typing "ant" (or "build.sh") at the command line in
the root directory.
I have definitely downloaded the fop-0.20.5-bin.tar.gz
file, and not the source version.  I would like to try
out Ant soon, but I'm still wondering what my problem
with the binary version is.  I suspect that I've just
missed something very basic in how I structure my
directory.  As it stands, I just have the above file
unpacked with StuffIt---oddly and perhaps
significantly, the suggested tar -xzf approach made it
cranky:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
What happens if you try
tar tvf fop-0.20.5-bin.tar
?  Do you get a list of files without error messages?
because even with StuffIt turned off, a download still
just gets me a straight fop-0.20.5-bin.tar on the
Desktop, not fop-0.20.5-bin.tar.gz.
Unless I'm missing something, though, I don't think
the file truncation issue is what's going on, and so I
just have said tar unarchived with StuffIt and plopped
on the Desktop directory as a plain folder directory
("fop-0.20.5").
Perhaps, then, this is the problem?  While Apache just
says to unarchive the tar into a "directory/folder
that is convenient on your system," is there perhaps
some further step involved in placing specific files
in specific places that I have missed?
Regarding Peter's suggestion, i.e.
...
have you tried
fop.sh fonts.fo fonts.pdf
?

trying that I got a similar response:
-bash: fop.sh: command not found 

Again, it seems that somehow I'm not managing to get
the fop command into an accessible position.  Any
suggestions?  Thanks for your help so far!
Bash finds commands using the PATH variable.  Non-root users will 
generally have the current directory (.) appended to the PATH.  This can 
be examined by
echo $PATH

If there is no '.' in your path, bash would not have found fop.sh.  If 
your current directory ( 'pwd' will show it ) was not the directory 
containing fop.sh, bash would not have found it anyway.  If the file 
fop.sh is not executable, bash would not have been able to run it. What 
happens when you cd into the directory in which the tarball was 
untarred, and execute
ls -l fop.sh

What happens if you execute
./fop.sh fonts.fo fonts.pdf
Peter
--
Peter B. West <http://cv.pbw.id.au/>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: command line problem

2004-07-25 Thread Peter B. West
Conor,
I don't know how the Mac environment is set up, but have you tried
fop.sh fonts.fo fonts.pdf
?
Peter
Conor Quinn wrote:
Hi all!  I'm quite new to FOP and have spent the day
on this Mac OS 10.3.4 researching madly and trying
every possible installation combination I can think of
for fop-0.20.5, but I must be missing something very
very basic that none of the main sites feel the need
to mention: since no matter what I do, the command
line still spits back nothing but
   -bash: fop: command not found
in response to a standard 

   fop fonts.fo fonts.pdf
test of the newly added directory and files.  Running
fop.sh gets the whole set of usage scenarios and the
expected "no input specified" complaint about lacking
, but again, all I get is the above error message in
response to the above command.  Can anyone give me a
hint as to what presumably obvious error I am making? 
--
Peter B. West <http://cv.pbw.id.au/>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


xml schema question

2004-07-22 Thread Peter Menzel
Hi all,
i am working on a xml schema and have the following problem, maybe 
somebody can help me.

i would like to have the follwoing elment with content:

   
   
   

The elements aa and bb are required to be there and they may occur just 
one time. Other sub elements of element can occur many times. Especially 
the order of the elements is random, so i may not use xsd:sequence.

My xml schema snippet for this element:

  
  
   
   
   
   
   
   

Unfortunately this wont work.
xmllint says that the above xml document is not valid.
Has anybody any idea concerning this problem? Is it generally possible 
to mix elements in a complexType  with different minOccurs/maxOccurs ?

Greetings, Peter 

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


RE: Anyone produce RTF output with separate header, body, and/or footer?

2004-07-13 Thread Peter Herweg
Hi,

this issue is fixed.
It was caused by the latest changes to StaticContent.java 7 days ago.

Bye
Peter Herweg

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Christopher R Newman
> Sent: Monday, July 12, 2004 8:17 PM
> To: fop-user
> Subject: Anyone produce RTF output with separate header, body, and/or
> footer?
> 
> 
> Hello all,
> I'm using the latest dev version of FOP so I can generate RTF 
> output.  Has anyone been able to create headers/footers without any 
> problems?  The flow body always seems to get sucked into whichever 
> static-content I define last.  If not, anyone know of ways to work 
> around it?  Is there a way to create fixed blocks at the bottom of every 
> page?
> 
> 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: Anyone produce RTF output with separate header, body, and/or footer?

2004-07-12 Thread Peter Herweg
Hi,

yes i can confirm this.
I will fix this within the next few days - as soon as possible.

Thank you for reporting!

Peter Herweg

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Christopher R Newman
> Sent: Monday, July 12, 2004 8:17 PM
> To: fop-user
> Subject: Anyone produce RTF output with separate header, body, and/or
> footer?
> 
> 
> Hello all,
> I'm using the latest dev version of FOP so I can generate RTF 
> output.  Has anyone been able to create headers/footers without any 
> problems?  The flow body always seems to get sucked into whichever 
> static-content I define last.  If not, anyone know of ways to work 
> around it?  Is there a way to create fixed blocks at the bottom of every 
> page?
> 
> 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: EPS image printing problem

2004-07-11 Thread Peter Gustafsson
> Since I indicated Ghostscript users should use 7.06 in that POST, can
> you confirm whether or not your problem still exists in 7.06?

I have only tried viewing the images with 7.04 so I wouldn't know about 7.06
but with 7.04 the
images shows up as intended...

I will go on vacation for a week now but please continue the discussion
around this topic, I will read it all when I come back.

/Peter



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



Re: EPS image printing problem

2004-07-09 Thread Peter Gustafsson
> Yep. What I don't get is why it doesn't work in GhostScript 8.x. I
> though in earlier versions of AFPL GhostScript it worked. But then, we
> may still do something wrong the way we embed EPS files. Maybe asking
> the GhostScript people would also be an idea.

I'm not acustumed to the development routine concerning fop but maybe this
question should be forwarded to the development list??

Seams like there has been som changes in the standrard or something like
that since both acrobat reader and ghostscript ignores the fop generated EPS
files.

/Peter


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



Re: EPS image printing problem

2004-07-09 Thread Peter Gustafsson
Tanks alot...

You were right about the Ghostscript issue, installed version 7.04 and now
the EPS image is shown in GSview.

However, the problem still remains with the printing of the EPS image
through Acrobat Reader 6.0.

I have tried both printing to my postscript enabled printer HPLJ 4MV and to
the acrobat destiller and the image isn't shown in either of the cases... I
have also tried to print to my printer but redirecting the postscript to a
file and then view the file with GSview which doesn't show any image in the
postscript file... Also the filesize of the postscript generated is to small
to hold an image.

So it seams that my version of Acrobat Reader doesn't attatch the embedded
image in it's printer postscript output...

Could there be som problem with my acrobat version to maybe??

Is it possible to attatch the eps file to the mail and send it??
Even so is it still interesting since I can se the image with version 7.04
of GhostScript that should mean that there is some other problem then image
related right??

/Peter


- Original Message - 
From: "Jeremias Maerki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 09, 2004 1:53 PM
Subject: Re: EPS image printing problem


> Peter,
>
> during the last few days we've seen that there are issues with
> GhostScript 8.x. You only give us the GSView version but not the
> GhostScript version you're using. Try the latest GNU GhostScript 7.x.
>
> By the way, I think I remember having problems a couple of years ago
> with certain EPS files in FOP. If you don't manage to have the EPS
> displayed, consider sending it to this list. Maybe we can find a
> work-around. The FO you sent is not really interesting, it's the EPS
> file.
>
> On 08.07.2004 14:21:32 Peter Gustafsson wrote:
> > Hello..
> >
> > I have a problem with printing EPS images that i have included in my fop
> > generated pdf file.
> > I know that it isn't supposed to show up in acrobat but I can't even
print
> > them.
> >
> > I have tried to view the PDF;s with GSView4.1 but the image wasn't shown
> > there either.
> >
> > Thought there was som sort of error in the image so I created a sample
image
> > with Illustrator which wasn't shown either.
> >
> > The image is however embedded in the pdf file since the file size is
rather
> > big and a space for the image is reserved in the pdf.
> >
> > I also tried viewing the pdf on another computer with the same result.
> >
> > I have tried both fop 0.20.4 and 0.20.5 (binary distrubition) and 0.20.5
> > (source) my testcode is:
> 
>
>
> 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: EPS image printing problem

2004-07-09 Thread Peter Gustafsson
Title: RE: EPS image printing problem



Thanks for the reply..
 
I have thought of this way to act but I have heard 
that the fop postscript renderer don't make use of the embedded font's which is 
an important part of my project. 
 
Did you have the same problem as I have with the 
EPS images not even beeing able to be printed?
 
I find the behavour very strange and can't figure 
out why it is acting like this. 
 
/Peter
 
- Original Message - 

  From: 
  Sun, Tiffany (Tong) 

  To: [EMAIL PROTECTED] 
  Sent: Thursday, July 08, 2004 9:25 
  PM
  Subject: RE: EPS image printing 
  problem
  
  I'm embedding EPS files in my FOP also, when I try to generate 
  PDF files, here's what I did to make it show up in browser and on 
  printer:
  First generate PS file using FOP. Second use ps2pdf (free from GhostScript) generate PDF file from PS 
  file. 
  The generated PDF files have very good quality. 
  Tiffany 
  -Original Message- From: Peter 
  Gustafsson [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, July 08, 2004 8:22 AM To: [EMAIL PROTECTED] Subject: EPS image 
  printing problem 
  Hello.. 
  I have a problem with printing EPS images that i have included 
  in my fop generated pdf file. I know that it isn't supposed to show up in acrobat but I can't even 
  print them. 
  I have tried to view the PDF;s with GSView4.1 but the image 
  wasn't shown there either. 
  Thought there was som sort of error in the image so I created 
  a sample image with Illustrator which wasn't shown 
  either. 
  The image is however embedded in the pdf file since the file 
  size is rather big and a space for the image is 
  reserved in the pdf. 
  I also tried viewing the pdf on another computer with the same 
  result. 
  I have tried both fop 0.20.4 and 0.20.5 (binary distrubition) 
  and 0.20.5 (source) my testcode is: 
  /Peter Gustafsson 
   
  http://www.w3.org/1999/XSL/Format">     
   
  page-height="11in" page-width="8.5in" margin-bottom="0pt" 
  margin-top="0pt" master-name="main"> 
        
              before 
             
       
  after 
        
  - 
  To unsubscribe, e-mail: 
  [EMAIL PROTECTED] For additional 
  commands, e-mail: [EMAIL PROTECTED] 



EPS image printing problem

2004-07-08 Thread Peter Gustafsson
Hello..

I have a problem with printing EPS images that i have included in my fop
generated pdf file.
I know that it isn't supposed to show up in acrobat but I can't even print
them.

I have tried to view the PDF;s with GSView4.1 but the image wasn't shown
there either.

Thought there was som sort of error in the image so I created a sample image
with Illustrator which wasn't shown either.

The image is however embedded in the pdf file since the file size is rather
big and a space for the image is reserved in the pdf.

I also tried viewing the pdf on another computer with the same result.

I have tried both fop 0.20.4 and 0.20.5 (binary distrubition) and 0.20.5
(source) my testcode is:

/Peter Gustafsson


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


 

after

  
 



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



Re: Vertical Centering

2004-06-25 Thread Peter B. West
Clay Leeds wrote:
p.s. How do you spell 'Centering' in British English?
centring - generally pronounced as spelt; differently from the 
pronunciation of 'centre'.

Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hyphenation foundry [was: Re: proposed font project]

2004-06-17 Thread Peter B. West
J.Pietschmann wrote:
Simon Pepping wrote:
I think it is time to create a project for the hyphenation files at
Sourceforge. The project should be a home for all sorts of accessories
to FOP, or even to FO processors in general. Do you want to
participate? Do you know a nice name?

Well, sf.net would appeal to a larger body of developers, I think,
and is certainly easier to menage for small projects, but we
can also ask on jakarta-commons, xml-commons and even declare it
a FOP (or XML graphics) subproject.
Anyway, I just uploaded
 http://cvs.apache.org/~pietsch/t.tar.gz
which contains several unfinished stuff I produced the last year:
- Utilities to generate tables for the Unicode line break property
Does Character.UnicodeBlock provide any of this functionality?
Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hyphenation foundry [was: Re: proposed font project]

2004-06-17 Thread Peter B. West
Simon Pepping wrote:
Hi Clay,
On Sat, May 29, 2004 at 10:02:37PM -0700, Clay Leeds wrote:
It would also be good to develop some sort of hyphenation foundry...

I think it is time to create a project for the hyphenation files at
Sourceforge. The project should be a home for all sorts of accessories
to FOP, or even to FO processors in general. Do you want to
participate? Do you know a nice name?
Hy-pe
Hy-Phi
Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: rtf connversion

2004-06-16 Thread Peter Herweg



Hi,
 
do you want to use 
the rtflib in order to create rtf files on the fly or do you just want to 
convert an xsl-fo file to rtf?
 
If you just want to 
convert a file, you don't need to use RTFHandler directly. Just pass the xsl-fo 
file as command line parameter to fop, for example "C:\>fop.bat input.fo 
-rtf output.rtf"
 
If you 
want to use the rtflib you may find some useful examples in jfor's testdocs 
(http://cvs.sourceforge.net/viewcvs.py/jfor/jfor/src/org/jfor/jfor/rtflib/testdocs/). Maybe you have to modify them a litte to get it run 
with fop, but the rtflib is quite the same.
 
Bye
Peter Herweg
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  tango raySent: Wednesday, June 16, 2004 8:46 AMTo: 
  [EMAIL PROTECTED]Subject: re: rtf 
  connversion
  
  I succeed in downloading the cvs version of fop, with the rtf part.
  I have created a rtf file, with the rtffile.java, that i can 
  execute.
   
  But i can be able to use the RTFHandler. I wish to know how can I 
  use it, and enter one fo file(doc?) as parameter.
  If anyone can tell me how to create the "main" part of the rtfhandler, in 
  order to use it... ( and then use the rtflib).
   
  Thank you
  
  
  Yahoo! Mail : votre e-mail personnel et gratuit quel que soit votre 
  fournisseur d’accès - avec anti-virus gratuit ! Créez votre Yahoo! Mail Dialoguez en direct avec vos 
  amis grâce à Yahoo! Messenger !


Re: OutOfMemoryError by large tables: Alternative solution?

2004-06-11 Thread Peter B. West
Pascal,
The number of rows is not a problem in alt-design, with the usual 
proviso about forward references.  Pages are built up as rows are 
encountered.  There may be other valid reasons to break up huge tables 
into sub-tables, but memory consumption will not be one of them.

Peter
Pascal Sancho wrote:
Hi,
I wonder weither you can easily read a 1 rows table. Even in a pdf form. 
Probably you should crunch your source file in multiple subtables.
Other engines than FOP could be have similar limitations... Beginning with 
human reader;)
Regards,
Tcho
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OutOfMemoryError by large tables: Alternative solution?

2004-06-10 Thread Peter B. West
I would like to answer this question now by saying, "Alt-design". 
However, I cannot - yet.  The layout work has just begun, and is aiming 
initially at a Java 2D solution.  When that is complete, unless someone 
cares to work in parallel on PDF rendering from the Java 2D 
representation, that PDF rendering work will have to follow.  The 
initial version will require Java 1.4.2, a serious drawback for many, 
and may move forward from there if the text layout facilities improve in 
1.5 and its sub-releases.

Alt-design starts page layout as soon as an fo:flow is encountered, and 
a page is completed as soon as enough of the flow has been read to fill 
that page.

Obviously, forward references cannot be resolved until the reference is 
resolved in the course of layout (e.g. Page n of m), but the existing 
solution of caching the incomplete page to disk will apply in alt-design.

Anyone who wishes to contribute to the development of alt-design would 
be most welcome.  Experience has already shown that ideas from 
alt-design can be very fruitfully applied to the main line of 
development.  In saying this I have no desire to distract those, 
especially those new and productive committers, who are dedicated to 
HEAD development.

I mention this here because of the ongoing concern about memory usage.
Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Image Size Calculations

2004-06-08 Thread Peter B. West
J.Pietschmann wrote:
Well, perhaps we should use wording like this in graphics.xml:
"FOP always assumes a resolution of 72dpi on encountering pixel
measurements, regardless of the output device, and converts all length
measured in pixels in millipoints using 1/72 pixels per inch as
conversion factor. The layout stage doesn't use pixels, even if the
final rendering is on a bitmapped device like the monitor. A bitmapped
image without explicit measurements is assumed to have the actual pixel
counts as measurements. Any resolution declaration in the image metadata
is ignored."
Ideal.
Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Image Size Calculations

2004-06-07 Thread Peter B. West
Clay Leeds wrote:
On Jun 7, 2004, at 2:13 AM, Chris Bowditch wrote:
Christian Hattemer wrote:
If it's true that graphics measurements specified in INCHES yields 
better results than PX, that certainly is news, and would (if 
reproducible) warrant special mention on the FOP Graphics page. Can you 
also do a test to see if the results are similar if you specify mm and 
cm (millimeters & centimeters of course ;-)) as well?
I think the problem is that pixels are not well-defined.  In general, a 
pixel is an output-dependent unit.  On a printer, a pixel might be 
1/2400 inch, on the screen, 1/96".  The Recommendation warns about this 
in 5.9.13.1 Pixels.  I suggest that anyone tempted to define lengths in 
"px" read that section of the Recommendation.  It's not so bad if the 
units are completely "internal", that is, that it only affects text, 
tables and the like.  But when you import an image constructed 
externally, and defined in pixels for God knows what output device, you 
are asking for trouble.

Consider the lengths that Gimp goes to on installation to make sure that 
images are reliably sized.  You must effectively tell Gimp exactly what 
the size of a screen pixel is on your monitor.  Incidentally, if you 
want to find out about the dimensions of images, install Gimp and load 
the image.  Because of Gimp's awareness of your monitor size, you should 
be able to get reliable translations of image sizes into stable units.

Bottom line - don't define *anything* in px.
BTW, I don't know if this is related, but GIF images do not scale well, 
as they are a form of a INDEXED BITMAP image. JPG images scale much 
better. This could be part of the problem. If you're working with line 
drawings, perhaps SVG might be a better format to use in your documents.

This leads to the question: How can I find out the actual resolution 
of my
images and calculate the dimensions in inches? Do I have to modify the
generated fo afterwards to include the calculated dimensions?

Dont you know the resolution of the images? It is difficult for me to 
answer this question as I dont know where you get the images from. In 
my environment, the system responsible for generating the images 
stores the measurements in cm/mm/inches along with the resolution and 
the image itself.

Chris

Can't you just load the image directly into a web browser:
images/NetworkModel/Basics/BachmanDiagram.GIF
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where to download high-quality fonts

2004-06-06 Thread Peter B. West
Paul Tremblay wrote:
On Sun, Jun 06, 2004 at 12:45:00AM +1000, Peter B. West wrote:
What did you download, and where did you get the pfm fonts?  I have just 
downloaded the unix distribution, and it includes only afm and pfb fonts.


http://sourceforge.net/projects/gs-fonts/
I am guessing that this site converted the fonts with the fonts2pfb
tool. I used this tool on my distribution and got the same type of
premature end of file result.
In short, I don't think I'm working with a good set of fonts.
Where did you download your distribution? My home distribution has pfa
instead of pfb.
Paul,
The files I am talking about come from the links on the AMS page - 
http://www.ams.org/tex/type1-fonts.html

I have downloaded the unix and the pc font sets.  The unix set comes 
with only pfb and afm files, in the pfb and afm directories 
respectively.  The pc download contains afm and fonts directories.  The 
afm directory contains afm files, and the fonts directory contains pfb 
files and the pfmfiles directory.  In the latter directory are the pfm 
files.

The afm files are text files, while the pfms are binary.  Try using the 
pfm files from the pc distribution with PFMReader.

General questions to font gurus. Can we generate font metrics for FOP 
directly from the AFM files?  Do AFM and PFM files contain equivalent 
information?

Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where to download high-quality fonts

2004-06-05 Thread Peter B. West

Paul Tremblay wrote:
On Sat, Jun 05, 2004 at 03:54:39PM +1000, Peter B. West wrote:

These fonts are available in Macintosh and PFB (binary Type 1) outline 
formats. Users requiring the fonts in PFA (ASCII Type 1) form should 
convert them with the aid of one of the following tools, available from 
the Comprehensive TeX Archive Network (CTAN):

Oh yes, right you are! I just downloaded the fonts, and I am finding a
font.afm file, a font.pfm file, and a font.pfb file. Everything should
be there to create a font-metrics file and to embed the font.
But when I type:
java  org.apache.fop.fonts.apps.PFMReader a010013l.pfm out.xml
I get this error message:
[INFO] PFM Reader v1.1a
[INFO] 
[INFO] Reading a010013l.pfm...
[INFO] 
[INFO] 31015 kerning pairs
[ERROR] Error while building XML font metrics file
java.io.EOFException
at java.io.DataInputStream.readShort(DataInputStream.java:323)
at org.apache.fop.fonts.type1.PFMInputStream.readShort(PFMInputStream.java:97)
at org.apache.fop.fonts.type1.PFMFile.loadKernPairs(PFMFile.java:203)
at org.apache.fop.fonts.type1.PFMFile.loadExtension(PFMFile.java:167)
at org.apache.fop.fonts.type1.PFMFile.load(PFMFile.java:114)
at org.apache.fop.fonts.apps.PFMReader.loadPFM(PFMReader.java:211)
at org.apache.fop.fonts.apps.PFMReader.main(PFMReader.java:180)

On a linux sysem, if I do:
cat a010013l.pfm
I get a strange result. The file is outputted to the terminal, but an
premature end of file seems to be reached.
What did you download, and where did you get the pfm fonts?  I have just 
downloaded the unix distribution, and it includes only afm and pfb fonts.

Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where to download high-quality fonts

2004-06-05 Thread Peter B. West
Paul Tremblay wrote:
On Fri, Jun 04, 2004 at 12:31:36PM +1000, Peter B. West wrote:
The American Mathematical Society has the copyright on the Computer 
Modern fonts. http://www.ams.org/tex/type1-fonts.html

These are available in Type 1 format.  In addition, there are 
AMS-developed fonts for mathematics.

Peter

Okay, I downloaded these fonts and found both an afm and a pfb file. I
need pfm rather than afm files. So I used a converter called "afm2pfm."
When I run this utility, I get:
Warning on line 1, ignoring 
Warning on line 2, ignoring 
...
Warning: setting lower case ascent from AFM Ascender
Warning: setting upper case descent from AFM Descender
Warning: calculating average width from all characters
Segmentation fault

I do get a resulting pfm file, which I can then use to generate an XML
file. However, when I then use this file with FOP, FOP puts a page-break
after each block element. 

I also notice that with cmb10, I get only a limited range of characters,
up to unicode values 128 (ASCII).
Looks like a question for one of our fonts specialists.  Jeremias?
What range of characters is available with the cmb10 you had on your system?
Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where to download high-quality fonts

2004-06-05 Thread Peter B. West
Paul Tremblay wrote:
On Thu, Jun 03, 2004 at 07:13:36PM +0200, J.Pietschmann wrote:
Ghostscript and KDE come with completely free fonts, and I've seen
TTF conversion for them. I'm just too lazy right know to search through
their distributions for the actual font names and fedd this into Google.
I als vaguely remember that the Lucid TTF included in Sun's JDK (perhaps
Linux only) doesn't have license restrictions.

I have these fonts on my system. But I don't see any font.pfb file.
Without that file, I don't believe I can use the font with FOP. I hope I
am wrong here, because if so, then I do have a set of high-quality fonts
right on my own computer.
From the AMS web site
http://www.ams.org/tex/type1-fonts.html

These fonts are available in Macintosh and PFB (binary Type 1) outline 
formats. Users requiring the fonts in PFA (ASCII Type 1) form should 
convert them with the aid of one of the following tools, available from 
the Comprehensive TeX Archive Network (CTAN):

* fonts/utilities/ps2mf/pfb2pfa
* fonts/utilities/ps2pk/ps2pk15/misc/pfb2pfa
* systems/msdos/4alltex/diskp1/pfb2pfa.zip
The fonts have exactly the same metrics as the bitmap versions of the 
fonts generated by METAFONT. Therefore, the standard TFM files 
(available from CTAN in fonts/cm/tfm and fonts/amsfonts/tfm) should be 
used for TeX applications.


Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where to download high-quality fonts

2004-06-04 Thread Peter B. West
J.Pietschmann wrote:
Paul Tremblay wrote:
So what exactly is a font? I thought a font was more like a data file.

Well, a program is a data file, interpreted by the processor. You know,
there's always a level where the distinction between programs and data
is blurry.
In terms of copyright, the distinction doesn't matter all that much
anyway.
I thought the rendering of the font was done by the program. Also, what
exactly is hinting? Is that not some technique to make a font look
better?

It is a technique which makes scaled down glyphs look better. Remember,
TrueType fonts are used to generate glyph bitmaps for arbitrary glyph
sizes. Hints are used to change the glyph locally to minimize artifacts
caused by mapping the shape to pixels. For example take the upper case
letter "T". If the stroke thickness gets down to the range of a single
pixel, the joint of the two lines of the T might start looking more
black and somewhat like a knot. A hint causes the renderer to lighten
the zone up.
If a font is a set of data (as opposed to a program), it seems in the
interest of the open source community to develop some type of open font
format.

Why? The TTF and OTF formats are already open. The problem are the
software patents related to the bytecode interpreter which requires font
*rendering programs* to ask for a license. See also
 http://www.freetype.org/patents.html
[snip search for free fonts]
Ghostscript and KDE come with completely free fonts, and I've seen
TTF conversion for them. I'm just too lazy right know to search through
their distributions for the actual font names and fedd this into Google.
I als vaguely remember that the Lucid TTF included in Sun's JDK (perhaps
Linux only) doesn't have license restrictions.
Just realised that I have been unsubscribed from fop-user for some time 
thanks to the flood of spam and spurious mail delivery error messages. 
Grumble, grumble...

The American Mathematical Society has the copyright on the Computer 
Modern fonts. http://www.ams.org/tex/type1-fonts.html

These are available in Type 1 format.  In addition, there are 
AMS-developed fonts for mathematics.

Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: RTF

2004-04-30 Thread Peter Herweg
Hi,

unfortunatelly i have currently no time to work on jfor's integration into
fop. But anyway the current rtf support of the development version is nearly
as good as jfor (maybe in some points even better).

Kind regards
Peter Herweg

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Mauro Caon
> Sent: Friday, April 30, 2004 9:07 AM
> To: [EMAIL PROTECTED]
> Subject: RTF
>
>
> Hi,
> can anyone tell me APPROXIMATELY when RTF will be created whith FOP?
>
> Thanks
> Mauro
>
> -
> 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: Footnotes on the following page

2004-02-05 Thread Peter B. West
Chris Bowditch wrote:
Peter B. West wrote:
Chris Bowditch wrote:
Looks like youve defined your footnote within a marker. What is the 
expected behaviour here? Are you expecting a footnote on the page 
where the static content retrieves the marker, or are you expecting 
the footnote to appear on the page where it is defined in the marker?


It is actually illegal to define a footnote within a marker.

Thanks for clarifying Peter.
 From the 1.1 Draft.
6.12.3 fo:footnote
Constraints
...
It is an error if the fo:footnote occurs as a descendant of a flow 
that is not assigned to a region-body, or of an fo:block-container 
that generates absolutely positioned areas. In either case, the 
block-areas generated by the fo:footnote-body child of the fo:footnote 
shall be returned to the parent of the fo:footnote and placed in the 
area tree as though they were normal block-level areas.

Chris,
I should have added the following from the Rec on fo:marker and 
fo:retrieve-marker.

"6.13.5 fo:marker
...
An fo:marker may contain any formatting objects that are permitted as a 
replacement of any fo:retrieve-marker or fo:retrieve-table-marker that 
retrieves the fo:marker's children."

and
"6.13.6 fo:retrieve-marker
...
Constraints:
An fo:retrieve-marker is only permitted as the descendant of an 
fo:static-content.

The fo:retrieve-marker specifies that the children of a selected 
fo:marker shall be formatted as though they replaced the 
fo:retrieve-marker in the formatting tree."

The implication to me of the combination is that the contents of 
fo:marker are under the same constraints as the fo:retrieve-marker; that 
they are not, in formatting terms, descendants of an fo:flow, but of an 
fo:static-content, destined for a region other than fo:region-body.

In other words, the fo:marker ancestor of the fo:footnote is "not 
assigned to a region-body."

Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Footnotes on the following page

2004-02-04 Thread Peter B. West
Chris Bowditch wrote:
Readman, Devon wrote:
Here is the block of the stylesheet that is used to generate 
footnotes...it
first tests if the current element has an attribute (id) and if a child
elements exist (name & note...note is the element to be placed in the
footnote):

Looks like youve defined your footnote within a marker. What is the 
expected behaviour here? Are you expecting a footnote on the page where 
the static content retrieves the marker, or are you expecting the 
footnote to appear on the page where it is defined in the marker?

Footnotes are a bit of a mess in FOP, and so its no surprise that when 
you try to do advanced things like this, the behaviour is not as 
expected. I'm guessing that you'll need to settle for footnotes defined 
out of a marker, just in the regular flow.

It is actually illegal to define a footnote within a marker.
From the 1.1 Draft.
6.12.3 fo:footnote
Constraints
...
It is an error if the fo:footnote occurs as a descendant of a flow that 
is not assigned to a region-body, or of an fo:block-container that 
generates absolutely positioned areas. In either case, the block-areas 
generated by the fo:footnote-body child of the fo:footnote shall be 
returned to the parent of the fo:footnote and placed in the area tree as 
though they were normal block-level areas.

Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: hyphenation problem

2004-01-27 Thread Peter Menzel
Hi

If you want to include new hyphenation patterns into fop, it's not enough
to zip them into the fop.jar.. You have to download the source, copy the
patterns in the hyph dir and then run the build script, to compile a new jar
file..

Peter



> Hy,
>
> I upgrade from 0.20.4 to 0.20.5 and I have the following error in the
> log :
>
> "[ERROR] Couldn't find hyphenation pattern  fr_fr
> using general language pattern fr instead."
>
> Even I've add to fop.jar the fr.hyp file.
>
> Maibe it's not the right solution, but french hyphenation was not
> support in the 0.20.5 I beleave.
>
> Could someone help please.
>
>
>
--
[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: 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: Running junit tests fails

2003-12-13 Thread Peter B. West
J.Pietschmann wrote:
Peter:
I think it points to the fact that we will have to provide a custom 
ant build, optional.jar and library dependencies, including junit.jar.

That's not necessary if people install a proper binary ant distro.
It's somewhat like the FOP binary distro: we provide a pre-built
jar offering Jimi, JAI and crypto support, something which people
building FOP from source not necessarily get.
Just had a look at the Ant binary optional.jar.  It's got everything but 
the kitchen sink, including the junit stuff.

Would Maven cover the Jimi/JAI/Crypto stuff for us?
Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Running junit tests fails

2003-12-12 Thread Peter B. West
Jeremias Maerki wrote:
Looks like it. Please download the latest Ant release and install it
following Ant's installation instructions. Then use ant.bat/ant.sh to
build FOP and not build.bat. Ant can be found at http://ant.apache.org.
I've heard that best practice is not to bundle Ant with a project but to
make an Ant installation a requirement on every machine someone wants to
build Java projects on. Looks like we hit one of the reasons for this
best practice here. I'll raise that point on fop-dev.
Sorry for the trouble caused. I was the one to introduce JUnit tests in
the build.xml for HEAD.
On 10.12.2003 20:46:52 Simon Pepping wrote:
Ant's failure message mentions optional.jar. I do not have that
because it does not come with the checkout. Could that be the cause?
I seem to recall that one has to build ant for the particular set of 
optional facilities that one wants.  Does this ring a bell for anyone?

From the manual:
<
Make sure you have downloaded any auxiliary jars required to build tasks 
you are interested in. These should either be available on the CLASSPATH 
or added to the lib directory. See Library Dependencies for a list of 
jar requirements for various features. Note that this will make the 
auxiliary jars available for the building of Ant only. For running Ant 
you will still need to make the jars available as described under 
Installing Ant.
/>

These seem to be in addition to optional.jar.
I think it points to the fact that we will have to provide a custom ant 
build, optional.jar and library dependencies, including junit.jar.

Peter
--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


fit table in table-cell

2003-12-11 Thread Peter Menzel
Hi all fop users,

I have a problem fitting a table in a table-cell.

my table looks like:

++-- ...  --+---+
|a text with |  +___X___+
|a line break|  |   |
++-- ...  --+---+

what the picture says, is that in one table-row
I have one or more table-cells with lot of text in them, that causes
a line break oder more.
In the last table cell, I have a nested table with just one row of text.
What happens is, that my nested table doesn't fill the entire last table-cell
of the sourrounding table, which causes this bottom line to be shown in
the middle of my last table cell.

in FO the last cell with the nested table, looks like:









X










I cannot specify an explicit width of the cells, nor height.
So when I set the height of the inner table to 100%, that
doesnt work..
but thats exactly what I want, the inner table should have the same height as
the table-cell it lies in.

Has somebody an idea about this?

Greetings, 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: Philipp Gerhardy ist ausser Haus. [Virus checked Plusbank]

2003-12-05 Thread Peter Abbot
What about people who only know german (or any other language for that matter).

It not a secret message, its only a out of office message to say that they are 
out of the office from the 5/12/2003 to 7/12/2003, they have obviously 
forgotten to unsubscribe while they are away, which is the polite thing to do.

-Original Message-
From: Peter King [mailto:[EMAIL PROTECTED] 
Sent: Friday, 5 December 2003 2:14 p.m.
To: [EMAIL PROTECTED]
Subject: RE: Philipp Gerhardy ist ausser Haus. [Virus checked Plusbank]


This may be out of place but should we be using English! That way we can help 
each other out by passing on information. If people want to keep their comments 
private, they should not be using this site!!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, 5 December 2003 11:27 AM
To: [EMAIL PROTECTED]
Subject: Philipp Gerhardy ist ausser Haus. [Virus checked Plusbank]


Ich werde ab  05.12.2003 nicht im Büro sein. Ich kehre zurück am 07.12.2003.



Diese Nachricht kann vertrauliche Informationen enthalten. Sollten Sie nicht 
der vorgesehene Empfänger sein, so bitten wir um eine kurze Nachricht. Jede 
unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulässig. Da wir nicht 
die Echtheit oder Vollständigkeit der in dieser Nachricht enthaltenen 
Informationen garantieren können, schließen wir die rechtliche Verbindlichkeit 
der vorstehenden Erklärungen und Äußerungen aus.

This message may contain confidential information.  If you are not the intended 
recipient please inform us. Any unauthorised dissemination, distribution or 
copying hereof is prohibited. As we cannot guarantee the genuineness or 
completeness of the information contained in this message, the statements set 
forth above are not legally binding.

PLUS BANK AG




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


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



RE: Philipp Gerhardy ist ausser Haus. [Virus checked Plusbank]

2003-12-05 Thread Peter King
This may be out of place but should we be using English! That way we can help 
each other out by passing on information. If people want to keep their comments 
private, they should not be using this site!!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, 5 December 2003 11:27 AM
To: [EMAIL PROTECTED]
Subject: Philipp Gerhardy ist ausser Haus. [Virus checked Plusbank]


Ich werde ab  05.12.2003 nicht im Büro sein. Ich kehre zurück am
07.12.2003.



Diese Nachricht kann vertrauliche Informationen enthalten. Sollten Sie
nicht der vorgesehene
Empfänger sein, so bitten wir um eine kurze Nachricht. Jede unbefugte
Weiterleitung oder
Fertigung einer Kopie ist unzulässig.
Da wir nicht die Echtheit oder Vollständigkeit der in dieser Nachricht
enthaltenen Informationen
garantieren können, schließen wir die rechtliche Verbindlichkeit der
vorstehenden Erklärungen
und Äußerungen aus.

This message may contain confidential information.  If you are not the
intended recipient please
inform us. Any unauthorised dissemination, distribution or copying hereof
is prohibited.
As we cannot guarantee the genuineness or completeness of the information
contained in this
message, the statements set forth above are not legally binding.

PLUS BANK AG




-
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: FOP ~ PropertyList search gives linear performance

2003-11-18 Thread Peter B. West
Property processing is a bit of a quagmire.  I have just had a look at 
the alt.design documentation, thinking I had detailed the data 
structures in more detail than is actually the case.  Some of the code 
examples are broken at the moment, but the basis of the design for 
parsing and representing properties is detailed there.

The approach I took was to resolve all of the properties at every node 
in the tree during the parsing.  As the FO tree builder descends to the 
leaf nodes, a complete properties array is maintained at each level. 
Before the tree builder exits a node though, all properties not relevant 
to that particular node type are discarded (i.e. the property sets are 
"reduced") so that the maximal data arrays are short-lived.  The 
relevant properties are maintained in sparse arrays.

There is a flaw in this approach which is exposed when markers are 
processed.  Because marker subtrees are conceptually "re-parented" in 
the static-content tree of the page on which they are laid out, the 
properties within the marker tree cannot initially be resolved, and the 
properties of the static-content trees cannot be "reduced".  This 
situation is not catered for in the existing code, but is quite easy to 
accommodate by not reducing the property sets of nodes in the 
static-content, and by slicing the marker subtrees out and storing them 
 unresolved for later processing, including property resolution, in the 
context of static-content.

All of this assumes that property resolution cannot be completed 
independently of layout.  This is a major point of difference between me 
and everyone else on the FOP team, but the implication is there in the 
Rec. if you read it carefully.

Peter
John Austin wrote:
Further to my notes on FOP performance characteristics 
of the PropertyList methods, it appears (afaik) that the 
design of this part of FOP exhibits linear tendencies.

Properties are stored in a tree where each 'level' 
corresponds to a formatting object (fo:block, fo:table)
which has local attributes (properties) and inherits 
further properties from enclosing objects. Each level's
properties are stored in a HashMap. Inheritence is 
modelled by pointers to the 'parent' and this appears
to be the cause of pathological performance in the 
findProperty() method. The step that looks at the 
parent pointer is equivalent to a linear search because 
there will be small numbers of attributes at each level 
and many levels to search.

It would seem to follow that performance would benefit
by specifying all properties at the innermost level. 
I suspect that this benefit would be limited by the 
additional costs of parsing additional attributes.
One could mitigate the effects by specifying most
properties at intermediate levels with long lifetimes
and possibly by limiting the number of extraneous 
levels. This approach might be pragmatic in some cases
but it is problematic and would not provide a long-term
solution.

I don't think the redesign of this component will be 
trivial as there are trade-off's in performance due to 
the fact that the tree could be quite deep and the 
highest levels won't have long lifetimes that could
benefit from more complex structures (which cost more 
to construct). I do think the component should be
redesigned but I don't offer a replacement as I don't
know what the future of the 0.20.5 code branch is.

--
Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


fox:outline

2003-07-31 Thread Peter Menzel
Hi everybody!

I just used the outline element from the fop xtensions and its works fine, but
i have one problem. My fo document is (of course :) ) created by an xslt
transformation and not everytime all the document parts that are referenced by
the fox:outline will be in the document at all. But the bookmark entries still
appear in acrobat.
Is there a way to make them invisible when there is no formatting object with
the refernced id?

Nice greetings, 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: PDF Generation and Javamail

2003-07-27 Thread Peter Abbot
Thanks for the response

Looks like I will have to the same. As the users want a copy of the
generated pdf I will probably just create a copy at a "known" location
and then email the pdf document from the file.

The error I was getting was that the javamail didn't know how to convert
the string of type application/pdf into a mail attachemnt. When I create
the pdf document as a file and attach it that way it works fine. 

In the long run I might look at creating a ContentHandler. What I was
trying to create is a service component that took xhtml and send it as a
pdf document without having the overhead of creating an actual file.

Pete

-Original Message-
From: Bill Lunnon [mailto:[EMAIL PROTECTED] 
Sent: Friday, 25 July 2003 5:00 p.m.
To: [EMAIL PROTECTED]
Subject: RE: PDF Generation and Javamail


Peter,

This is my experience with fop-0.20.3

I have been generating content (application/pdf) quite sucsessfully
using FOP in a servlet. Standard FOP stuff!

I had a requirement to email one or more PDF documents (as attachments)
to a recipient. My initial approach was based on using JavaMail and
creating a HTML page where a user could define the email stuff
(recipient, subject,
content(text)) as well as indicate the PDF documents to be generated and
attached to the email. I then used a servlet to connect to the SMTP
server
(sendmail) and create the email content and PDF attachments. The PDF
generation worked ok, the email creation and connection to the SMTP
server did not return any errors (or throw any exceptions) but the email
didn't consistently get to the receipient. Reviewing the SMTP server
logs, I could see where some email's were getting through and others
where not. I am not assuming that there are no errors in the code, but
all checks returned without error or exceptions thrown. I modified the
approach so that the email details and PDF attachments where written to
a "known" location by the servlet. I used another (cron'd) task then to
connect to the SMTP server (again using JavaMail) and sent the email
with attachments. This has worked without missing a message.

Hope this helps

Bill
-Original Message-
From: Peter Abbot [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July 2003 12:38 PM
To: [EMAIL PROTECTED]
Subject: PDF Generation and Javamail


Does anybody have any tips for sending the output of an xml to pdf
conversion by email using javamail. I also tried creating the output as
a file and then using javamail to send the file but I got the same
result.

I have been looking around the web for help and nothing seems to help.
The best I have been able to achieve is a whole lot of blank pages. What
I think I will have to end up doing is write a DataHandler for handling
the content type "application/pdf".

Any help would be most appreciated.

Cheers

Pete

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


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



PDF Generation and Javamail

2003-07-25 Thread Peter Abbot
Does anybody have any tips for sending the output of an xml to pdf
conversion by email using javamail. I also tried creating the output as
a file and then using javamail to send the file but I got the same
result.

I have been looking around the web for help and nothing seems to help.
The best I have been able to achieve is a whole lot of blank pages. What
I think I will have to end up doing is write a DataHandler for handling
the content type "application/pdf".

Any help would be most appreciated.

Cheers

Pete

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



RE: Help! Windows XP won't unzip the .tar.tar or .tar.gz files!

2003-06-29 Thread Peter Abbot
Title: Message



You 
dont need any special products. I remember seeing a note from something i 
downloaded a while ago that the IE automatically changes .gz to .tar or adds 
.tar to these kinds of downloads. All you need to do is rename the file to what 
it should be and then you can open/extract it in the normal 
way.
 
Pete 
 

-Original Message-From: Peter Kryszkiewicz 
[mailto:[EMAIL PROTECTED] Sent: Monday, 30 June 2003 4:26 
a.m.To: [EMAIL PROTECTED]Subject: Re: Help! Windows 
XP won't unzip the .tar.tar or .tar.gz files!
The tar.gz extension should have done it for you. 
It's a pretty old, established way to archive files (on Unix Platforms) And 
there are a few archiving utilities for Windows platforms that will recognize 
this too (Winzip is the most hi-profile of those). 
 
If you've used your XP desktop Help and 
can't find the answer there, just downloading Winzip is the least painful way of 
solving your problem. Or do a quick search on your favourite search engine like 
I did just now; look at these links;
http://www.gzip.org/ (check the FAQ 
section)
 
and a list of freeware, shareware and commercial 
archivers for Windows;
 
http://www.simtel.net/pub/winxp/compress/
 
 
 


Re: Help! Windows XP won't unzip the .tar.tar or .tar.gz files!

2003-06-29 Thread Peter Kryszkiewicz



The tar.gz extension should have done it for you. 
It's a pretty old, established way to archive files (on Unix Platforms) And 
there are a few archiving utilities for Windows platforms that will recognize 
this too (Winzip is the most hi-profile of those). 
 
If you've used your XP desktop Help and 
can't find the answer there, just downloading Winzip is the least painful way of 
solving your problem. Or do a quick search on your favourite search engine like 
I did just now; look at these links;
http://www.gzip.org/ (check the FAQ 
section)
 
and a list of freeware, shareware and commercial 
archivers for Windows;
 
http://www.simtel.net/pub/winxp/compress/
 
 
 


Re: Newbie tarred and feathered

2003-06-26 Thread Peter Kryszkiewicz
>I've not ever seen *.tar.tar; it's likely you've
>made a typo.

He didn't make a typo, I downloaded the same file and it also had the
tar.tar extension. That server has a glitch in their pipeline somewhere.


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



Fop 0.20.3 on Weblogic 7.0

2003-06-25 Thread Norr, Peter
I get the following exception...


org.apache.fop.apps.FOPException: weblogic.xml.jaxp.RegistryParser is not a
SAX driver
at
org.apache.fop.configuration.ConfigurationReader.createParser()Lorg.xml.sax.
XMLReader;(ConfigurationReader.java:111)
at org.apache.fop.apps.Driver.run()V(Driver.java:547)

Does anyone have experience running FOP on Weblogic 7??

Thanks,

Peter


--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



Re: Using russian characters in FO-Files

2003-06-16 Thread Peter B. West
Thanks Mike.
Peter
Mike Ferrando wrote:
Peter W.,
I was speaking of the recent past, this year. The errors I was aware
of have been corrected. Here is my e-mail answered by Victor
concerning these errors.(below)
--
Peter B. West  http://www.powerup.com.au/~pbwest/resume.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Using russian characters in FO-Files

2003-06-15 Thread Peter B. West
Mike,
If these errors still exist in the re-worked documentation, could you 
let us know what they are please?  (Ideally with a 'diff -u' against the 
documentation source in the HEAD branch.)

Peter
Mike Ferrando wrote:
 I struggled with this
for a while but finally figured it out by reading the stuff in the
pdf guide and the web site (and fixing the errors in the code and
commandlines found therein).
--
Peter B. West  http://www.powerup.com.au/~pbwest/resume.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HTMl 2 PDF stylesheet

2003-06-10 Thread Peter Abbot
I apologize if this has been asked already, but I have searched the
archive and couldn't find anything.

Does anyone know if there is a xsl stylesheet around to convert from
html (in well formed xml) to pdf. I have started to write one and
thought I would check first to see if there is or that there wernt lots
of traps using this approach.

Cheers

Pete

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



space between table-rows

2003-06-05 Thread Peter Menzel
Hi

How can I force a space between the rows of a table in fop 0.20.4 ?
 does not work..

Greetings, Peter
-- 

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



Re: Problem with layout of page-number-citation

2003-05-24 Thread Peter B. West
Joerg,
It's possible that the transition from the teen numbers to '20' has 
tripped some layout boundary.

Peter
J.Pietschmann wrote:
Mark Baier wrote:
i'm using fop0.20.5.rc3a and the layout of a line containing a page 
number in the style Page 1/20 is now
improved highly.
My problem is that on the last generated page the text Page 20/20 is 
moved by 0.2cm to the right.
On every other page the label is printed with the new release perfectly.

Can you reduce the file to a one or two page sample and post the
FO code to the list?
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Peter B. West  http://www.powerup.com.au/~pbwest/resume.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP javadocs

2003-05-06 Thread Peter B. West
Victor et al,
For reasons relaed to my own approach to design and code documentation, 
I would like to see us, at some time in the future, follow the lead of 
Poi, and publish the complete source tree as HTML.  See 
http://jakarta.apache.org/poi/javadocs/javasrc/

Nicola was heavily involved in this, as the Javasrc code was orginally 
to be part of Alexandria.  Opinions?

Peter
Victor Mote wrote:
In response to several requests, the javadocs for both the trunk and
maintenance branches of FOP are now available from the "API Doc" menu item
on the "Development" tab of the web site, or directly here:
http://xml.apache.org/fop/dev/api-doc.html
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FOP and Tomcat

2003-04-23 Thread Peter Kirk
Title: RE: FOP and Tomcat






> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
> Sent: 23. april 2003 13:18
> To: [EMAIL PROTECTED]
> Subject: Re: FOP and Tomcat
> 
> 
> I don't believe this is because of FOP. 


No, I don't believe this is solely a FOP problem either - more likely some sort of clash between Tomcat and FOP (or something else entirely of course). I was curious if others had seen this problem.


> Are you using the FopServlet coming with FOP?


No, I am trying to use FOP from within my own servlet. Does FopServlet run under Tomcat?


Peter





FOP and Tomcat

2003-04-23 Thread Peter Kirk
Title: FOP and Tomcat





Hi there


I am having trouble getting FOP to work from a servlet running under Tomcat.


Are there any known issues - and solutions relevant to this?


I can get a servlet to run under Tomcat.
I can write a "standalone" application to use FOP and generate a PDF file.


But I cannot get a servlet running under Tomcat to function with FOP. Tomcat refuses to compile the JSPs I have. I get errors like 

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null


Which I have no idea what it means.


There are probably some issues/incompatibilities with the jar files which Tomcat uses and which FOP uses - but what? If anyone has any advice then please let me know.

Thanks for any help,
Peter





Re: Page HEader

2003-04-07 Thread Peter Solberg

You should take a look at the examples included in the FOP package 
/docs/examples/pagination/basic1.fo
Many of the questions you have are answered quite extensively in the examples.  Set up you environment to run FO files to product PDF's directly.  Then test all of the examples.
java.exe -Xms64m -Xmx768m -classpath fop.jar;xml-apis.jar;xercesImpl-2.2.1.jar;xalan-2.4.1.jar;batik.jar;avalon-framework-cvs-20020806.jar;bsf.jar;jimi-1.0.jar;jai_core.jar;jai_codec.jar org.apache.fop.apps.Fop <<(FileName)>>.fo -pdf <<(OutFileName)>>.pdf
Hope that helps.
Pete Solberg

>From: [EMAIL PROTECTED] 
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: Page HEader 
>Date: Mon, 7 Apr 2003 15:17:35 -0400 
> 
> 
>Hai, 
> 
>I nedd to add header to all the pages.Could anyone tell me how to do it. 
> 
>Thanks 
>Vikram 
> 
> 
> 
>- 
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
> 
Add photos to your e-mail with MSN 8. Get 2 months FREE*.

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



Center a table

2003-04-04 Thread Norr, Peter
How do I center an entire table horizontally on a page?

 
  
  

  

  hello

  
  

  


Thanks.

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.



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



Re: FOP Logo Contest

2003-03-26 Thread Peter B. West
Dave,
I have not been able to view either your initial entry or this file. 
When I try to open the file in Batik, I get different errors in each 
file.  What are you using to create the files?  Can you send a png or 
jpeg version?

Peter
Dave Biggar wrote:
*I know the logo contest is closed, but ...*
** 
*According to the Merriam-Webster dictionary, *
** 
*   "fop"* *:* a man who is devoted to or vain about his appearance or 
dress .
 
Please see attachment.
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: number-rows-spanned

2003-03-17 Thread Peter Solberg

You can achieve this table layout by using nested tables...
 


   

>From: Clay Leeds <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: Re: number-rows-spanned 
>Date: Mon, 17 Mar 2003 08:57:05 -0800 
> 
>Lou, 
> 
>Thanks for the quick reply. That's GREAT! A couple of questions: 
> 
>1. Does it work in 0.20.4 and/or 0.20.5x? 
>2. Can you give me an example? I'd like to do something like this: 
> 
>|===| 
>| | | | 
>| | | | 
>| | | | 
>|===| | 
>| | | | 
>| | | | 
>| | | | 
>|===| 
>| | | 
>| | | 
>| | | 
>|===| 
> 
>Many thanks! 
> 
>[EMAIL PROTECTED] wrote: 
>>I use "number-rows-spanned" in 0.20.3: 
>> 
>> 
>> 
>> 
>>-Lou 
> 
> 
>-- 
>Clay Leeds - [EMAIL PROTECTED] 
>Web Developer - Medata, Inc. - http://www.medata.com 
>PGP Public Key: https://mail.medata.com/pgp/cleeds.asc 
> 
> 
>- 
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
Add photos to your messages with  MSN 8.  Get 2 months FREE*.

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



Re: Best Image Format for FOP for printing and viewing?

2003-03-11 Thread Peter Solberg

SVG is the best for printing It is a vector graphic and will sustain it's quality throughout... However, the source MUST be from a vector based application such as Adobe Illustrator.
SVG's can import other raster images inside of an SVG and are NOT vector based. Therefore you must sustain the vector characteristics of the image throughout the rendering process
Pete

>From: [EMAIL PROTECTED] 
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: Best Image Format for FOP for printing and viewing? 
>Date: Tue, 11 Mar 2003 12:31:40 -0500 (EST) 
> 
>This is for reports that people can view on-line and to print. So it's not a 
>either "view or print" situation. It's like I need the best of both worlds. I 
>need to have print quality and view quality in the same document. 
> 
>I am trying to get quality images in FOP, but have not been pleased with 
>jpeg,png formats. 
> 
>If I use SVG, the print quality seems better, the on screen display is awful. 
> 
>What have people been doing to achieve a superior image quality in a PDF 
>document with FOP for printing. 
> 
>Another thought was to try to create my images much bigger, than to scale them 
>down to fit in the pdf. 
> 
>Any thoughts would be appreciated. 
> 
>Thank you. I will share my results on how I achieve this with the group when I 
>hit the right answer. 
> 
>- 
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
Tired of spam? Get advanced junk mail protection with MSN 8.

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



Logo competition

2003-03-10 Thread Peter B. West
Oleg,
Here is a modified version of Clare Cowley's logo.  Unfortunately it is 
a PNG, which was about all I was able to use, working on the original 
image with Gimp.  Would you prefer jpeg?

--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: keep-together / blind tables

2003-03-03 Thread Peter Solberg

Try the :fo:table-header   There are other examples in the FOP package..  However, if you want running headers such as , you cannot use this... you must put the  in xsl:region-before.
Does that help?
Pete Solberg
                      
                        		    

>From: Matthias Brunner <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: keep-together / blind tables 
>Date: Mon, 3 Mar 2003 19:24:35 +0100 
> 
>Hello, 
> 
>I know this is a FAQ but I did not find anything appropriate to my 
>specific problem. 
>I have paragraphs with a heading and, of course, I do not want the 
>heading to be left alone on one page with the paragraphs being on 
>the next one. 
> 
>---excerpt--- 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>---excerpt--- 
> 
> 
>keep-with-next works, the heading is never left alone. 
>But even if a paragraph is half a page in size it is not seperated 
>any more thus leaving ugly blank spots on the pages. (strange ASCII 
>art example attached below :) 
>What can I do to allow the separation of this paragraph? 
> 
> 
>Thanks in advance, 
>Matthias 
> 
> 
>Example: 
>p1 
> 
> 
> 
>content 
>content 
>content 
> 
>EMPTY 
>EMPTY 
>EMPTY 
>EMPTY 
>--- 
>p2 
> 
> 
> 
>content 
>content 
>content 
>content 
>content 
>content 
>content 
> 
> 
> 
> 
> 
>INSTEAD OF: 
>p1 
> 
> 
> 
>content 
>content 
>content 
> 
> 
> 
>content 
>content- 
>--- 
>p2 
> 
>content 
>content 
>content 
>content 
>content 
> 
>EMPTY 
>EMPTY 
>EMPTY 
>EMPTY 
> 
> 
>- 
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
The new MSN 8: smart spam protection and 2 months FREE* 

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



Re: Doubt

2003-03-03 Thread Peter Solberg

    

>From: [EMAIL PROTECTED] 
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: Doubt 
>Date: Mon, 3 Mar 2003 16:06:40 +0530 
> 
> 
>Hi, 
> 
>Could someone tell me how to display a blank row in table. I am not 
>able to display a row without any contents. But if I input something 
>in any table cell, the row is displayed. 
> 
>Please advice. 
> 
>Warm Regards, 
>Vipin Jose 
> 
> 
>- 
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
MSN 8 with e-mail virus protection service:  2 months FREE*

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



reference-orientation

2003-03-03 Thread Peter Solberg
Is there a way to display text vertically? I see that reference-orientation is not implemented... Any other tricks?
 
Thanks
 
Pete SolbergMSN 8 with e-mail virus protection service:  2 months FREE*

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



Re: logo contest again

2003-03-02 Thread Peter B. West
Oleg,
I expect a disc in the mail with some more versions, which I will post 
as soon possible.

Peter
Oleg Tkachenko wrote:
Peter B. West wrote:
Yes please.  I'm attaching a PDF of a design a friend of mine is 
working on.  She can't get the jpeg output to work from Illustrator, 
for some reason, and I need to help her sort out the problems.  Does 
anyone have access to Photoshop or Illustrator?

Added jpg version to the list, send my thanks to your friend!
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: cuts off words in FOP

2003-02-28 Thread Peter Solberg

encloose the text in block-container and then add the attribute keep-together="always".  That will keep the text together... if it is enclosed by a fo:table-row, you can use the same thing.
Hope that helps
Pete Solberg

>From: "Lucian Opris" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: <[EMAIL PROTECTED]>
>Subject: cuts off words in FOP 
>Date: Fri, 28 Feb 2003 14:36:58 -0500 
> 
> 
>Hi, 
>When I'm using line-height in a block and the text flows on next page the first word that drop on the next page is cut off. DO you know any fix for that? 
>Thanks a lot 
>Lucian Opris 
> 
> 
> 
> 
>- 
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
Add photos to your messages with  MSN 8.  Get 2 months FREE*.

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



Re: AW: TMCA

2003-02-28 Thread Peter B. West
Rob,
Fair enough.  "Wiseguys" was a mistake on my part, of the kind I was 
criticising.

Peter
Rob Stote wrote:
Folks, this is not the place for this kind of a conversation.
Rob
-Original Message-----
From: Peter B. West [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:03 AM
To: [EMAIL PROTECTED]
Subject: Re: AW: TMCA
Maybe the wiseguys around here should stop putting this non-English
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: TMCA

2003-02-28 Thread Peter B. West
Maybe the wiseguys around here should stop putting this non-English 
speaker down and spare a thought for what he is saying.  Sure, acronyms 
save some time, but there is a price.  I initially struggled with many 
acronyms, and I am a native.  Add to that the fact that certain acronyms 
(e.g. PITA) would be quite offensive to a non-native speaker unaware of 
the idiomatic usage, who is simply translating verbatim.

The fact is that we are trying to cultivate a multi-cultural 
environment.  Suggestions for improving that environment should be taken 
seriously, even if, in the end, they are not acted on.

Peter
Ben Fowler wrote:
At 5:24 pm +0200 27/2/2003, Johan Åbrandt wrote:
[EMAIL PROTECTED] wrote:

...
This "lingo" thing feeld like slang, something that restrict groups use to
encode meaning in a way outsiders cannot percieve. Reading text stuffed
with it is like talking to my teenager niece: sometimes I cannot understand
a word...
But I must learn to live with it, otherwise when my 7-month old daughter
begins to talk I willl be excluded

So I guess "This 'lingo' thing" servers the same purpose as quoting 
philosophers after your signature, i.e. to show that you belong to a group - to which 
only persons of a certain standard - for example knowledge of contemporary philosophy - 
or internet abreviations - can belong. It increases your standing with persons who 
understand - and helps in keeping distance from those who dont.
Is this what you meant?

I don't think that it is what he meant (but there is nothing wrong with your 
argument).
As I read it, the OP saw a 4 letter acronym and thought that it related to 
XSLT, XSL-FO, XHTML
or some such, and felt hurt and a little sore when after some effort he found 
that PITA did not
relate to the subject domain.
I agree that a little help may be needed to get everyone up to speed with 
abbreviations and
acronyms used on mailing lists (AFAICT, FWIW, IIRC et cetera), but I would 
argue that
such abbreviations are for use rather than ornamentation, and strongly concur 
with
posting sites where they can be interpreted. I would add, for the benefit of 
the OP, that
they can be assigned the same meaning in different languages with no penalty, 
save
that the the letters don't match exactly:
http://www.intersolinc.com/newsletters/newsltr5.htm >
SI -> Système International -> International System of Units
http://www.plexoft.com/SBF/S06.html >
SIDA -> Syndrome immunodÈficitaire acquis -> Acquired Immuno-deficiency Syndrome
http://www.teenaids.org/gnTeens/glossary.html >
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: logo contest again

2003-02-28 Thread Peter B. West
Matt,
I assume that psd is the native Photoshop format.  It opens quite nicely 
in Gimp.  Clare Cowley is the artist, and she is working on making the 
descender on the 'p' thicker.  Thanks for the response.

Peter
Savino, Matt C wrote:
Here is the PSD file.
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: logo contest again

2003-02-27 Thread Peter B. West
Thanks anyway, Adam.
Adam Shelley wrote:
NM, seems like it was already taken care of.
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: logo contest again

2003-02-27 Thread Peter B. West
Oleg Tkachenko wrote:
PS. I think we should prolong the contest term for another week or two 
if nobody objects.
Oleg,
Yes please.  I'm attaching a PDF of a design a friend of mine is working 
on.  She can't get the jpeg output to work from Illustrator, for some 
reason, and I need to help her sort out the problems.  Does anyone have 
access to Photoshop or Illustrator?

--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"


FOPLOGO1.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

table-row +border

2003-02-20 Thread Peter Menzel
Hi

I try to use 


Re: Antwort: Fop and multithreading.

2003-02-11 Thread Peter B. West
Jeremias,
Humble apologies.  I'm worried myself about having taken the wrong 
approach wrt EJBs, in this case especially regarding the threads, so my 
heart was in my mouth when I first read this.  Heaven help us if your 
motivation is undermined.

Peter
Jeremias Maerki wrote:
On 11.02.2003 06:37:26 Peter B. West wrote:
There you go giving me heart failure again, Jeremias.

Stop it, Peter! I'm not writing a scientific paper here. I'm trying to
help. It was my attempt to convey the problems I had in the past dealing
with static constructs within EJBs. Be careful not to kill my motivation
for helping out here. I can also do different things in my fun time.
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Antwort: Fop and multithreading.

2003-02-11 Thread Peter B. West
Jeremias Maerki wrote:
Frédéric and Reto,
having read the "24.1.2 Programming restrictions" of the EJB 2.0
specification, I'd recommend you guys don't call FOP from an EJB. The
programming restrictions forbid among other things the following:
- Reading or writing of static variables (FOP still does this too often)
There you go giving me heart failure again, Jeremias.
'An enterprise Bean must not use read/write static fields.  Using 
read-only static fields is allowed.  Therefore, it is recommended that 
all static fields in the enterprise bean class be declared *final*.'

Note the "recommended".  I have been very good.  Everything that is 
logically WORM, but which cannot be declared static final because of 
complex initialization requirements, has been removed into singletons 
(which have their own difficulties with EJBs, I gather) where advantage 
can be taken of the "final" modifier for delayed initialization.

- Use of thread synchronization primitives (FOP does that mostly because
  of the static variables)
'An enterprise Bean must not use thread synchronization primitives to 
synchronize execution of multiple instances.'

Note the qualifying clause (phrase?).  This presumably allows their use 
to synchronize the operation of multiple thread within the same 
instance, e.g., the parser and FO tree builder threads.  I certainly 
hope so.

Peter
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Fwd: RE: Fop ALT-Design]

2003-02-06 Thread Peter B. West
Would those of you who are much better versed in these things please 
reply to the outstanding portions of Hans Kappert's letter, most of 
which is included below.  I have already advised him to subscribe to 
fop-user and I have apologised for my delay in replying.

Thanks.
Peter
 (part of) Original Message 
Subject: RE: Fop ALT-Design
Date: Thu, 30 Jan 2003 10:00:41 +0100
From: Hans Kappert <[EMAIL PROTECTED]>
To: 'Peter B. West' <[EMAIL PROTECTED]>

Peter,
Thank you for your quick reply. Of course, you may CC your reply to
fop-dev. Will they mail me or do I have to monitor a mailing list?
I will evaluate release 0.20.5.
Regards,
Hans
 > From: Peter B. West [mailto:[EMAIL PROTECTED]
 >
 > Hans,
 >
 > I would like to CC this reply to fop-dev, with a follow-up there,
 > because the questions you ask will be much better answered by
 > others on
 > the list.  It's true that I have been working in memory consumption
 > problems, but they are only in the front-end of the processing; the
 > generation of the FO tree.
 >
 > I am pleased to say that the other developers are now interested in
 > integrating my work into the mainline redesign effort (provided I get
 > the necessary notes together.)  Because of the areas in which I have
 > been working, I am not as familiar with the details of performance of
 > the existing system as many others, which is why I would like to pass
 > your queries on.
 >
 > This re-integration will have benefits for the next
 > generation of FOP,
 > but notable improvements have already been made, and I
 > suggest that you
 > evaluate the release candidate(s) and final release of 0.20.5.
 >
 > Please let me know if it is OK to post your message with this
 > reply to
 > fop-dev.
 >
 > Peter
 >
 > Hans Kappert wrote:
 > > Dear Peter,
 > >
 > > We are very glad to see that you are busy with improving
 > FOP 's memory
 > > consumption and size-independency.
 > > We now use fop-0.20.4 and see memory consumption upto 80Mb for
 > > converting a 800Kb XML file to a .pdf file (no forward
 > references used).
 > > It also took 15 -20 seconds on a 2Ghz pentium 4 with 256Mb RAM.
 > >
 > > We would like to use fop for reporting/printing purposes in an
 > > application we developed. This application will need to
 > print invoices
 > > in xml format leading to thousands of pages of PDF. What is
 > your advice
 > > on the folling issues?
 > >
 > > - Is it a good idea to split the XML file into smaller bits
 > and issue
 > > multiple FOP requests?
 > > - If so, how big is a good maximum for a server with 1GB
 > internal memory.
 > > - When the FOP handles two requests simultaneously (using
 > two threads),
 > > does the JVM need two times as much memory with the -Xmx
 > option (See
 > > http://xml.apache.org/fop/faq.html#faq-N10117)?
 > >
 > > - If so, can we prevent the servlet runner (Tomcat) from
 > starting more
 > > threads when requests keep coming in?
 > > - Is it a better idea to wait for ALT-Design to become stable?
 > > - If so, do you have an indication when? Or, if hard to tell, what
 > > year   ;-)
 > >
 > > Any response would be of great help..
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: userconfig.xml in servlet

2003-01-31 Thread Peter Menzel
Thanks, but it still does not work.

I use
File userConfigFile = new
File(getServletContext().getRealPath("/WEB-INF/userconfig.xml"));
to set the userconfig file, and this works fine.
but all efforts to set the baseDir didn't work:
I tried:
String pathToFile = getServletContext().getRealPath("/WEB-INF");
(I thought this must work, because the one above works fine)
or
String pathToFile = "file://"+getServletContext().getRealPath("/WEB-INF");
or even
String pathToFile = "file://w:/projekte/owservlet/build/WEB-INF/";
with the following
org.apache.fop.configuration.Configuration.put("baseDir", pathToFile );
but the fop tells me
[ERROR] Failed to read font metrics file
/projekte/owservlet/build/WEB-INF/mtcorsiva.xml : null

whats happening to the "file://w:" part of the path ?

Peter
-- 

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



Re: userconfig.xml in servlet

2003-01-31 Thread Peter Menzel

I cannot specify the basedir/fontbasedir in the userconfig.xml, because I do
not know it.
My web application will be deployed as a war file in some servlet container
from which I do not know anything about directory structures..

Is there another way, to set the font basedir in FOP, or importing the fonts
xml file directly in the servlet to the Options or Driver object? 


-- 

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



userconfig.xml in servlet

2003-01-31 Thread Peter Menzel
Hi everybody!

I want to set FOPs userconfig.xml in the servlet, using these lines:

File userConfigFile = new
File(getServletContext().getResource("/WEB-INF/userconfig.xml").toExternalForm()
);
Otions options = new Options(userConfigFile);

this code compiles, but when running the servlet, I get an error:

[ERROR] Could not load user configuration file
jndi:\localhost\ow\WEB-INF\userco
nfig.xml - error: C:\Programme\Apache Group\Tomcat
4.1\jndi:\localhost\ow\WEB-IN
F\userconfig.xml (Syntax is wrong..)

What can I do?

Another question: I need the userconfig.xml, because I want to load an
additional font into FOP, which I created from an TTF file, and use these lines
in the userconfig.xml:
...


  

...

I put the fonts xml file in the same dir as userconfig.xml. Is the correct?

Nice greetings, 




-- 

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



Driver API

2003-01-24 Thread Peter Menzel
Hi

Where can I find a (javadoc) API for the fop Driver class ?

Peter
-- 

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



Driver in Servlet

2003-01-20 Thread Peter Menzel
Hi fop users!

I have a servlet, which gets data from a sql database, puts it in xml and then
i transform the xml to xsl:fo and use the fop Driver to transform it to pdf and
send the pdf to the browser, using the following code snippet:

public void doGet(HttpServletRequest request, HttpServletResponse response) {

  Transformer transformer;
  Document myxml;
  ...
  Driver driver = new Driver();
  driver.setOutputStream(response.getOutputStream());
  driver.setRenderer(Driver.RENDER_PDF);
  response.setContentType("application/pdf");
  transformer.transform(new DOMSource(myxml),new
SAXResult(driver.getContentHandler()));
}

The transformer is equipped with the xml->xsl:fo stylesheet.

So all works fine, but I thought about speed issues:

in every doGet(..) call a new driver is created, and I think that is to slow
for a large number of users accessing the servlet.
But when i put the driver as a global variable in the servlet or maybe
servlet-context, what happens when two or more users want to access the driver?


bye, Peter

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



OpenType Fonts

2003-01-08 Thread Peter Sparkes
Hi

Can FOP use OpenType Fonts

Thanks

Peter Sparkes
DIDM
[EMAIL PROTECTED]
UK (0)1237 425207 


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



Fonts in SVG

2003-01-08 Thread Peter Sparkes
Hi,

In my application I need to embed the fonts that I am using in the PDF. I
can do this for the text elements of my document, but with the SVG element I
have the following problem:

1. The SVG always uses Helvetica when I want to use Trade Gothic as in the
rest of the document

Help Please

Peter Sparkes
DIDM
[EMAIL PROTECTED]
UK (0)1237 425207



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



Re: fop.jar with patches

2003-01-03 Thread Peter B. West
Joerg Pietschmann wrote:
Spam all of the Apache federation's lists with messages how much
advantages SubVersion has over CVS. :-)
Seriously, there are rumors that a SubVersion repository will be set
up as soon as it is considered "ready for production". See
 http://subversion.tigris.org
for more info. I'm sure FOP will move SubVersion soon after the
repository is up (committers: any vetoes :-)?
J.Pietschmann
Joerg,
I'm deeply conservative about critical software like the repository. 
However, when (and if) the Apache repository goes to SubVersion, FOP may 
be obliged to go with it.  If there is a choice, I would be strongly in 
favour of staying with CVS for at least six months after other projects 
had gone over, so that they can suffer the pain.

I would say that "ready for production" means that significant codebases 
have been maintained in SubVersion for long enough for the wrinkles to 
have appeared and been ironed out.  Apache should *not* be one of the 
"significant codebases" - it's just too important.  Apache projects and 
subprojects should not be testing environments for SubVerion; they have 
too much to do in being testing environments for themselves.

How long was CVS around before gaining the level of acceptance it now 
enjoys?

Peter
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FOP : OutOfMemoryError with a big XML file

2002-12-26 Thread Peter Sparkes
And thank from me; I can now do the whole file in one go.

Peter

-Original Message-
From: Jean-Philippe VALENTIN [mailto:[EMAIL PROTECTED]
Sent: 23 December 2002 09:13
To: 'Oleg Tkachenko '; '[EMAIL PROTECTED] '
Subject: RE: FOP : OutOfMemoryError with a big XML file


Thanks for your response !

I have fixed the parameter -Xmx250m on the command file fop.bat to limit the
max use of memory of the JVM at 250Mo and the parsing of all the document is
OK.

Jean-Philippe

-Message d'origine-
De: Oleg Tkachenko
A: [EMAIL PROTECTED]
Date: 22/12/02 12:43
Objet: Re: FOP : OutOfMemoryError with a big XML file

Peter Sparkes wrote:

> Please, how do you "Increase memory settings of the JVM." on a Windows
> system

See http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java.html
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


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



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



RE: FOP : OutOfMemoryError with a big XML file

2002-12-21 Thread Peter Sparkes
Hi

Please, how do you "Increase memory settings of the JVM." on a Windows
system

Peter

-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Sent: 21 December 2002 20:36
To: [EMAIL PROTECTED]
Subject: Re: FOP : OutOfMemoryError with a big XML file


Jean-Philippe VALENTIN wrote:
> Hi,
>
> When I want transform my XML + XSL file I have got this error :
> ...
> [INFO] [28]
> Exception in thread "main" java.lang.OutOfMemoryError
>
> (PS: I have 256Mo of RAM with 631Mo of limit and the error appear at 260Mo
> of RAM use)
>
> When I reduce the size of the XML file, it's work correctly.
>
> What is the problem ?
That's faq, see http://xml.apache.org/fop/faq.html#faq-N1011A

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


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

2002-12-17 Thread Peter Sparkes



font-weight, font-style, and 
font-size are authomaticcaly inherited, 
They only have to be included when their values are changed. Remove 
all
"font-weight="inherit" font-style="inherit" 
font-size="inherit" and your fo works OK
 
Peter 


  -Original Message-From: Henrik Olsson 
  [mailto:[EMAIL PROTECTED]Sent: 17 December 2002 
  12:57To: [EMAIL PROTECTED]Subject: Font 
  problemHi im trying to 
  use inherit in attributes font-weight, font-style, as I understand it's 
  supposed to be allowed. But im 
  getting this error when I'm tryuing to render anything and the wrong font 
  turns up [ERROR] defaulted font to 
  any,normal,normal [ERROR] unknown font 
  Times,inherit,inherit so defaulted font to any Is this a bug or am I doing some thing wrong? 
  Example:   

   
   
   
 Calc fact 
 


Re: Help CVS HEAD and Maintenance

2002-12-13 Thread Peter B. West
marco scotoni wrote:
Hi,
i'm trying to install CVS Head but i got ever some servlet exception,
 
i dunno the exact way to install CVS...and compiling from maintenance 
branch...
 
plz help 
 
Marco
Marco,
What *exactly* have you done so far?  And can you please fix the date 
and time on your computer?

Peter
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with comma ","

2002-12-12 Thread Peter B. West
Stefano Barella wrote:
The correct XML file.

Stefano,
Correct indeed.  There are no commas in the file at all; or at least 
none that Mozilla could find.

Peter
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with comma ","

2002-12-12 Thread Peter B. West
Stefano Barella wrote:
Thank u,
my problem was I have a String like this one:
-0,79 *
The problem is the black because now I put int the xml
the following string:
-0,79*
Stefano,
Can you provide a snippet of the fo text in which this occurs?
Peter
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Suppressing console-output

2002-12-07 Thread Peter B. West
Marcus,
With the current CVS version of the code tagged 'fop-0_20_2-maintain', 
the -q switch suppresses this output.

Peter
M.Weiss wrote:
Hi everybody,
does anyone know, how I may suppress the console-output, written during the
rendering-process in fop. Lines like:
--
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
 [1]
Parsing of document complete, stopping renderer
Initial heap size: 13599Kb
Current heap size: 12928Kb
Total memory used: -671Kb
  Memory use is indicative; no GC was performed
  These figures should not be used comparatively
Total time used: 60ms
Pages rendererd: 1
Avg render time: 60ms/page

--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
"Lord, to whom shall we go?"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >