FOP-GUI

2002-03-06 Thread Adnan Zelkanovic

Hello volks,

does anybody know if there is a FOP-GUI on the internet created by someone?
Because, command line sucks.

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




[SUGGESTION] Java GUI for FOP

2002-03-06 Thread Matthias Fischer

It seems that Cocoon has certain limitations if compared to FOP used as a
stand-alone engine. Having retreated to the latter, the question has arisen
how to trigger FOP. Neither I nor my colleagues are Java programmers.
Therefore, we would have to trigger FOP via the DOS prompt by means of a VB
script or something like that. Not very nice, indeed.

Suggestion: It seems reasonable to me that FOP comes with a ready-to-use
Java GUI. Does anybody agree?


Regards

Matthias


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




Re: [SUGGESTION] Java GUI for FOP

2002-03-06 Thread Nicola Ken Barozzi

From: "Matthias Fischer" <[EMAIL PROTECTED]>

> It seems that Cocoon has certain limitations if compared to FOP used as a
> stand-alone engine. 

? Could you please explain this to me?

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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




RE: [SUGGESTION] Java GUI for FOP

2002-03-06 Thread Michiel Verhoef

AFAIK The fop version included in Cocoon is not the most recent one.
But of course it is possible to replace the one supplied with Cocoon
yourself.

Michiel

$ -Original Message-
$ From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
$ Sent: woensdag 6 maart 2002 10:06
$ To: [EMAIL PROTECTED]
$ Subject: Re: [SUGGESTION] Java GUI for FOP
$ 
$ 
$ From: "Matthias Fischer" <[EMAIL PROTECTED]>
$ 
$ > It seems that Cocoon has certain limitations if compared to 
$ FOP used as a
$ > stand-alone engine. 
$ 
$ ? Could you please explain this to me?
$ 
$ -- 
$ Nicola Ken Barozzi   [EMAIL PROTECTED]
$ - verba volant, scripta manent -
$(discussions get forgotten, just code remains)
$ -
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, email: [EMAIL PROTECTED]
$ 

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




DO NOT REPLY [Bug 6904] New: - problem with IE?

2002-03-06 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6904

problem with IE?

   Summary: problem with IE?
   Product: Fop
   Version: 0.20.2
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Critical
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi,

when i have rendered a pdf-file, i send it back to my JSP-page through a custom-
tag. The page then reloads 3 times?? and the whole process of rendering the 
file is also done 3 times. I use IE5.5. I know that apparently there are some 
problems with IE, but does anyone know of a cure for this problem. The user has 
to wait a long time now, before seeing the file. (I use the code from the 
example classFopServlet.java to send the pdf to my page)

Thanks in advance for an answer asap

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




Re: AW: Outputstream with PDF from FOP is going cutted

2002-03-06 Thread Cyril Rognon

It looks like you have some illegal character in your String. At least, 
illegal from  the point of view of the code that reads/uses this String.

What plateform/encoding do you use ?

You said you want to put the binary date into a DB field. Do you use some 
outpustream that can hold these bytes ?

My last comment wil be : This doesn't look like a Fop question but rather 
like a Java Byte Stream issue.

I hope this helps

Cyril

At 09:11 06/03/2002 +0100, you wrote:
>Thanks for your answer, but that doesn't help. The same problem I have, when
>I give
>up this outputStream to the console. There it seems to be uncutted, but when
>I mark
>the whole String and copy it in the notepad, it will be cutted.
>
>Regards
>Priska


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




RE: FO -> PDF works with Netscape, not with IE

2002-03-06 Thread Joerg Pietschmann

"Katiyar, Bhawana" <[EMAIL PROTECTED]> wrote:
> I am using IE 5.5 SP2. My request for a PDF document is being sent twice.

This is a FAQ, you'll find answers in the archives.

A summary:
First, it is important that IEx takes clues how to handle the
content from the URL even before it requests the content.
Unfortunately the detailed behaviour varies not only between
major versions but also between individual builds of which there
are zillions floating around.
A good approach is to use a simple URL ending in .pdf, for example
 http://my.server/some/path/to/document.pdf
It should be possible to configure any servlet to react on such
URLs properly.
If for some reason parameters has to be added, the complete URL
should not end with a string that could be a registered file
extension, or it should end in .pdf
Do not use
  http://my.server/generator.pdf?image=stuff.jpg
If necessary, add a dummy parameter at the end
  http://my.server/generator.pdf?image=stuff.jpg&dummy=.pdf

If the base URL without parameters must not end in .pdf, avoid
other registered extensions. The following seems to confuse
practically all IEx versions because .xml is registered by some
application (usually IEx itself) to be handled, causing IEx to
request the content at least twice
  http://my.server/generator.xml?image=stuff.jpg
Whether .asp work may depend on whether .asp is registered locally,
it may work on some clients as expected and differently on machines
which have IIS installed.
Adding a dummy parameter may help:
  http://my.server/generator.xml?dummy=.pdf
but it has been reported some builds of IEx are still confused.
The following may be handled more consistently:
  http://my.server/generator?dummy=.pdf
Note that the base URl does not have any extension.

Furthermore, it is important to add a proper content-type header
  response.setContentType("application/pdf");
as all servlet examples do. A content-disposition may also be of
some use, especially if it expected that the client wants to store
the generated PDF instead if viewing it:
  response.addHeader("Content-Disposition","inline;filename=report.pdf");
or 
  response.setHeader("Content-Disposition","attachment;filename=report.pdf");

Fiddling with the cache settings and expiration times could also
help. By default, servlet engines make sure servlet output is not
cached by browsers. The HTTP spec
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html 
may be of some help here.

All in all, some experiments are needed to discover what works
with the actual IEx builds on the client and is still compatible
with the servlet architecture and requirements.

Last note: messages on this thread tend to aquire unnecessary quotations,
the last had *six* recursively quoted old messages appended. This
really messes up the digest. Get some sense guys. Inform yourself about
*basic* netiquette.

Regards
J.Pietschmann

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




FOP vs. FOP+Cocoon

2002-03-06 Thread Matthias Fischer

Yes, despite tenacious tentatives we did not succeed in getting the
following to work properly in FOP 20.1 + Cocoon 2.0 (PDF output):
- hyphenation DE
- font embedding
- Unicode output
The same features could be translated into PDFs without any problems with
FOP as a stand-alone solution.

Replies and suggestions from the lists were considered.
If we are mistaken in our assumption, that these features are not yet
completely implemented in Cocoon 2.0, we would be happy.


Matthias



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




RE: FOP vs. FOP+Cocoon

2002-03-06 Thread Morrison, John

If you could help I'm sure the Cocoon community would be pleased to
add any missing functionality.

J.

> -Original Message-
> From: Matthias Fischer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 06 March 2002 9:53 am
> To: [EMAIL PROTECTED]; Nicola Ken Barozzi
> Subject: FOP vs. FOP+Cocoon
> 
> 
> Yes, despite tenacious tentatives we did not succeed in getting the
> following to work properly in FOP 20.1 + Cocoon 2.0 (PDF output):
> - hyphenation DE
> - font embedding
> - Unicode output
> The same features could be translated into PDFs without any 
> problems with
> FOP as a stand-alone solution.
> 
> Replies and suggestions from the lists were considered.
> If we are mistaken in our assumption, that these features are not yet
> completely implemented in Cocoon 2.0, we would be happy.
> 
> 
> Matthias
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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




Re: pb with jpegs

2002-03-06 Thread Sven Kitschke

fred redf wrote:

> Hi all,
> I have a prob with *some* jpeg images that are
> replaced by a black square inside the pdf. I looked
> for differences in photoshop, but i could not figure
> what is the difference. That problem did not occured
> with older
> versions of fop.
> Anyone has a clue?
> Thanks in advance,
> Fred.

I have played around with this.
After a simple open and save with irfanview
this problem disappears. The resulting file
is slightly different. The information dialog
of irfanview did not report some differences
(despite of the file length) to the old image.

So far, i have no other idea than
that jimi may have some problems with some
information, encodings, compression ...
provided/used in your jpeg.

Ciao, Sven.


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




RE: FOP vs. FOP+Cocoon

2002-03-06 Thread Matthias Fischer

I don't think missing features are a problem in themselves. However, yours
is the first definitive assertion from a developer that those features
mentioned by me actually don't exist.

I'm sure my company will continue to use Cocoon with its - not too extensive
and, by now, known to us - limitations for Web solutions, and FOP without
Cocoon for mere print projects. For these projects it would be really
user-friendly to have a FOP GUI. (For this reason I wrote to the FOP dev
list, not to the Cocoon list.)

I reckon such an interface would not reduce the merit of Cocoon or Cocoon
programmers for those (numerous) features that have been implemented.


Matthias


-Original Message-
From: Morrison, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 11:04 AM
To: '[EMAIL PROTECTED]'
Subject: RE: FOP vs. FOP+Cocoon


If you could help I'm sure the Cocoon community would be pleased to
add any missing functionality.

J.

> -Original Message-
> From: Matthias Fischer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 06 March 2002 9:53 am
> To: [EMAIL PROTECTED]; Nicola Ken Barozzi
> Subject: FOP vs. FOP+Cocoon
>
>
> Yes, despite tenacious tentatives we did not succeed in getting the
> following to work properly in FOP 20.1 + Cocoon 2.0 (PDF output):
> - hyphenation DE
> - font embedding
> - Unicode output
> The same features could be translated into PDFs without any
> problems with
> FOP as a stand-alone solution.
>
> Replies and suggestions from the lists were considered.
> If we are mistaken in our assumption, that these features are not yet
> completely implemented in Cocoon 2.0, we would be happy.
>
>
> Matthias
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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


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




RE: FOP vs. FOP+Cocoon

2002-03-06 Thread Morrison, John

Ha - I didn't *say* that there *were* any missing features, I just said
if there *were* we'd be happy to add them.  Please don't read something
I didn't write...

What limitations are you refering too?  I'm sure any suggestions would
be welcome (though if Cocoon specific we should change lists...).

J.

> -Original Message-
> From: Matthias Fischer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 06 March 2002 10:28 am
> To: [EMAIL PROTECTED]
> Subject: RE: FOP vs. FOP+Cocoon
> 
> 
> I don't think missing features are a problem in themselves. 
> However, yours
> is the first definitive assertion from a developer that those features
> mentioned by me actually don't exist.
> 
> I'm sure my company will continue to use Cocoon with its - 
> not too extensive
> and, by now, known to us - limitations for Web solutions, and 
> FOP without
> Cocoon for mere print projects. For these projects it would be really
> user-friendly to have a FOP GUI. (For this reason I wrote to 
> the FOP dev
> list, not to the Cocoon list.)
> 
> I reckon such an interface would not reduce the merit of 
> Cocoon or Cocoon
> programmers for those (numerous) features that have been implemented.
> 
> 
> Matthias
> 
> 
> -Original Message-
> From: Morrison, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 11:04 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: FOP vs. FOP+Cocoon
> 
> 
> If you could help I'm sure the Cocoon community would be pleased to
> add any missing functionality.
> 
> J.
> 
> > -Original Message-
> > From: Matthias Fischer [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 06 March 2002 9:53 am
> > To: [EMAIL PROTECTED]; Nicola Ken Barozzi
> > Subject: FOP vs. FOP+Cocoon
> >
> >
> > Yes, despite tenacious tentatives we did not succeed in getting the
> > following to work properly in FOP 20.1 + Cocoon 2.0 (PDF output):
> > - hyphenation DE
> > - font embedding
> > - Unicode output
> > The same features could be translated into PDFs without any
> > problems with
> > FOP as a stand-alone solution.
> >
> > Replies and suggestions from the lists were considered.
> > If we are mistaken in our assumption, that these features 
> are not yet
> > completely implemented in Cocoon 2.0, we would be happy.
> >
> >
> > Matthias
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> 
> 
> ==
> =
> Information in this email and any attachments are 
> confidential, and may
> not be copied or used by anyone other than the addressee, nor 
> disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment 
> through the use
> of this email.
> 
> Experian Limited (registration number 653331).
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




RE: FOP vs. FOP+Cocoon

2002-03-06 Thread Matthias Fischer

Sorry, I didn't mean to misinterprete your words - and thanks for your quick
responses.

I'll change to the Cocoon user list (I would have to subscribe to the Cocoon
dev list sepcifically to discuss this topic with you...)

Matthias


-Original Message-
From: Morrison, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 11:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: FOP vs. FOP+Cocoon


Ha - I didn't *say* that there *were* any missing features, I just said
if there *were* we'd be happy to add them.  Please don't read something
I didn't write...

What limitations are you refering too?  I'm sure any suggestions would
be welcome (though if Cocoon specific we should change lists...).

J.


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




DO NOT REPLY [Bug 6912] New: - Wrong property used in Driver.getParserClassName()

2002-03-06 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6912

Wrong property used in Driver.getParserClassName()

   Summary: Wrong property used in Driver.getParserClassName()
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Since FOP uses XMLReader interface not Parser, the property should be
org.xml.sax.driver (not org.xml.sax.parser)
see documentation for XMLReaderFactory in JDK 1.4

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




Re: [SUGGESTION] Java GUI for FOP

2002-03-06 Thread Nicola Ken Barozzi

From: "Michiel Verhoef" <[EMAIL PROTECTED]>



> AFAIK The fop version included in Cocoon is not the most recent one.
> But of course it is possible to replace the one supplied with Cocoon
> yourself.

Current CVS version uses fop-0.20.3rc.jar .

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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




Re: Outputstream with PDF from FOP is going cutted

2002-03-06 Thread Joerg Pietschmann

"Steiner, Priska" <[EMAIL PROTECTED]> wrote:
> I have a strange problem. I tried to generate with Fop0.20.2 a pdf. I would
> like for output an outputStream instead of a fileOutputStream. This works
> fine, but when I tried to insert this Stream as a byte[] in a DB, the
> content will be cutted.

PDF may contain characters which DBs usually deem to be illegal
in text fields (CHAR or VARCHAR), most notably ASCII NUL (U+).
Try to store the PDF in as BLOB. Notepad will also truncate data
copied from the clipboard at NUL characters.

HTH
J.Pietschmann

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




RE: Example extension

2002-03-06 Thread Adrian Edwards

Thanks Keiron.  Look forward to seeing the example.

Can you please announce the commit on this thread for completeness of
the archive?

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 5 March 2002 9:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Example extension


Hi,

I will note the type of extension you are considering.

I am going to commit an example extension of a different type to the cvs

trunk. This works in a slightly different way but demonstrates the
concept.



On 2002.03.04 03:00 Adrian Edwards wrote:
> Hi Keiron,
> 
> Fair question, although it is not so much which classes to modify that
I
> am having trouble with, but just the mechanics of constructing and
> referencing an extension jar file that I would like to see.  Perhaps
it
> is my lack of experience with the Apache project, but the current
> documentation appears to assume some knowledge that I just do not
have.
> I am confident that seeing _any_ example extension at all, regardless
of
> its purpose, would clear up my confusion.
> 
> There are a number of extensions I am considering, but each of them
> shares the common requirement of leveraging PDF functionality
> (understandably) not supported by XSL-FO.  So the basic model is that
> some custom elements in the FO tree need to produce layout objects
that
> result in some specific PDF syntax.
> 
> I guess the simplest example would be that we would like something
like:
> 
>script="app.execMenuItem('AcroSrch:Query');"
>   >Search
> 
> to result in a text box referencing the following PDF action:
> 
>   << /S /JavaScript /JS (app.execMenuItem("AcroSrch:Query");) >>
> 
> Pretty simple stuff, and I can easily follow the processing of
> fo:basic-link to create the code I need, but how do I package that
code
> (or any other) so that FOP recognises script-link and processes it
with
> my code?
> 
> I look forward to your response (and to the "new way of doing things"
> ;-)
> 
> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 1 March 2002 8:13 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Example extension
> 
> 
> Hi,
> 
> It really depends on what type of extension you want to do.
> This is an area that will change and become much easier in the future
> (in
> theory). Examples and help will be available for the new way of doing
> things.
> 
> Could you tell us what you want your extension to do so that we have
> more
> ideas on what type of extensions people are thinking about. Then we
can
> work out how they should be handled if possible.
> 
> So to answer your question, there are some extensions but it really
> depends on what you want to do.
> 
> On 2002.03.01 08:33 Adrian Edwards wrote:
> > Hi fop-dev,
> >
> > Has anyone written a simple(ish) FOP extension that they would be
> > willing to share with the list (or even just me) as an example?  I'm
> > talking full jar file here.  The lack of examples (other than the
> quite
> > complicated SVG extension) in the docs and on the mailing lists is
> quite
> > frustrating.
> >
> > We don't have to go through the work of writing it up for
publication
> > (yet).  Just seeing the mechanics of someone else's jar would be
great
> > for beginners.
> >
> > Thanks in advance.

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


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




DO NOT REPLY [Bug 6918] New: - reference-orientation has no effect

2002-03-06 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6918

reference-orientation has no effect

   Summary: reference-orientation has no effect
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: page-master/layout
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


How can I rotate the Text in a  ?

The Attribut reference-orientation="-90" has no effect ...

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




FOP embedding

2002-03-06 Thread Carlos Daniel Schafer

Hi!

I saw those examples the FOP
I have problem with transformer XML to PDF from a servlet. How I to do?



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




vertical line between column and column

2002-03-06 Thread Yuko Nakayama
Hello.

My FO have 2 columns in region-body.(column-gap is 0.25in)
I want to draw vertical line, between column and column.
Please tell me how to draw a vertical line.

PS:


thanks.

Yuko Nakayama



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


Re: vertical line between column and column

2002-03-06 Thread Jean-Francois Selber
Hello,
I have a table and I want to vertical align and horrizontal align text
inside
How can I do that?

thanks
jf




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


Sorry, Send mail agein(vertical line between column and column)

2002-03-06 Thread Yuko Nakayama
Hello.

Sorry, I Send a mail agein.

My FO have 2 columns in region-body.(column-gap is 0.25in)
I want to draw vertical line, between column and column.
Please tell me how to draw a vertical line.

PS:
vertical line's height equals region-body's height.
Region-body's height changes dynamically.

thanks.

Yuko Nakayama




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


Re: FOP-GUI

2002-03-06 Thread Mark Bitz

an FOP-GUI that would do what? Can you be more descriptive.
- Original Message -
From: "Adnan Zelkanovic" <[EMAIL PROTECTED]>
To: "FOP DEV" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 3:56 AM
Subject: FOP-GUI


> Hello volks,
>
> does anybody know if there is a FOP-GUI on the internet created by
someone?
> Because, command line sucks.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>

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




Re: EBCDIC os390

2002-03-06 Thread Markus Bernhardt


Hi Jason,
I think this solution will work.
Hope this will make it at the end to the official package.
But, are you sure the encoding has to be or may be dynamic ?
AFAIK pdf is a binary format. The content can be divided in two parts,
the tags and the data. The tags are always binary the same. No character
higher than 0x7f is used in the tags. So every ASCII encoding like
US-ASCII
or ISO-5589-1 will work perfect. Letting somebody set the encoding
to a non-ASCII locale will kill the pdf-file.
How encoding is handled in the data part I don't know.
Markus
 
[EMAIL PROTECTED] wrote:
I now have FOP working on our OS/390.
My solution was to add a class called PDFConstants that only held a
static
string variable for the encoding type.
All places in the code where there was a
str.getBytes();
I replaced with
try {
str.getBytes(PDFConstants.Encoding);
} catch ( UnsupportedEncodingException ue ) {
str.getBytes();
}
If there is a better way, please holler.
If this is an ok way to fix it, how do post the patches?
(never done this before on a public project like this )
Thanks, Jason
-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:16 AM
To: [EMAIL PROTECTED]
Subject: Re: EBCDIC os390
> I'll apologize upfront as I think my question is really for the users
list
> but,
> I was unable to find how to subscribe to it.
No, I think you're in the right place.
> I'm developing under Websphere 4.0 and have had success in using FOP
.20
> on my NT machines. I take that ear file and install it on our os390
> Websphere
> server and I get back garbage. If I convert the garbage from EBCDIC
to
ASCII
> with a tool, it appears the uncompressed streams convert fine. The
document
> still does not work. How can I make FOP ensure that all of it's temporary
> streams
> use the proper encoding? The following snippet is how I'm using FOP.
Ben Fowler posted a similar mail two days ago.
http://marc.theaimsgroup.com/?l=fop-dev&m=101480100804070&w=2
You're in the same boat. I think it would be good if you one of you
two
could really track down the problem, create a patch for it and post
it
to the list for inclusion into FOP along with some documentation
(guidelines) what has to be done to ensure non-ascii-environment
compatibility in FOP for the future.
Cheers
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


begin:vcard 
n:Bernhardt;Markus
tel;cell:0171-5770462
tel;fax:089-420903-20
tel;home:089-6378949
tel;work:089-420903-14
x-mozilla-html:FALSE
url:www.swsgmbh.de
org:Software Service Wulf Schupp GmbH;Spieljoch
adr:;;Spieljochstr. 34;München;;81825;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Entwicklungsleiter
note;quoted-printable:[dF]Quisam=0D=0Awww.discordian-Front.de=0D=0AHail Eris !!!=0D=0AHappy Frag !!!
fn:Markus Bernhardt
end:vcard



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


RE: FOP embedding

2002-03-06 Thread Jim Urban

Can you please be more specific.  Do you want to use FOP in a servlet to
produce a PDF from  dynamically created XML and return the PDF to the
browser to display?  Are you having problems writing the Java code to do
this, or are you having problems with FOP not working?

Jim
> -Original Message-
> From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: FOP embedding
>
>
> Hi!
>
> I saw those examples the FOP
> I have problem with transformer XML to PDF from a servlet. How I to do?
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: Sorry, Send mail agein(vertical line between column and column)

2002-03-06 Thread Mark Bitz
The only way I got this to work was to insert an image of a vertical line
between the 2 column. So actually I made it 3 columns with the middle column
being really small. It's a quick fix and it worked for me.

- Original Message -
From: "Yuko Nakayama" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 10:52 AM
Subject: Sorry, Send mail agein(vertical line between column and column)


> Hello.
>
> Sorry, I Send a mail agein.
>
> My FO have 2 columns in region-body.(column-gap is 0.25in)
> I want to draw vertical line, between column and column.
> Please tell me how to draw a vertical line.
>
> PS:
> vertical line's height equals region-body's height.
> Region-body's height changes dynamically.
>
> thanks.
>
> Yuko Nakayama
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>

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


Bug report.

2002-03-06 Thread Olivier Rossel

I try to generate a PDF from this FO:
--- cut here ---


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

 
  
   
   
   
  
 

 
  
  
  
   Foo   
  
 

--- cut here ---


My command line is:
java -cp 
/opt/COCOON/WEB-INF/lib/batik-libs.jar:/opt/COCOON/WEB-INF/lib/xerces-1.4.4.jar:/opt/COCOON/WEB-INF/lib/avalon-framework-4.0.jar:/opt/COCOON/WEB-INF/lib/logkit-1.0.jar:/opt/COCOON/WEB-INF/lib/fop.jar
 
org.apache.fop.apps.Fop ~/hello.fo file.pdf

My version of FOP is 0.20.3rc2.

It seems that FOP does not like AT ALL my file. It begins to generate a 
HUGE PDF file, and never ends.


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




RE: FOP embedding

2002-03-06 Thread Carlos Daniel Schafer

I'm sorry

Do you want to use FOP in a servlet to produce a PDF from
dynamically created XML and return the PDF to the
browser to display?  
  
 Yes

I have this files (FOP).

I have code this servlet with created XML and I desidere dynamically
return the PDF.

Do you want send this servlet for look?



> -Mensaje original-
> De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> Enviado el:   miércoles, 06 de marzo de 2002 13:05
> Para: [EMAIL PROTECTED]
> Asunto:   RE: FOP embedding
> 
> Can you please be more specific.  Do you want to use FOP in a servlet to
produce a PDF from  dynamically created XML and return the PDF to
the
browser to display?  Are you having problems writing the Java code
to do
> this, or are you having problems with FOP not working?
> 
> Jim
> > -Original Message-
> > From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 9:34 AM
> > To: [EMAIL PROTECTED]
> > Subject: FOP embedding
> >
> >
> > Hi!
> >
> > I saw those examples the FOP
> > I have problem with transformer XML to PDF from a servlet. How I to do?
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




RE: Bug report.

2002-03-06 Thread Dunning, John

>From a quick glance, it appears that your page-height is not enough for your
content ( page-height=28mm, block height=3cm, plus your margins, padding,
region-*, etc.)

HTH,
J

-Original Message-
From: Olivier Rossel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 11:28 AM
To: [EMAIL PROTECTED]
Subject: Bug report.


I try to generate a PDF from this FO:
--- cut here ---


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

 
  
   
   
   
  
 

 
  
  
  
   Foo   
  
 

--- cut here ---


My command line is:
java -cp 
/opt/COCOON/WEB-INF/lib/batik-libs.jar:/opt/COCOON/WEB-INF/lib/xerces-1.4.4.
jar:/opt/COCOON/WEB-INF/lib/avalon-framework-4.0.jar:/opt/COCOON/WEB-INF/lib
/logkit-1.0.jar:/opt/COCOON/WEB-INF/lib/fop.jar 
org.apache.fop.apps.Fop ~/hello.fo file.pdf

My version of FOP is 0.20.3rc2.

It seems that FOP does not like AT ALL my file. It begins to generate a 
HUGE PDF file, and never ends.


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

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




Re: Bug report.

2002-03-06 Thread Olivier Rossel

Olivier Rossel wrote:

> I try to generate a PDF from this FO:
> --- cut here ---
> 
>
> http://www.w3.org/1999/XSL/Format";>
>
> 
>   page-height="28mm" margin-left="1cm" margin-right="1cm" 
> margin-top="1cm" margin-bottom="1cm">
>   
>   
>   
>  
> 
>
> 
>  
>  
>  
>   Foo
> 
> 
> --- cut here ---
>
>
> My command line is:
> java -cp 
> 
>/opt/COCOON/WEB-INF/lib/batik-libs.jar:/opt/COCOON/WEB-INF/lib/xerces-1.4.4.jar:/opt/COCOON/WEB-INF/lib/avalon-framework-4.0.jar:/opt/COCOON/WEB-INF/lib/logkit-1.0.jar:/opt/COCOON/WEB-INF/lib/fop.jar
> 
> org.apache.fop.apps.Fop ~/hello.fo file.pdf
>
> My version of FOP is 0.20.3rc2.
>
> It seems that FOP does not like AT ALL my file. It begins to generate 
> a HUGE PDF file, and never ends.

I wonder if the static-content does REQUIRE a block inside it.
I wonder if static content is mandatory in the FO managed bo FOP.



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




FAQ Answers please

2002-03-06 Thread alex

Hi folks,

I haven't been keeping track of the mailing list recently.

Can anyone capture any important questions and answers which I should put 
into the FAQ?

Alex


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




Re: pb with jpegs

2002-03-06 Thread fred redf

Thank you very much Sven. I'm now looking for some
massive solution to transform my hundreds of jpegs
If someone has an idea of a commandline/scriptable
tool
Thanks.
Fred.

--- Sven Kitschke <[EMAIL PROTECTED]> a écrit : > fred redf
wrote:
> 
> > Hi all,
> > I have a prob with *some* jpeg images that are
> > replaced by a black square inside the pdf. I
> looked
> > for differences in photoshop, but i could not
> figure
> > what is the difference. That problem did not
> occured
> > with older
> > versions of fop.
> > Anyone has a clue?
> > Thanks in advance,
> > Fred.
> 
> I have played around with this.
> After a simple open and save with irfanview
> this problem disappears. The resulting file
> is slightly different. The information dialog
> of irfanview did not report some differences
> (despite of the file length) to the old image.
> 
> So far, i have no other idea than
> that jimi may have some problems with some
> information, encodings, compression ...
> provided/used in your jpeg.
> 
> Ciao, Sven.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: FOP embedding

2002-03-06 Thread Jim Urban

public void doPost(HttpServletRequest req, HttpServletResponse res)
 throws ServletException
{
... your code
try
{
String xmlString = new String(""); // your xml
TransformerFactory tFactory = TransformerFactory.newInstance();
File   foFile= new File("foXslFile.xsl");
Source foXslSource   = new StreamSource(foFile);
Transformer pdfTransformer = tFactory.newTransformer(foXslSource);
Writer out = new StringWriter();
Source xmlSource = new StreamSource(new StringReader(xmlString));
pdfTransformer.transform(xmlSource, new StreamResult(out));
out.close();
String fopstring = out.toString();
InputSource foSource = new InputSource(new StringReader(fopstring));
renderFO(foSource, req, res, inPdf);
ByteArrayOutputStream baout = new ByteArrayOutputStream();
Driver driver = new Driver(foSource , baout);
res.setContentType("application/pdf");
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
byte[] content = baout.toByteArray();
res.setContentLength(content.length);   // This keeps IE happy
res.getOutputStream().write(content);
res.getOutputStream().flush();
res.flushBuffer();
}
catch (Exception e)
{
System.err.println("Exception in init:  " + e.toString());
e.printStackTrace();
}
... more code
}

> -Original Message-
> From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 10:28 AM
> To: [EMAIL PROTECTED]
> Subject: RE: FOP embedding
>
>
> I'm sorry
>
>   Do you want to use FOP in a servlet to produce a PDF from
> dynamically created XML and return the PDF to the
> browser to display?
>
>  Yes
>
>   I have this files (FOP).
>
>   I have code this servlet with created XML and I desidere dynamically
> return the PDF.
>
>   Do you want send this servlet for look?
>
>
>
> > -Mensaje original-
> > De: Jim Urban [SMTP:[EMAIL PROTECTED]]
> > Enviado el: miércoles, 06 de marzo de 2002 13:05
> > Para:   [EMAIL PROTECTED]
> > Asunto: RE: FOP embedding
> >
> > Can you please be more specific.  Do you want to use FOP in a servlet to
>   produce a PDF from  dynamically created XML and return the PDF to
> the
>   browser to display?  Are you having problems writing the Java code
> to do
> > this, or are you having problems with FOP not working?
> >
> > Jim
> > > -Original Message-
> > > From: Carlos Daniel Schafer
[mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 9:34 AM
> > To: [EMAIL PROTECTED]
> > Subject: FOP embedding
> >
> >
> > Hi!
> >
> > I saw those examples the FOP
> > I have problem with transformer XML to PDF from a servlet. How I to do?
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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



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




RE: FOP embedding

2002-03-06 Thread Carlos Daniel Schafer

Sorry

Is this renderFO a method(param1, param2, param3, param4)?
Because, I don't found.

So, what is import libraries but the servlet?



> -Mensaje original-
> De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> Enviado el:   miércoles, 06 de marzo de 2002 13:52
> Para: [EMAIL PROTECTED]
> Asunto:   RE: FOP embedding
> 
> public void doPost(HttpServletRequest req, HttpServletResponse res)
>throws ServletException
> {
>   ... your code
>   try
>   {
>   String xmlString = new String(""); // your xml
>   TransformerFactory tFactory =
> TransformerFactory.newInstance();
>   File   foFile= new File("foXslFile.xsl");
>   Source foXslSource   = new StreamSource(foFile);
>   Transformer pdfTransformer =
> tFactory.newTransformer(foXslSource);
>   Writer out = new StringWriter();
>   Source xmlSource = new StreamSource(new
> StringReader(xmlString));
>   pdfTransformer.transform(xmlSource, new StreamResult(out));
>   out.close();
>   String fopstring = out.toString();
>   InputSource foSource = new InputSource(new
> StringReader(fopstring));
>   renderFO(foSource, req, res, inPdf);
>   ByteArrayOutputStream baout = new ByteArrayOutputStream();
>   Driver driver = new Driver(foSource , baout);
>   res.setContentType("application/pdf");
>   driver.setRenderer(Driver.RENDER_PDF);
>   driver.run();
>   byte[] content = baout.toByteArray();
>   res.setContentLength(content.length);   // This keeps IE
> happy
>   res.getOutputStream().write(content);
>   res.getOutputStream().flush();
>   res.flushBuffer();
>   }
>   catch (Exception e)
>   {
>   System.err.println("Exception in init:  " + e.toString());
>   e.printStackTrace();
>   }
>   ... more code
> }
> 
> > -Original Message-
> > From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 10:28 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: FOP embedding
> >
> >
> > I'm sorry
> >
> > Do you want to use FOP in a servlet to produce a PDF from
> > dynamically created XML and return the PDF to the
> > browser to display?
> >
> >  Yes
> >
> > I have this files (FOP).
> >
> > I have code this servlet with created XML and I desidere dynamically
> > return the PDF.
> >
> > Do you want send this servlet for look?
> >
> >
> >
> > > -Mensaje original-
> > > De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> > > Enviado el:   miércoles, 06 de marzo de 2002 13:05
> > > Para: [EMAIL PROTECTED]
> > > Asunto:   RE: FOP embedding
> > >
> > > Can you please be more specific.  Do you want to use FOP in a servlet
> to
> > produce a PDF from  dynamically created XML and return the PDF to
> > the
> > browser to display?  Are you having problems writing the Java code
> > to do
> > > this, or are you having problems with FOP not working?
> > >
> > > Jim
> > > > -Original Message-
> > > > From: Carlos Daniel Schafer
> [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 06, 2002 9:34 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: FOP embedding
> > >
> > >
> > > Hi!
> > >
> > > I saw those examples the FOP
> > > I have problem with transformer XML to PDF from a servlet. How I to
> do?
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




(Another) bug report with cells'border and cell's background.

2002-03-06 Thread Olivier Rossel

I think that time I got a real bug in FOP 0.20.3rc2.

Here is the sample code:
--- cut here ---


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

 
  
   
  
 

 
  
   


 
  
   Don't care
  
 
 
  
   Border bottom 1
  
 
 
  
   Border bottom 2
  
 
 
  
   Don't care
  
 
 
  
   Border top 1
  
 
 
  
   Border top 2
  
 
 
  
   Don't care
  
 

   
  
 

--- cut here ---

When this FO is traformed into PDF, you have a bug with borders:
the bottom border of the cell "Border bottom 1" has disappeared,
hidden by the background of the cell "Border bottom 2".

But if you have a look at the top border of the cell "Border top 2", it 
did not disappear
because of the background of the cell "Border top 1".

In fact, background in cells make any adjacent border-bottom to disappear.
I am afraid it is the same with border-left. I prepare an example for 
that too.


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




Re: pb with jpegs

2002-03-06 Thread arnd . beissner

Cerious Software (www.cerious.com) has a (Windows) product called ThumbsPlus (about $150 or so),
which includes batch transformations - I have used it to do batch color transformations, but of
course it also does simple load-save-transformations.

I don't know whether FOP/Jimi handles JPEGs saved by this product - but I think they
have a time-limited trial version for download.

Hope this helps,
--
Arnd Beißner IT-Engineering
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917


Re: pb with jpegs

2002-03-06 Thread Olivier Rossel

[EMAIL PROTECTED] wrote:

>
> Cerious Software (www.cerious.com) has a (Windows) product called 
> ThumbsPlus (about $150 or so),
> which includes batch transformations - I have used it to do batch 
> color transformations, but of
> course it also does simple load-save-transformations.
>
> I don't know whether FOP/Jimi handles JPEGs saved by this product - 
> but I think they
> have a time-limited trial version for download.
>
> Hope this helps,
> --
> Arnd Beißner IT-Engineering
> Bahnhofstr. 3, 71063 Sindelfingen, Germany
> Email: [EMAIL PROTECTED]
> Phone: +49-7031-463458
> Mobile: +49-173-3016917

For Linux, the tool 'convert' provided by the suite ImageMagick provides 
batch conversion.



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




RE: FOP embedding

2002-03-06 Thread Jim Urban

Sorry, it was a cut and paste error.  Remove that line of code.

Jim

> -Original Message-
> From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: RE: FOP embedding
>
>
> Sorry
>
> Is this renderFO a method(param1, param2, param3, param4)?
> Because, I don't found.
>
> So, what is import libraries but the servlet?
>
>
>
> > -Mensaje original-
> > De: Jim Urban [SMTP:[EMAIL PROTECTED]]
> > Enviado el: miércoles, 06 de marzo de 2002 13:52
> > Para:   [EMAIL PROTECTED]
> > Asunto: RE: FOP embedding
> >
> > public void doPost(HttpServletRequest req, HttpServletResponse res)
> >  throws ServletException
> > {
> > ... your code
> > try
> > {
> > String xmlString = new String(""); // your xml
> > TransformerFactory tFactory =
> > TransformerFactory.newInstance();
> > File   foFile= new File("foXslFile.xsl");
> > Source foXslSource   = new StreamSource(foFile);
> > Transformer pdfTransformer =
> > tFactory.newTransformer(foXslSource);
> > Writer out = new StringWriter();
> > Source xmlSource = new StreamSource(new
> > StringReader(xmlString));
> > pdfTransformer.transform(xmlSource, new StreamResult(out));
> > out.close();
> > String fopstring = out.toString();
> > InputSource foSource = new InputSource(new
> > StringReader(fopstring));
> > renderFO(foSource, req, res, inPdf);
> > ByteArrayOutputStream baout = new ByteArrayOutputStream();
> > Driver driver = new Driver(foSource , baout);
> > res.setContentType("application/pdf");
> > driver.setRenderer(Driver.RENDER_PDF);
> > driver.run();
> > byte[] content = baout.toByteArray();
> > res.setContentLength(content.length);   // This keeps IE
> > happy
> > res.getOutputStream().write(content);
> > res.getOutputStream().flush();
> > res.flushBuffer();
> > }
> > catch (Exception e)
> > {
> > System.err.println("Exception in init:  " + e.toString());
> > e.printStackTrace();
> > }
> > ... more code
> > }
> >
> > > -Original Message-
> > > From: Carlos Daniel Schafer
> [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 06, 2002 10:28 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: FOP embedding
> > >
> > >
> > > I'm sorry
> > >
> > >   Do you want to use FOP in a servlet to produce a PDF from
> > > dynamically created XML and return the PDF to the
> > > browser to display?
> > >
> > >  Yes
> > >
> > >   I have this files (FOP).
> > >
> > >   I have code this servlet with created XML and I desidere dynamically
> > > return the PDF.
> > >
> > >   Do you want send this servlet for look?
> > >
> > >
> > >
> > > > -Mensaje original-
> > > > De: Jim Urban [SMTP:[EMAIL PROTECTED]]
> > > > Enviado el: miércoles, 06 de marzo de 2002 13:05
> > > > Para:   [EMAIL PROTECTED]
> > > > Asunto: RE: FOP embedding
> > > >
> > > > Can you please be more specific.  Do you want to use FOP in
> a servlet
> > to
> > >   produce a PDF from  dynamically created XML and return the PDF to
> > > the
> > >   browser to display?  Are you having problems writing the Java code
> > > to do
> > > > this, or are you having problems with FOP not working?
> > > >
> > > > Jim
> > > > > -Original Message-
> > > > > From: Carlos Daniel Schafer
> > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, March 06, 2002 9:34 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: FOP embedding
> > > >
> > > >
> > > > Hi!
> > > >
> > > > I saw those examples the FOP
> > > > I have problem with transformer XML to PDF from a servlet. How I to
> > do?
> > > >
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, email: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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

DO NOT REPLY [Bug 6490] - fox:outline fails to generate bookmarks

2002-03-06 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6490

fox:outline fails to generate bookmarks

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-03-06 17:30 ---
This has been resolved in Fop-0.20.3, which is great!

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




Re: (Another) bug report with cells'border and cell's background.

2002-03-06 Thread Olivier Rossel

Olivier Rossel wrote:

> I think that time I got a real bug in FOP 0.20.3rc2.
>
> Here is the sample code:
> --- cut here ---
> 
>
> http://www.w3.org/1999/XSL/Format";>
>
> 
>   page-height="210mm" margin-left="1cm" margin-right="1cm" 
> margin-top="1cm" margin-bottom="1cm">
>   
>  
> 
>
> 
>  
>   
>
>
> 
>  
>   Don't care
>  
> 
> 
>  
>   Border bottom 1
>  
> 
> 
>  
>   Border bottom 2
>  
> 
> 
>  
>   Don't care
>  
> 
> 
>  
>   Border top 1
>  
> 
> 
>  
>   Border top 2
>  
> 
> 
>  
>   Don't care
>  
> 
>
>   
>  
> 
> 
> --- cut here ---
>
> When this FO is traformed into PDF, you have a bug with borders:
> the bottom border of the cell "Border bottom 1" has disappeared,
> hidden by the background of the cell "Border bottom 2".
>
> But if you have a look at the top border of the cell "Border top 2", 
> it did not disappear
> because of the background of the cell "Border top 1".
>
> In fact, background in cells make any adjacent border-bottom to 
> disappear.
> I am afraid it is the same with border-left. I prepare an example for 
> that too.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
The problem of backgrounds is very visible if you add the 
'background-color="lightgray"'
attribute to the very last "Dont'care" cell.
Then you see that the background hides a part of the border surrounding 
the table.

Is it planned to be fixed for the official 0.20.3 ?

PS: another thing itneresting is to add the attribute 
'background-color="lightgray"'
to the  tag. You will see that the background does not hide the 
borders of the table,
but is one piwel too large in the lower part.

PPS/ BTW, why does xpdf/acroread displays borders not always with the 
same size, but
the printed version is okay?


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




DO NOT REPLY [Bug 6929] New: - Cells border hidden by cells background

2002-03-06 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6929

Cells border hidden by cells background

   Summary: Cells border hidden by cells background
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Normal
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


--- cut here ---


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


 
  
 



 
  
   
   

 
  Don't care
 


 
  Border bottom 1
 


 
  Border bottom 2
 


 
  Don't care
 


 
  Border top 1
 


 
  Border top 2
 


 
  Don't care
 

   
  
 


--- cut here ---

When this FO is traformed into PDF, you have a bug with borders:
the bottom border of the cell "Border bottom 1" has disappeared,
hidden by the background of the cell "Border bottom 2".

But if you have a look at the top border of the cell "Border top 2", it did not
disappear
because of the background of the cell "Border top 1".

In fact, background in cells make any adjacent border-bottom to disappear.
I am afraid it is the same with border-left.

Note:
Add the 'background-color="lightgray"'
attribute to the very last "Dont'care" cell.
Then you see that the background hides a part of the border surrounding the table.

Note2: add the attribute 'background-color="lightgray"'
to the  tag. You will see that the background does not hide the borders
of the table,but is one pixel too large in the lower part.

PPS/ BTW, why does xpdf/acroread displays borders not always with the same size, but
the printed version is okay?

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




RE: FOP embedding

2002-03-06 Thread Carlos Daniel Schafer

Jim

Are your file foXslFile.xsl have code ?

> -Mensaje original-
> De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> Enviado el:   miércoles, 06 de marzo de 2002 13:52
> Para: [EMAIL PROTECTED]
> Asunto:   RE: FOP embedding
> 
> public void doPost(HttpServletRequest req, HttpServletResponse res)
>throws ServletException
> {
>   ... your code
>   try
>   {
>   String xmlString = new String(""); // your xml
>   TransformerFactory tFactory =
> TransformerFactory.newInstance();
>   File   foFile= new File("foXslFile.xsl");
>   Source foXslSource   = new StreamSource(foFile);
>   Transformer pdfTransformer =
> tFactory.newTransformer(foXslSource);
>   Writer out = new StringWriter();
>   Source xmlSource = new StreamSource(new
> StringReader(xmlString));
>   pdfTransformer.transform(xmlSource, new StreamResult(out));
>   out.close();
>   String fopstring = out.toString();
>   InputSource foSource = new InputSource(new
> StringReader(fopstring));
>   renderFO(foSource, req, res, inPdf);
>   ByteArrayOutputStream baout = new ByteArrayOutputStream();
>   Driver driver = new Driver(foSource , baout);
>   res.setContentType("application/pdf");
>   driver.setRenderer(Driver.RENDER_PDF);
>   driver.run();
>   byte[] content = baout.toByteArray();
>   res.setContentLength(content.length);   // This keeps IE
> happy
>   res.getOutputStream().write(content);
>   res.getOutputStream().flush();
>   res.flushBuffer();
>   }
>   catch (Exception e)
>   {
>   System.err.println("Exception in init:  " + e.toString());
>   e.printStackTrace();
>   }
>   ... more code
> }
> 
> > -Original Message-
> > From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 10:28 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: FOP embedding
> >
> >
> > I'm sorry
> >
> > Do you want to use FOP in a servlet to produce a PDF from
> > dynamically created XML and return the PDF to the
> > browser to display?
> >
> >  Yes
> >
> > I have this files (FOP).
> >
> > I have code this servlet with created XML and I desidere dynamically
> > return the PDF.
> >
> > Do you want send this servlet for look?
> >
> >
> >
> > > -Mensaje original-
> > > De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> > > Enviado el:   miércoles, 06 de marzo de 2002 13:05
> > > Para: [EMAIL PROTECTED]
> > > Asunto:   RE: FOP embedding
> > >
> > > Can you please be more specific.  Do you want to use FOP in a servlet
> to
> > produce a PDF from  dynamically created XML and return the PDF to
> > the
> > browser to display?  Are you having problems writing the Java code
> > to do
> > > this, or are you having problems with FOP not working?
> > >
> > > Jim
> > > > -Original Message-
> > > > From: Carlos Daniel Schafer
> [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 06, 2002 9:34 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: FOP embedding
> > >
> > >
> > > Hi!
> > >
> > > I saw those examples the FOP
> > > I have problem with transformer XML to PDF from a servlet. How I to
> do?
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




Encryption

2002-03-06 Thread david

What is involved in encrypting the outputted PDF?  Is this something that is
simple to implement?  If someone can point me in the right direction, I'd
appreciate it. :)

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.


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




RE: FOP embedding

2002-03-06 Thread Jim Urban

Yes.  Here is the beginning of one of our xsl files:



http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>












Jim

> -Original Message-
> From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 12:33 PM
> To: [EMAIL PROTECTED]
> Subject: RE: FOP embedding
>
>
> Jim
>
> Are your file foXslFile.xsl have code ?
>
> > -Mensaje original-
> > De: Jim Urban [SMTP:[EMAIL PROTECTED]]
> > Enviado el: miércoles, 06 de marzo de 2002 13:52
> > Para:   [EMAIL PROTECTED]
> > Asunto: RE: FOP embedding
> >
> > public void doPost(HttpServletRequest req, HttpServletResponse res)
> >  throws ServletException
> > {
> > ... your code
> > try
> > {
> > String xmlString = new String(""); // your xml
> > TransformerFactory tFactory =
> > TransformerFactory.newInstance();
> > File   foFile= new File("foXslFile.xsl");
> > Source foXslSource   = new StreamSource(foFile);
> > Transformer pdfTransformer =
> > tFactory.newTransformer(foXslSource);
> > Writer out = new StringWriter();
> > Source xmlSource = new StreamSource(new
> > StringReader(xmlString));
> > pdfTransformer.transform(xmlSource, new StreamResult(out));
> > out.close();
> > String fopstring = out.toString();
> > InputSource foSource = new InputSource(new
> > StringReader(fopstring));
> > renderFO(foSource, req, res, inPdf);
> > ByteArrayOutputStream baout = new ByteArrayOutputStream();
> > Driver driver = new Driver(foSource , baout);
> > res.setContentType("application/pdf");
> > driver.setRenderer(Driver.RENDER_PDF);
> > driver.run();
> > byte[] content = baout.toByteArray();
> > res.setContentLength(content.length);   // This keeps IE
> > happy
> > res.getOutputStream().write(content);
> > res.getOutputStream().flush();
> > res.flushBuffer();
> > }
> > catch (Exception e)
> > {
> > System.err.println("Exception in init:  " + e.toString());
> > e.printStackTrace();
> > }
> > ... more code
> > }
> >
> > > -Original Message-
> > > From: Carlos Daniel Schafer
> [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 06, 2002 10:28 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: FOP embedding
> > >
> > >
> > > I'm sorry
> > >
> > >   Do you want to use FOP in a servlet to produce a PDF from
> > > dynamically created XML and return the PDF to the
> > > browser to display?
> > >
> > >  Yes
> > >
> > >   I have this files (FOP).
> > >
> > >   I have code this servlet with created XML and I desidere dynamically
> > > return the PDF.
> > >
> > >   Do you want send this servlet for look?
> > >
> > >
> > >
> > > > -Mensaje original-
> > > > De: Jim Urban [SMTP:[EMAIL PROTECTED]]
> > > > Enviado el: miércoles, 06 de marzo de 2002 13:05
> > > > Para:   [EMAIL PROTECTED]
> > > > Asunto: RE: FOP embedding
> > > >
> > > > Can you please be more specific.  Do you want to use FOP in
> a servlet
> > to
> > >   produce a PDF from  dynamically created XML and return the PDF to
> > > the
> > >   browser to display?  Are you having problems writing the Java code
> > > to do
> > > > this, or are you having problems with FOP not working?
> > > >
> > > > Jim
> > > > > -Original Message-
> > > > > From: Carlos Daniel Schafer
> > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, March 06, 2002 9:34 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: FOP embedding
> > > >
> > > >
> > > > Hi!
> > > >
> > > > I saw those examples the FOP
> > > > I have problem with transformer XML to PDF from a servlet. How I to
> > do?
> > > >
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, email: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMA

FOP DTD attached (updated)

2002-03-06 Thread Chuck Paussa

DTD lovers

I've created the attached DTD from the XSL FO W3C documents. I updated the DTD to 
allow you to exclude those elements that are not handled by 
FOP. These are fairly clean documents with some additions like enumerated types for 
lengths and percentages. The enumerated types do not exclude values not implemenetd in 
FOP. The DTD should work well with PSGML. Post any comments and I'll include them in 
the next update. [Even the cranky comments I've gotten so far are useful];-)

Chuck Paussa


























































































































































































































































































































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


Re: FOP DTD attached (updated)

2002-03-06 Thread david

I opened the attached DTD in XML Spy, and the validation failed at:

...

To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 2:05 PM
Subject: FOP DTD attached (updated)


> DTD lovers
>
> I've created the attached DTD from the XSL FO W3C documents. I updated the
DTD to allow you to exclude those elements that are not handled by
> FOP. These are fairly clean documents with some additions like enumerated
types for lengths and percentages. The enumerated types do not exclude
values not implemenetd in FOP. The DTD should work well with PSGML. Post any
comments and I'll include them in the next update. [Even the cranky comments
I've gotten so far are useful];-)
>
> Chuck Paussa
>
>




























































































































































































































































































































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


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




FOP Schema

2002-03-06 Thread Chuck Paussa

I've generated and cleaned up the attached schema from the XSL FO DTD. These are 
fairly clean documents with some additions like enumerated types for lengths and 
percentages. The enumerated types do not exclude values not implemenetd in FOP. One 
item to note is that the element names in the schema do not include the fo: prefix, so 
if you're generating code from the schema, you'll have to work around that. Post any 
comments and I'll include them in the next update. [Even the cranky comments I've 
gotten so far are useful];-)

Chuck Paussa




fop_xsd.zip
Description: Zip compressed data

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


RE: FOP embedding

2002-03-06 Thread Carlos Daniel Schafer

So, I have the problem (Huston).
I take my code (xsl) and rewriter in  for all those lines.



> -Mensaje original-
> De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> Enviado el:   miércoles, 06 de marzo de 2002 15:57
> Para: [EMAIL PROTECTED]
> Asunto:   RE: FOP embedding
> 
> Yes.  Here is the beginning of one of our xsl files:
> 
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> 
> 
> 
> 
>  page-height="8.5in"
>   page-width="11in"
>   margin-top=".25in"
>   margin-bottom=".25in"
>   margin-left=".25in"
>   margin-right=".25in">
> 
>   
>   
>   
>   
> 
> 
> Jim
> 
> > -Original Message-
> > From: Carlos Daniel Schafer [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 12:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: FOP embedding
> >
> >
> > Jim
> >
> > Are your file foXslFile.xsl have code ?
> >
> > > -Mensaje original-
> > > De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> > > Enviado el:   miércoles, 06 de marzo de 2002 13:52
> > > Para: [EMAIL PROTECTED]
> > > Asunto:   RE: FOP embedding
> > >
> > > public void doPost(HttpServletRequest req, HttpServletResponse res)
> > >throws ServletException
> > > {
> > >   ... your code
> > >   try
> > >   {
> > >   String xmlString = new String(""); // your xml
> > >   TransformerFactory tFactory =
> > > TransformerFactory.newInstance();
> > >   File   foFile= new File("foXslFile.xsl");
> > >   Source foXslSource   = new StreamSource(foFile);
> > >   Transformer pdfTransformer =
> > > tFactory.newTransformer(foXslSource);
> > >   Writer out = new StringWriter();
> > >   Source xmlSource = new StreamSource(new
> > > StringReader(xmlString));
> > >   pdfTransformer.transform(xmlSource, new StreamResult(out));
> > >   out.close();
> > >   String fopstring = out.toString();
> > >   InputSource foSource = new InputSource(new
> > > StringReader(fopstring));
> > >   renderFO(foSource, req, res, inPdf);
> > >   ByteArrayOutputStream baout = new ByteArrayOutputStream();
> > >   Driver driver = new Driver(foSource , baout);
> > >   res.setContentType("application/pdf");
> > >   driver.setRenderer(Driver.RENDER_PDF);
> > >   driver.run();
> > >   byte[] content = baout.toByteArray();
> > >   res.setContentLength(content.length);   // This keeps IE
> > > happy
> > >   res.getOutputStream().write(content);
> > >   res.getOutputStream().flush();
> > >   res.flushBuffer();
> > >   }
> > >   catch (Exception e)
> > >   {
> > >   System.err.println("Exception in init:  " + e.toString());
> > >   e.printStackTrace();
> > >   }
> > >   ... more code
> > > }
> > >
> > > > -Original Message-
> > > > From: Carlos Daniel Schafer
> > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, March 06, 2002 10:28 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: FOP embedding
> > > >
> > > >
> > > > I'm sorry
> > > >
> > > > Do you want to use FOP in a servlet to produce a PDF from
> > > > dynamically created XML and return the PDF to the
> > > > browser to display?
> > > >
> > > >  Yes
> > > >
> > > > I have this files (FOP).
> > > >
> > > > I have code this servlet with created XML and I desidere
> dynamically
> > > > return the PDF.
> > > >
> > > > Do you want send this servlet for look?
> > > >
> > > >
> > > >
> > > > > -Mensaje original-
> > > > > De:   Jim Urban [SMTP:[EMAIL PROTECTED]]
> > > > > Enviado el:   miércoles, 06 de marzo de 2002 13:05
> > > > > Para: [EMAIL PROTECTED]
> > > > > Asunto:   RE: FOP embedding
> > > > >
> > > > > Can you please be more specific.  Do you want to use FOP in
> > a servlet
> > > to
> > > > produce a PDF from  dynamically created XML and return the
> PDF to
> > > > the
> > > > browser to display?  Are you having problems writing the
> Java code
> > > > to do
> > > > > this, or are you having problems with FOP not working?
> > > > >
> > > > > Jim
> > > > > > -Original Message-
> > > > > > From: Carlos Daniel Schafer
> > > [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, March 06, 2002 9:34 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: FOP embedding
> > > > >
> > > > >
> > > > > Hi!
> > > > >
> > > > > I saw those examples the FOP
> > > > > I have problem with transformer XML to PDF from a servlet. How I
> to
> > > do?
> > > > >
> > > > >
> > > > >
> > > > >
> > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, email: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> --

Re: FOP DTD attached (updated)

2002-03-06 Thread david

Ok,
   I added "fo:" to "
+
 


























































































































































































































































































































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



fop4d.dtd.diff
Description: Binary data

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


Re: FOP Schema

2002-03-06 Thread david

I had a problem validating the schema.  I changed the namespace declaration
for xs to "http://www.w3.org/2000/10/XMLSchema"; and it came up ok in XML
Spy.  Granted, this could be an issue w/ ver. 3.5 of XML Spy.  Dunno.

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.
- Original Message -
From: "Chuck Paussa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 2:11 PM
Subject: FOP Schema


> I've generated and cleaned up the attached schema from the XSL FO DTD.
These are fairly clean documents with some additions like enumerated types
for lengths and percentages. The enumerated types do not exclude values not
implemenetd in FOP. One item to note is that the element names in the schema
do not include the fo: prefix, so if you're generating code from the schema,
you'll have to work around that. Post any comments and I'll include them in
the next update. [Even the cranky comments I've gotten so far are useful];-)
>
> Chuck Paussa
>
>






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


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




Re: FOP DTD attached (updated)

2002-03-06 Thread Chuck Paussa

David,

If you look at the comments at the top of the DTD, you'll find 
instructions on how to strip out those elements not implemented in FOP

Chuck Paussa



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




DO NOT REPLY [Bug 6933] New: - getParser() NullPointer Problem in Code

2002-03-06 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6933

getParser() NullPointer Problem in Code

   Summary: getParser() NullPointer Problem in Code
   Product: Fop
   Version: 0.20.1
  Platform: PC
OS/Version: Windows 9x
Status: NEW
  Severity: Blocker
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When I try to get to use the getParser in the Fop InputHandler method it is 
throwing a null pointer somewhere in this method I believe.  This is preventing 
it from generating the pdf.  I used this code on the command line app which 
worked, but when embedding it in a java application it gets hung up at this 
point.  The version of fop being used is 0.20.1 .

//render as pdf
 driver = new Driver();
 driver.setRenderer(Driver.RENDER_PDF);


 //get xml file created
 file_XML = new File(getFileLocation(XMLEXT));

 //set where userconfig.xml is located
 Options op = new Options();
 op.loadUserconfiguration("C:\\apachedev\\Fop-0.20.1
\\conf\\userconfig.xml");

 //get xsl file
 file_XSLT = new File(getFileLocation(XSLEXT));

 //create the pdf
 inputHandler = new XSLTInputHandler(file_XML, 
file_XSLT);

 parser = inputHandler.getParser();

 driver.setOutputStream(new FileOutputStream
(getFileLocation(PDFEXT)));

 driver.render(parser, inputHandler.getInputSource());

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




JfreeChart

2002-03-06 Thread Katiyar, Bhawana

Has anyone used JFreechart. I wish to use this to create a pie chart and then convert 
it into jpeg image using an encoder. I want to include this image in my PDF document.
Does anyone know how can I convert a chart made of JFreeChart to JPeg.
Also, if anyone knows a better way to do this. 

Thanks
Bhawana

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 5:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with generated PDF files



if you work with java, you should let your applicationserver make a
temporarely file it self... then the minute you exit the servlet the file
will be deleted...

SeJo



Jochen Maes
EDP departement
Programmeur

KBC-Securities
Havenlaan 16
1080 Brussel

Tel : 02/429.96.81
Fax : 02/429.17.48
E-mail : [EMAIL PROTECTED]

**

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. KBC Securities
reserves the right to monitor all e-mail communications through its
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of any such entity.
**


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

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




Re: pb with jpegs

2002-03-06 Thread Sven Kitschke

fred redf wrote:

> If someone has an idea of a commandline/scriptable
> tool
> Thanks.
> Fred.
> 
Win? Irfanview (free for non-commercial use) provides 

a batch conversion dialog.

Hope this helps.
Ciao, Sven.


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




awt embedding

2002-03-06 Thread Joshua Marinacci

I'm working on an XSL:FO template editor and I want to do a realtime 
preview of what
it will look like. I just want to render it to a component and then 
refresh it quickly. I have
been unsuccessful at making anything render directly from a bytestream 
in memory,
so I'm writing it out to a temp file and then reading it in with
FOInputHandler inputHandler = new FOInputHandler(new 
java.io.File("/tmp/foo.foo"));
which seems to work. Eventually I want to avoid the disk altogether and 
just do it from
memory, but I'll take what I can get for now.

My main problem is that I can't get the window to refresh. In the code 
below 'setup()' is
called once and then 'refresh()' is called each time the document is 
updated. Originally
I had the Renderer allocated in the setup and reused, but that seemed 
never to update
after the first render, so now I allocate a new Renderer each time. What 
is the appropriate
way to do this? What objects can I reuse (Renderer? Driver?) and what do 
I have
to reallocate each time. Also, what method should I call on the JFrame 
to force it
to refresh. Invalidate doesn't always seem to do it.   Thanks so much for
your help.

- Joshua


public class FOViewer {
 public static String TRANSLATION_PATH =
 "/org/apache/fop/viewer/resources/";
 JLabel previewImageLabel;
 JFrame frame;

 public void setup() {
try {
// create a new renderer

frame = new JFrame("fooboo");
previewImageLabel = new JLabel();
frame.getContentPane().add(previewImageLabel);
frame.validate();
frame.setVisible(true);
frame.setSize(400,400);

//  renderer.setProgressListener(frame);
} catch (Exception e) {
u.p(e);
}
 }

 public void refresh(InputStream in) {
try {
// set up the language stuff
String language = null;
if (language == null) {
try {
language = System.getProperty("user.language");
} catch(SecurityException se) {
// if this is running in a secure place
}
}
Translator resource = getResourceBundle(TRANSLATION_PATH + 
"resources." + language);
UserMessage.setTranslator(getResourceBundle(TRANSLATION_PATH + 
"messages." + language));
resource.setMissingEmphasized(false);
AWTRenderer renderer;
renderer = new AWTRenderer(resource);
renderer.setComponent(frame);

// old stuff
FOInputHandler inputHandler = new FOInputHandler(new 
java.io.File("/tmp/foo.foo"));
XMLReader reader2 = inputHandler.getParser();


Driver driver = new Driver();
driver.setRenderer(renderer);
driver.render(reader2, inputHandler.getInputSource()); // old
//  driver.render(reader, new InputSource(in)); // new
BufferedImage pageImage = renderer.getLastRenderedPage();

//  frame.getContentPane().remove(previewImageLabel);
//  frame.invalidate();
//  frame.repaint();

//  previewImageLabel = new JLabel();
previewImageLabel.setIcon(new ImageIcon(pageImage));
//  frame.getContentPane().add(previewImageLabel);
previewImageLabel.invalidate();
frame.invalidate();
previewImageLabel.repaint();
frame.repaint();

u.p("done 1");

} catch (Exception e) {
u.p(e);
}
 }


 public static SecureResourceBundle getResourceBundle(String path) {
 InputStream in = null;

 try {
FOViewer foo = new FOViewer();
 URL url = foo.getClass().getResource(path);
 in = url.openStream();
 } catch (Exception ex) {
u.p("Can't find URL to: <" + path + "> " + ex.getMessage());
u.p(ex);
 }
 return new SecureResourceBundle(in);
 }

}


- Joshua

... but I still haven't found what I'm looking for.


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




RE: Encryption

2002-03-06 Thread Manuel Mall

To apply encryption to FOP generated PDF files we post process the files
with a command line tool called pdcat from a PDF tools set available from
http://pdf.glance.ch.

If you are looking for an all Java solution I believe iText from
http://www.lowagie.com/iText/ also allows encryption (but no decryption).

Manuel
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 March 2002 2:57
To: fop-dev
Subject: Encryption


What is involved in encrypting the outputted PDF?  Is this something that is
simple to implement?  If someone can point me in the right direction, I'd
appreciate it. :)

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.


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

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




Re: Encryption

2002-03-06 Thread David B. Bitton

I quickly looked at iText, and that is not a XSL-FO -> PDF engine.
RenderX's XEP Java app does do encryption, but they are not a viable option
for us.  Where in the FOP process could we hotwire some encryption?

Also, the command line app won't work because we want the write the file
directly to disk for immediate availability to the browser.  The creating of
the PDF will be the result of a SOAP call to our PDF server, posting the
XSL-FO data.

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.
- Original Message -
From: "Manuel Mall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 8:17 PM
Subject: RE: Encryption


> To apply encryption to FOP generated PDF files we post process the files
> with a command line tool called pdcat from a PDF tools set available from
> http://pdf.glance.ch.
>
> If you are looking for an all Java solution I believe iText from
> http://www.lowagie.com/iText/ also allows encryption (but no decryption).
>
> Manuel
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 7 March 2002 2:57
> To: fop-dev
> Subject: Encryption
>
>
> What is involved in encrypting the outputted PDF?  Is this something that
is
> simple to implement?  If someone can point me in the right direction, I'd
> appreciate it. :)
>
> --
>
> David B. Bitton
> [EMAIL PROTECTED]
> www.codenoevil.com
>
> Diversa ab illis virtute valemus.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




RE: Encryption

2002-03-06 Thread Manuel Mall

David,

You are correct both solutions are post processing type solutions, ie. it is
an additional step after the XSL-FO -> PDF conversion. I am pretty certain
FOP, in its current version, cannot do it. The question for you is if you
can modify your PDF server to perform this additional step, eg. first
produce a temporary PDF file on disk using FOP and then call for example the
pdcat tool to copy the temporary PDF file to its permanent home and apply
the encryption while doing it. This is how we do it here within a Tomcat
hosted servlet.

Manuel

-Original Message-
From: David B. Bitton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 March 2002 10:41
To: [EMAIL PROTECTED]
Subject: Re: Encryption


I quickly looked at iText, and that is not a XSL-FO -> PDF engine.
RenderX's XEP Java app does do encryption, but they are not a viable option
for us.  Where in the FOP process could we hotwire some encryption?

Also, the command line app won't work because we want the write the file
directly to disk for immediate availability to the browser.  The creating of
the PDF will be the result of a SOAP call to our PDF server, posting the
XSL-FO data.

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.
- Original Message -
From: "Manuel Mall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 8:17 PM
Subject: RE: Encryption


> To apply encryption to FOP generated PDF files we post process the files
> with a command line tool called pdcat from a PDF tools set available from
> http://pdf.glance.ch.
>
> If you are looking for an all Java solution I believe iText from
> http://www.lowagie.com/iText/ also allows encryption (but no decryption).
>
> Manuel
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 7 March 2002 2:57
> To: fop-dev
> Subject: Encryption
>
>
> What is involved in encrypting the outputted PDF?  Is this something that
is
> simple to implement?  If someone can point me in the right direction, I'd
> appreciate it. :)
>
> --
>
> David B. Bitton
> [EMAIL PROTECTED]
> www.codenoevil.com
>
> Diversa ab illis virtute valemus.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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

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




Re: Encryption

2002-03-06 Thread David B. Bitton

Would you be so graceous as to share the code you use to do this?  I am
quite new to Java, so I could use the leg up.  Tx :)

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.
- Original Message -
From: "Manuel Mall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 9:51 PM
Subject: RE: Encryption


> David,
>
> You are correct both solutions are post processing type solutions, ie. it
is
> an additional step after the XSL-FO -> PDF conversion. I am pretty certain
> FOP, in its current version, cannot do it. The question for you is if you
> can modify your PDF server to perform this additional step, eg. first
> produce a temporary PDF file on disk using FOP and then call for example
the
> pdcat tool to copy the temporary PDF file to its permanent home and apply
> the encryption while doing it. This is how we do it here within a Tomcat
> hosted servlet.
>
> Manuel
>
> -Original Message-
> From: David B. Bitton [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 7 March 2002 10:41
> To: [EMAIL PROTECTED]
> Subject: Re: Encryption
>
>
> I quickly looked at iText, and that is not a XSL-FO -> PDF engine.
> RenderX's XEP Java app does do encryption, but they are not a viable
option
> for us.  Where in the FOP process could we hotwire some encryption?
>
> Also, the command line app won't work because we want the write the file
> directly to disk for immediate availability to the browser.  The creating
of
> the PDF will be the result of a SOAP call to our PDF server, posting the
> XSL-FO data.
>
> --
>
> David B. Bitton
> [EMAIL PROTECTED]
> www.codenoevil.com
>
> Diversa ab illis virtute valemus.
> - Original Message -
> From: "Manuel Mall" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 06, 2002 8:17 PM
> Subject: RE: Encryption
>
>
> > To apply encryption to FOP generated PDF files we post process the files
> > with a command line tool called pdcat from a PDF tools set available
from
> > http://pdf.glance.ch.
> >
> > If you are looking for an all Java solution I believe iText from
> > http://www.lowagie.com/iText/ also allows encryption (but no
decryption).
> >
> > Manuel
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 7 March 2002 2:57
> > To: fop-dev
> > Subject: Encryption
> >
> >
> > What is involved in encrypting the outputted PDF?  Is this something
that
> is
> > simple to implement?  If someone can point me in the right direction,
I'd
> > appreciate it. :)
> >
> > --
> >
> > David B. Bitton
> > [EMAIL PROTECTED]
> > www.codenoevil.com
> >
> > Diversa ab illis virtute valemus.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




To re-direct or not to re-direct

2002-03-06 Thread David B. Bitton

Perhaps not the correct forum for this question, but do I have to redirect
Tomcat through IIS/Apache or can I serve my servlet direct from Tomcat?

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.


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




Re: Example extension

2002-03-06 Thread Keiron Liddle

On 2002.03.06 03:03 Adrian Edwards wrote:
> Thanks Keiron.  Look forward to seeing the example.
> 
> Can you please announce the commit on this thread for completeness of
> the archive?

The example extension is available under the contrib/ directory in the cvs 
trunk.

When the rest of FOP is working you will be able to see how it works.

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




Re: Encryption

2002-03-06 Thread Keiron Liddle

On 2002.03.06 19:57 [EMAIL PROTECTED] wrote:
> What is involved in encrypting the outputted PDF?  Is this something that
> is
> simple to implement?  If someone can point me in the right direction, I'd
> appreciate it. :)

Go to this page:
http://xml.apache.org/fop/resources.html

click on the PDF reference manual.
You now have the pdf spec.
Search for "encryption".

Then all you need to do is implement it.

- OR -

use post processing as mentioned.

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