RE: Help required for Japanese FOP

2004-10-27 Thread Louis . Masters

I agree with Rob.

As I mentioned in my barcode thread, once you have the metrics file
generated, embed the font and then reference it in your stylesheet.

For example, I did some work with embedding Chinese characters in a
document:

Vector allFonts = new Vector();
Vector allTrips = new Vector();

allTrips.add(new FontTriplet(MS Song,normal,normal));

FontInfo fontInfo = new FontInfo(MS
SONG,/fonts/mssong.xml,true,allTrips,/fonts/mssong.ttf);
allFonts.add(fontInfo);
Configuration.put(fonts, allFonts);

Referenced in XSL:

fo:block font-family=MS Song padding-bottom=1mm
  #x51fa;#x53e3;#x65e5;#x671f;
/fo:block

Does this help?

-Lou




   
  Rob Stote 
   
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
   
  ltech.com   cc:  
   
   Subject: RE: Help required for 
Japanese FOP 
  10/26/2004 11:33  
   
  Please respond
   
  to fop-user   
   

   

   



I'm jumping in here last minute but...


I am a little confused as to why you are building FOP. We
currently are dealing with Japanese customers, and have had no issues. Here
is What I did:


Generate the appropriate font metrics file
Configure FOP via the fop-config.xml file to use and embed the font
Reference the font-family in your stylesheet


I might be missing something... Why are you trying to build FOP. I can't
speck for the developers, but I am assuming FOP was designed in such a way
that you use fonts regardless of language, country etc... And you don't
have to rebuild FOP to do so.


Rob


-Original Message-
From: Sanket Desai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 10:45 AM
To: [EMAIL PROTECTED]
Subject: Re: Help required for Japanese FOP


Hi Balaji,


Your artical is very informative. Thanks for it. I referred to your
artical. But, I am still facing problems. Bascially, my problem is related
to building FOP with Japanese support (MSGothic) fonts. As per my previous
mail, I generated font metrics file. But in that so many parameters are
missing. For example class-name, embedFileName, embedResourceFile
etc.. This thing I came to know when I looked into the MSGothic.java file.
Apart from this, there are other parameters (actually variables in
MSGothic.java file) like lastChar, firstChar are also not initialized.
So, it is basically problem of generated wrong .java file (i.e.
MSGothic.java). I don't know from where will I get resource file and values
for these parameters. So, if you can guide me then I will be very thankful
to you.


I hope you can understand my problem.


thanks,


Sanket.





On Tue, 26 Oct 2004 06:26:53 +1000 (EST), Balaji Loganathan
[EMAIL PROTECTED] wrote:
 Hi Sanket,
 See whether this article helps you ??
 http://www.javaranch.com/journal/200409/Journal200409.jsp#a9

 --- John Mok [EMAIL PROTECTED] wrote:
  Sanket Desai wrote:
 
   Hi John Mok,
  
   Thanks for your reply. I tried to make
  font metrics for
   MSGothic fonts. I used msgothic.ttf (It is TTF and
  not TTC).  That
   generated msgothic.xml also. But when I tried to
  build the whole FOP,
   I came to know that class for MSGothic doesn't
  have any name.
 
  If you succeeded to generated the font metrics file, e.g.
  msgothic.xml or any name you like, then you have to register the
  font metrics file in
 a config. file referenced by your application or servlet, e.g.
  the a config file at /usr/local/fop-0.20.5/userconfig.xml,
  in which you build
the mappings for font MSGothic in reference to the font metrics
  file. Please refer to the section Register Fonts with FOP at :-
 
  http://xml.apache.org/fop/fonts.html
 
  For further details, please find the program examples in the FOP
  package.
 
  John Mok

RE: Help required for Japanese FOP

2004-10-27 Thread Balaji Loganathan
I agree the same,
Sankat!.. Try to follow this link
http://xml.apache.org/fop/fonts.html
, you don't have to build FOP for msgothic font.

 

 --- [EMAIL PROTECTED] wrote: 
 
 I agree with Rob.
 
 As I mentioned in my barcode thread, once you have
 the metrics file
 generated, embed the font and then reference it in
 your stylesheet.
 
 For example, I did some work with embedding Chinese
 characters in a
 document:
 
 Vector allFonts = new Vector();
 Vector allTrips = new Vector();
 
 allTrips.add(new FontTriplet(MS
 Song,normal,normal));
 
 FontInfo fontInfo = new FontInfo(MS

SONG,/fonts/mssong.xml,true,allTrips,/fonts/mssong.ttf);
 allFonts.add(fontInfo);
 Configuration.put(fonts, allFonts);
 
 Referenced in XSL:
 
 fo:block font-family=MS Song
 padding-bottom=1mm
   oŒû“úŠú
 /fo:block
 
 Does this help?
 
 -Lou
 
 
 
 
 
  
   Rob Stote 
 
  
   [EMAIL PROTECTED] To:  
[EMAIL PROTECTED]  
  
   ltech.com   cc:  
 
  
   
 Subject: RE: Help required for Japanese FOP 

   10/26/2004 11:33  
 
  
   Please respond
 
  
   to fop-user   
 
  
 
 
  
 
 
  
 
 
 
 I'm jumping in here last minute but...
 
 
 I am a little confused as to why you are
 building FOP. We
 currently are dealing with Japanese customers, and
 have had no issues. Here
 is What I did:
 
 
 Generate the appropriate font metrics file
 Configure FOP via the fop-config.xml file to use and
 embed the font
 Reference the font-family in your stylesheet
 
 
 I might be missing something... Why are you trying
 to build FOP. I can't
 speck for the developers, but I am assuming FOP was
 designed in such a way
 that you use fonts regardless of language, country
 etc... And you don't
 have to rebuild FOP to do so.
 
 
 Rob
 
 
 -Original Message-
 From: Sanket Desai [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 26, 2004 10:45 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Help required for Japanese FOP
 
 
 Hi Balaji,
 
 
 Your artical is very informative. Thanks for
 it. I referred to your
 artical. But, I am still facing problems. Bascially,
 my problem is related
 to building FOP with Japanese support (MSGothic)
 fonts. As per my previous
 mail, I generated font metrics file. But in that so
 many parameters are
 missing. For example class-name, embedFileName,
 embedResourceFile
 etc.. This thing I came to know when I looked into
 the MSGothic.java file.
 Apart from this, there are other parameters
 (actually variables in
 MSGothic.java file) like lastChar, firstChar are
 also not initialized.
 So, it is basically problem of generated wrong .java
 file (i.e.
 MSGothic.java). I don't know from where will I get
 resource file and values
 for these parameters. So, if you can guide me then I
 will be very thankful
 to you.
 
 
 I hope you can understand my problem.
 
 
 thanks,
 
 
 Sanket.
 
 
 
 
 
 On Tue, 26 Oct 2004 06:26:53 +1000 (EST), Balaji
 Loganathan
 [EMAIL PROTECTED] wrote:
  Hi Sanket,
  See whether this article helps you ??
 

http://www.javaranch.com/journal/200409/Journal200409.jsp#a9
 
  --- John Mok [EMAIL PROTECTED] wrote:
   Sanket Desai wrote:
  
Hi John Mok,
   
Thanks for your reply. I tried to make
   font metrics for
MSGothic fonts. I used msgothic.ttf (It is TTF
 and
   not TTC).  That
generated msgothic.xml also. But when I tried
 to
   build the whole FOP,
I came to know that class for MSGothic doesn't
   have any name.
  
   If you succeeded to generated the font metrics
 file, e.g.
   msgothic.xml or any name you like, then you have
 to register the
   font metrics file in
  a config. file referenced by your application
 or servlet, e.g.
   the a config file at
 /usr/local/fop-0.20.5/userconfig.xml,
   in which you build

Re: Help required for Japanese FOP

2004-10-26 Thread Sanket Desai
Hi Balaji,

Your artical is very informative. Thanks for it. I referred to
your artical. But, I am still facing problems. Bascially, my problem
is related to building FOP with Japanese support (MSGothic) fonts. As
per my previous mail, I generated font metrics file. But in that so
many parameters are missing. For example class-name,
embedFileName, embedResourceFile etc.. This thing I came to know
when I looked into the MSGothic.java file. Apart from this, there are
other parameters (actually variables in MSGothic.java file) like
lastChar, firstChar are also not initialized. So, it is basically
problem of generated wrong .java file (i.e. MSGothic.java). I don't
know from where will I get resource file and values for these
parameters. So, if you can guide me then I will be very thankful to
you.

I hope you can understand my problem.

thanks,

Sanket.


On Tue, 26 Oct 2004 06:26:53 +1000 (EST), Balaji Loganathan
[EMAIL PROTECTED] wrote:
 Hi Sanket,
 See whether this article helps you ??
 http://www.javaranch.com/journal/200409/Journal200409.jsp#a9
 
 --- John Mok [EMAIL PROTECTED] wrote:
  Sanket Desai wrote:
 
   Hi John Mok,
  
   Thanks for your reply. I tried to make
  font metrics for
   MSGothic fonts. I used msgothic.ttf (It is TTF and
  not TTC).  That
   generated msgothic.xml also. But when I tried to
  build the whole FOP,
   I came to know that class for MSGothic doesn't
  have any name.
  
  If you succeeded to generated the font metrics file,
  e.g. msgothic.xml
  or any name you like, then you have to register the
  font metrics file in
 a config. file referenced by your application or
  servlet, e.g. the a
  config file at /usr/local/fop-0.20.5/userconfig.xml,
  in which you build
the mappings for font MSGothic in reference to
  the font metrics
  file. Please refer to the section Register Fonts
  with FOP at :-
 
  http://xml.apache.org/fop/fonts.html
  
  For further details, please find the program
  examples in the FOP package.
 
  John Mok
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 Find local movie times and trailers on Yahoo! Movies.
 http://au.movies.yahoo.com
 
 -
 
 
 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: Help required for Japanese FOP

2004-10-26 Thread Rob Stote
Title: RE: Help required for Japanese FOP





I'm jumping in here last minute but...


 I am a little confused as to why you are building FOP. We currently are dealing with Japanese customers, and have had no issues. Here is What I did:

Generate the appropriate font metrics file
Configure FOP via the fop-config.xml file to use and embed the font
Reference the font-family in your stylesheet


I might be missing something... Why are you trying to build FOP. I can't speck for the developers, but I am assuming FOP was designed in such a way that you use fonts regardless of language, country etc... And you don't have to rebuild FOP to do so.

Rob


-Original Message-
From: Sanket Desai [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 26, 2004 10:45 AM
To: [EMAIL PROTECTED]
Subject: Re: Help required for Japanese FOP


Hi Balaji,


 Your artical is very informative. Thanks for it. I referred to your artical. But, I am still facing problems. Bascially, my problem is related to building FOP with Japanese support (MSGothic) fonts. As per my previous mail, I generated font metrics file. But in that so many parameters are missing. For example class-name, embedFileName, embedResourceFile etc.. This thing I came to know when I looked into the MSGothic.java file. Apart from this, there are other parameters (actually variables in MSGothic.java file) like lastChar, firstChar are also not initialized. So, it is basically problem of generated wrong .java file (i.e. MSGothic.java). I don't know from where will I get resource file and values for these parameters. So, if you can guide me then I will be very thankful to you.

I hope you can understand my problem.


thanks,


Sanket.



On Tue, 26 Oct 2004 06:26:53 +1000 (EST), Balaji Loganathan [EMAIL PROTECTED] wrote:
 Hi Sanket,
 See whether this article helps you ??
 http://www.javaranch.com/journal/200409/Journal200409.jsp#a9
 
 --- John Mok [EMAIL PROTECTED] wrote:
  Sanket Desai wrote:
 
   Hi John Mok,
  
   Thanks for your reply. I tried to make
  font metrics for
   MSGothic fonts. I used msgothic.ttf (It is TTF and
  not TTC). That
   generated msgothic.xml also. But when I tried to
  build the whole FOP,
   I came to know that class for MSGothic doesn't
  have any name.
  
  If you succeeded to generated the font metrics file, e.g. 
  msgothic.xml or any name you like, then you have to register the 
  font metrics file in
  a config. file referenced by your application or servlet, e.g. 
  the a config file at /usr/local/fop-0.20.5/userconfig.xml,
  in which you build
  the mappings for font MSGothic in reference to the font metrics 
  file. Please refer to the section Register Fonts with FOP at :-
 
  http://xml.apache.org/fop/fonts.html
  
  For further details, please find the program examples in the FOP 
  package.
 
  John Mok
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 Find local movie times and trailers on Yahoo! Movies.
 http://au.movies.yahoo.com
 
 -
 
 
 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: Help required for Japanese FOP

2004-10-25 Thread Sanket Desai
Hi John Mok,

Thanks for your reply. I tried to make font metrics for
MSGothic fonts. I used msgothic.ttf (It is TTF and not TTC).  That
generated msgothic.xml also. But when I tried to build the whole FOP,
I came to know that class for MSGothic doesn't have any name. There
should be class-name tag in msgothic.xml file. Later I manually added
this tag then error occured in embedResource and emedFileName
variable. Can you please help me in solving these errors?

thanks in advance,

regards,

Sanket.



On Fri, 22 Oct 2004 21:23:57 +0800, John Mok [EMAIL PROTECTED] wrote:
 
 Yes, FOP 0.20.5 does support Japanese. All you required is to create a
 font metrics from a font file that support Japanese, e.g. MSGothic found
 in Windows.  Then, register the font metrics file as documented in the
 following :-
 
 http://xml.apache.org/fop/fonts.html
 
 Afterwards, you may referenc the font in your FO. I followed the
 instructions and succeeded to create PDF with Japanese characters.
 
 Thank you,   John Mok
 
 
 
 
 Sanket Desai wrote:
  Hi all,
 
  Can anyone guide me for converting current FOP i.e. 0.20.5 for
  Japanese support. I found that, currently FOP doesn't support
  Japanese. Please guide me.
 
 
  regards,
 
 
  Sanket.
  
  -
  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: Help required for Japanese FOP

2004-10-25 Thread John Mok
Sanket Desai wrote:
Hi John Mok,
Thanks for your reply. I tried to make font metrics for
MSGothic fonts. I used msgothic.ttf (It is TTF and not TTC).  That
generated msgothic.xml also. But when I tried to build the whole FOP,
I came to know that class for MSGothic doesn't have any name. 
If you succeeded to generated the font metrics file, e.g. msgothic.xml 
or any name you like, then you have to register the font metrics file in 
  a config. file referenced by your application or servlet, e.g. the a 
config file at /usr/local/fop-0.20.5/userconfig.xml, in which you build 
 the mappings for font MSGothic in reference to the font metrics 
file. Please refer to the section Register Fonts with FOP at :-

http://xml.apache.org/fop/fonts.html
For further details, please find the program examples in the FOP package.
John Mok
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help required for Japanese FOP

2004-10-25 Thread Balaji Loganathan
Hi Sanket,
See whether this article helps you ??
http://www.javaranch.com/journal/200409/Journal200409.jsp#a9

 --- John Mok [EMAIL PROTECTED] wrote: 
 Sanket Desai wrote:
 
  Hi John Mok,
  
  Thanks for your reply. I tried to make
 font metrics for
  MSGothic fonts. I used msgothic.ttf (It is TTF and
 not TTC).  That
  generated msgothic.xml also. But when I tried to
 build the whole FOP,
  I came to know that class for MSGothic doesn't
 have any name. 
 
 If you succeeded to generated the font metrics file,
 e.g. msgothic.xml 
 or any name you like, then you have to register the
 font metrics file in 
a config. file referenced by your application or
 servlet, e.g. the a 
 config file at /usr/local/fop-0.20.5/userconfig.xml,
 in which you build 
   the mappings for font MSGothic in reference to
 the font metrics 
 file. Please refer to the section Register Fonts
 with FOP at :-
 
 http://xml.apache.org/fop/fonts.html
 
 For further details, please find the program
 examples in the FOP package.
 
 John Mok
 
 

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

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

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



Re: Help required for Japanese FOP

2004-10-22 Thread John Mok
Yes, FOP 0.20.5 does support Japanese. All you required is to create a 
font metrics from a font file that support Japanese, e.g. MSGothic found 
in Windows.  Then, register the font metrics file as documented in the 
following :-

http://xml.apache.org/fop/fonts.html
Afterwards, you may referenc the font in your FO. I followed the 
instructions and succeeded to create PDF with Japanese characters.

Thank you,   John Mok
Sanket Desai wrote:
Hi all,
Can anyone guide me for converting current FOP i.e. 0.20.5 for
Japanese support. I found that, currently FOP doesn't support
Japanese. Please guide me.
regards,
Sanket.
-
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]


(Moved from fop-dev:) RE: Help required -- Converting TeX files to XML

2004-10-20 Thread Andreas L. Delmelle

Hi,

  Can anyone guide me how to add hyphenation
  for Japanese language? I have got .tex file for SJIS i.e.
  SJIS.tex, but according to FOP's documentation,
  I need to convert it in .xml file. I don't
  know how to convert it. So, please guide for the
  same.

Check: http://xml.apache.org/fop/hyphenation.html#patterns

All the relevant data on the creation of FOP hyphenation patterns is
explained there. No real profound knowledge on TeX patterns here, but having
taken a look at a few TeX-files, it looks like it wouldn't pose too much of
a problem to create a FOP hyphenation XML from one of those --maybe one
could write a Java class that does exactly that, or maybe a Perl script
would be more appropriate. Who knows... also conceivable to write a Xerces
XNI TeXParserConfiguration[1] to parse a TeX-file, then use Xerces to send
the generated SAX events back to a file.

HTH,

Andreas

[1] see: http://xml.apache.org/xerces2-j/xni-config.html for an example of a
CSVParserConfig; use spaces instead of commas to tokenize the buffered line
of TeXt, change or add to the element names, add a few rules... --and don't
forget to donate it back to Xerces, as to return the favor ;-)


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



RE: Help me from Outmemory issue

2004-06-14 Thread KS.Bhaskar
Hi Glen,
Thanks for help.

Tell me elaborately what you mean by 'more page sequences'.
Is it more number of fo:simple-page-master or more number of
fo:page-sequence-master master-name=contents  referring to
single-page-master.  

With regards
Bhaskar

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 14, 2004 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Help me from Outmemory issue

You can probably keep your XML the same.  However, you
*might* find it helpful you if you add a metadata row
for the number of rows you have--if you wish to rely
on that number for subsequent XSLT processing logic.

Your XSL stylesheet however--can you rewrite it to
use more page sequences, or more (but smaller) tables?
 Is there some key value in each record that you can
divide by 10, perhaps, to set up 10 page sequences or
10 different tables?  The Mulberry XSLT list can help
you with any XSLT programming that may require.

HTH,
Glen


--- [EMAIL PROTECTED] wrote:
 Hi all, 
 
 I am having out of memory issues when transforming
 my FO -  PDF using 
 fop-0.20.5rc2. I read that using multiple page
 sequences in the XSL and 
 therefore in the FO means that fop will release some
 memory. I don 't
 see how 
 I can do this. My XML file is generated dynamically
 from a database so I
 
 don 't know how big it will be. Is there any
 solutions I can use that
 uses 
 multiple page sequences or possible change the xml
 structure, if not is 
 there another FOP transformer that isn 't as memory
 intensive. Thanks in
 
 advanced for any help. If I havn 't provided enough
 info please ask and
 I can 
 get back to you.
 
  
 
 With regards
 
 Bhaskar
 
 


-
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: Help me from Outmemory issue

2004-06-14 Thread Derek Schenk



From my recent investigations I can assure you there there is no FO 
rendering tool that is less memory intensive, and the current version of FOP is 
one of the best choices in terms of memory usage. I use FOP for report 
generation, and I can have source XML documents that can be from 20kb to 1.2GB 
(yes GB). This is do-able if your willing to accept that performance is 
not going to be stellar, and you have to accept a lot of restrictions in XSL and 
XML development.

Just to head off the inevitable question. Many of the reports are 
stored for future audit purpose, and the number of pages isn't an issue since 
the PDF is searchable. The information needs to be stored in a 
non-(easily)-editable format as at a point in time. The transforms must go 
through the XSL:FO transformation because the end user is able to edit the 
stylesheets and alter visual layout.

Here's some of my experience:
1. The first problem your run into is that none of the XML transformers 
are easily able to handle a 1.2GB XML for transformation. All of them seem 
to insist on loading the entire XML into memory, even when using a SAX or Stream 
input source. There are three solutions. a.) Use SAXON in the preview mode 
which allows you to process the document as you read it, or b.) Write a disk 
based XML DOM solution and extend out the NodeSource class in SAXON (see the 
JDOM input source example), or c) create the FO directly instead of creating XML 
for transformation. 
I choose option b, and I created a Disk based XML that allows DOM style 
access to an XML document of unlimited size. The memory footprint is about 12MB 
regardless of the XML size, but you pay with performance.

2. All of the current FOP tools I looked at usememory to store the 
the pre-rendered FO information. The onlyproduct that I could 
overcome this with was FOP, where after an end of page-sequence it renders to 
disk and free's the memory. In order to use this I determine a logic 
group-by that is frequent enough to reduce memory usage and break on that. It 
results in a new page at the end of every group-by selection, but it 
works. There are a lot of choices for this, you could use something like a 
break on change in first letter in an alpha-name sort (ie moving from A-B 
creates a new page).

By page sequence the fo:tag that is refered to is 
'fo:page-sequence'. Each time a '/fo:page-sequence' is 
encountered the in memory info is rendered.

!!!This means that you can no longer use page numbering, so I use iText 
to post-process the report and add the 'Page x of y' to the bottom of every 
page.

To date, my largest transformation was a 1.1GB FO document, resulting in 
a 378,000 page report. Total transform time, including XML - FO, then 
FO- PDF was about 45 minutes on a P4 2.8 with 512MB RAM. The upper JVM 
memory size was set at -Xmx128m, and during the transform the peak memory usage 
was about 110MB. (so under the maximum)

As a finally note, there is a FOP alternate design project that is 
underway that is addressing the memory usage, but it's not yet 
available

Hope these suggestions help.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Monday, June 14, 2004 
  2:45 AMTo: [EMAIL PROTECTED]Subject: Help me from 
  Outmemory issue
  
  Hi all, I am having out of 
  memory issues when transforming my FO -  PDF using fop-0.20.5rc2. I 
  read that using multiple page sequences in the XSL and therefore in the FO 
  means that fop will release some memory. I don 't see how I can do this. 
  My XML file is generated dynamically from a database so I don 't know how 
  big it will be. Is there any solutions I can use that uses multiple page 
  sequences or possible change the xml structure, if not is there another 
  FOP transformer that isn 't as memory intensive. Thanks in advanced for 
  any help. If I havn 't provided enough info please ask and I can get back 
  to you.
  
  With 
  regards
  Bhaskar


Re: Help me from Outmemory issue

2004-06-14 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
Tell me elaborately what you mean by 'more page sequences'.
Is it more number of fo:simple-page-master or more number of
fo:page-sequence-master master-name=contents  referring to
single-page-master.  
The latter. Use XSLT grouping techniques to achieve this.
The XSL FAQ has all the details zou need to know.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Help me from Outmemory issue

2004-06-14 Thread Glen Mazza
Actually, neither--I'm referring to the
fo:page-sequence formatting object, which is an
immediate child of fo:root and positioned after
fo:layout-master-set, and (optionally)
fo:declarations.

Glen


--- [EMAIL PROTECTED] wrote:
 Hi Glen,
 Thanks for help.
 
 Tell me elaborately what you mean by 'more page
 sequences'.
 Is it more number of fo:simple-page-master or more
 number of
 fo:page-sequence-master master-name=contents 
 referring to
 single-page-master.  
 
 With regards
 Bhaskar
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 14, 2004 3:33 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Help me from Outmemory issue
 
 You can probably keep your XML the same.  However,
 you
 *might* find it helpful you if you add a metadata
 row
 for the number of rows you have--if you wish to rely
 on that number for subsequent XSLT processing logic.
 
 Your XSL stylesheet however--can you rewrite it to
 use more page sequences, or more (but smaller)
 tables?
  Is there some key value in each record that you can
 divide by 10, perhaps, to set up 10 page sequences
 or
 10 different tables?  The Mulberry XSLT list can
 help
 you with any XSLT programming that may require.
 
 HTH,
 Glen
 
 
 --- [EMAIL PROTECTED] wrote:
  Hi all, 
  
  I am having out of memory issues when transforming
  my FO -  PDF using 
  fop-0.20.5rc2. I read that using multiple page
  sequences in the XSL and 
  therefore in the FO means that fop will release
 some
  memory. I don 't
  see how 
  I can do this. My XML file is generated
 dynamically
  from a database so I
  
  don 't know how big it will be. Is there any
  solutions I can use that
  uses 
  multiple page sequences or possible change the xml
  structure, if not is 
  there another FOP transformer that isn 't as
 memory
  intensive. Thanks in
  
  advanced for any help. If I havn 't provided
 enough
  info please ask and
  I can 
  get back to you.
  
   
  
  With regards
  
  Bhaskar
  
  
 
 

-
 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: Help me in Page Border

2004-06-09 Thread Chris Bowditch
J.Pietschmann wrote:
Chris Bowditch wrote:
beacuase block-container is an out of flow object, typically used for 
absolutely positioning data. As such it does not generate content that 
flows onto further pages.

This is not correct. An absolutely positioned block-container is
an out-of-flow object and wont break across pages, but otherwise
a block-container should work the same way a normal block works,
with the exception that the block-container generates reference
areas and therefore can be used to change writing modes and reference
orientation. The FOP maintenance branch implementation isn't complete
in particular with regards to the latter. It should break across pages
unless absolutely positioned though. I suspect the OP did this,
otherwise it wouldn't be of any use for generating the page border
(height is ignored as well unless absolute positioning is in effect).
You are right of course. I was too lazy to explain the fact that 
block-containers dont have to be absolutely positioned but FOP doesnt 
implement them.

Chris

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


Re: Help me in Page Border

2004-06-09 Thread J.Pietschmann
Chris Bowditch wrote:
You are right of course. I was too lazy to explain the fact that 
block-containers dont have to be absolutely positioned but FOP doesnt 
implement them.
Non-absolutely positioned block containers are implemented.
They just don't add any useful features compared to plain
blocks.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help me in Page Border

2004-06-08 Thread J.Pietschmann
Chris Bowditch wrote:
beacuase block-container is an out of flow object, typically used for 
absolutely positioning data. As such it does not generate content that 
flows onto further pages.
This is not correct. An absolutely positioned block-container is
an out-of-flow object and wont break across pages, but otherwise
a block-container should work the same way a normal block works,
with the exception that the block-container generates reference
areas and therefore can be used to change writing modes and reference
orientation. The FOP maintenance branch implementation isn't complete
in particular with regards to the latter. It should break across pages
unless absolutely positioned though. I suspect the OP did this,
otherwise it wouldn't be of any use for generating the page border
(height is ignored as well unless absolute positioning is in effect).
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: help needed with line-height

2004-06-02 Thread Wessel van Norel
[EMAIL PROTECTED] wrote:
Hello,
Using fop 0.20.4 ( tried 0.20.5, same behavior ) I'm struggling trying 
to understand the usage of line-height. I have a word doc that I am 
trying to clone via XSL FO/FOP and cannot get the line spacing to match. 
I am using Times New Roman 12pt with font embedding. The font metrics 
files were generated using the times.ttf file located in c:\winnt\fonts 
( on a win= 2k machine). Without specifying any line-height the lines 
are spaced much further apart that the MS word file ( I don't seem word 
doing anything special with the spacing BTW, just single space). I've 
experimented with line-heght =3D 12pt and that actually makes the 
spacing too small. Shifting to % values and a lot of trial and error I 
ended up using line-height=107% and it seems to match pretty well. This 
is pure dumb luck though, can anyone please explain or point me in the 
right direction to understand how line-height is being calculated if I 
don't specify it, and why 107% of 12pt font seems like the magic 
number to match word single spacing with 12 pt
Times new Roman?

I'm stuck, any help is much appreciated.
thanks,
dave
I've been struggeling with the line-height myself as well. I came to the 
conclusion that the ascender and descender in the font metrics file are 
also a factor that you need to calculate the correct line height.

Unfortenately I've not documented properly how I did my calculations :(
If I recall correctly it is something like:
line-height + line-height * (ascender + (- descender))
where the line-height is specified in the same measurement units as the 
one being used in the metrics file (was it millipoints?). The descender 
is negative, that must be inverted.

I hope this helps you to find the correct answer.
Regards,
Wessel van Norel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help with Tiff Images

2004-03-31 Thread Chris Bowditch
Cameron Ingram wrote:
snip/
Reverting to TIFF image handling through JAI: Error while loading image
http://localhost:8080/generatepdf/genpdf?file=2.TIF : class
org.apache.fop.image.TiffImage - length mismatch on read
What does this error mean??
If any one could provide some help, it would definatly be appreciated.
Have you read the following page on Fop's website?
http://xml.apache.org/fop/graphics.html#tiff
sounds like your Tiff doesnt meet with the requirements stated.
Chris

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


Re: Help with Tiff Images

2004-03-31 Thread Cameron Ingram
I was able to load the image into the pdf by loading it directly from a
file instead of a servlet. 

I do have another problem, has any one had some success with Multipage
tiff. I downloaded TIFFRenderer for FOP, version 0.9 and used that but I
have been unsucessful with using it and generating a PDF from it. If I
just use the standard renderer Driver.RENDER_PDF the tiff image is
loaded but only loads the first image.

Does any one have any ideas??

Thanks Cameron


 [EMAIL PROTECTED] 03/31/2004 10:17:46 AM 
Cameron Ingram wrote:

snip/

 Reverting to TIFF image handling through JAI: Error while loading
image
 http://localhost:8080/generatepdf/genpdf?file=2.TIF : class
 org.apache.fop.image.TiffImage - length mismatch on read
 
 What does this error mean??
 
 If any one could provide some help, it would definatly be
appreciated.

Have you read the following page on Fop's website?

http://xml.apache.org/fop/graphics.html#tiff 

sounds like your Tiff doesnt meet with the requirements stated.

Chris



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



---
This e-mail is intended for the addressee shown. 
It contains information that is confidential and 
protected from disclosure. Any review, dissemination 
or use of this transmission or its contents by persons 
or unauthorized employees of the intended organizations 
is strictly prohibited. 

The contents of this email do not necessarily represent 
the views or policies of PSCU Financial Services.


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



Re: Help with Tiff Images

2004-03-31 Thread Clay Leeds
On Mar 31, 2004, at 7:34 AM, Mike Brodbelt wrote:
Multipage TIFF images have a poor level of support in general. Most
applications that handle TIFFs just readl and display the first page of
a multipage TIFF. I'd suggest that you get the TIFF utils from
http://www.libtiff.org/, and work tiffsplit into your workflow. That'll
separate out the multipage tiff into single image files with 
predictable
names. I don't think you're going to get multipage TIFF support 
natively
in FOP for a while.

HTH,
Mike.
Thanks for the tip, Mike! That looks like something we'll be adding to 
the FOP Resources page... BTW, could you put together some sort of 
'tutorial' explaining how to 'work tiffsplit into your workflow'? I'm 
sure that would be helpful for more than a few people. Thanks!

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


RE: Help with the sample FopServlet

2004-01-07 Thread Andreas L. Delmelle
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]

snip /
 I'm sure I'm missing something, but I can't find the answer in the list
 archives or the FAQ.  I downloaded FOP 0.20.5 and ran the build.bat
 script in C:\apache\fop-0.20.5\examples\servlet.  Then I dropped the
 fop.war file into Tomcat 4.1.29 (on Windows 2000).


Hi,

Not too sure about the intended location of readme.fo, but I think the
readme file is a bit misleading (asking for problems). It's probably better
to use full path names:

 
http://localhost:8080/fop/servlet/FopServlet?fo=/somedir/somesubdir/readme.f
o
  Tip: If you have problems using Internet Explorer, try this URL:
 
http://localhost:8080/fop/servlet/FopServlet?fo=/somedir/somesubdir/readme.f
oext=.pdf


Else it's interpreted to be relative to the current working directory (
explains why placing it in '/path/to/tomcat/bin' works )

That way, at least the question is avoided...

Hope it helps!

Cheers,

Andreas


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



Re: Help: how to make an external link to a specific position in an external PDF file

2003-11-27 Thread Chris Bowditch
J.Pietschmann wrote:
snip/
See
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19693
I don't think the patch made it into the code yet.
You have the power to change that :-)
Chris

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


Re: Help: how to make an external link to a specific position in an external PDF file

2003-11-26 Thread J.Pietschmann
Urban Spielmann wrote:
:( But this link does NOT work; AdobeReader opens the internet browser
with the address http://file.pdf#MY_BLOCK_ID:
fo:basic-link
external-destination=file.pdf#MY_BLOCK_IDLink/fo:basic-link
 
So, how do I have to specify a link to a specific position in an
external file of the SAME directory?
See
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19693
I don't think the patch made it into the code yet.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HELP HELP, Big Memory Problem

2003-09-15 Thread Chris Bowditch
From: Marco Knuettel [EMAIL PROTECTED]
snip/
export JAVA_OPTS=$JAVA_OPTS -Djava.awt.headless=true -Xmx1024m -Xms1024m
If you cant increase the JVMs memory anymore then you will have to look at 
the structure of your FO that is being processed by FOP. One way to reduce 
memory usage is to break up your FO into multiple page-sequences.

Have you seen
http://xml.apache.org/fop/running.html#memory ?
Chris
_
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Help on error message: Error in color property value ''

2003-09-15 Thread cknell
Never mind. I found the problem. Sorry to trouble you all.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: [EMAIL PROTECTED]
Sent: Mon, 15 Sep 2003 16:24:49 -0400
To:   [EMAIL PROTECTED]
Subject:  Help on error message: Error in color property value ''

This is my first go at FOP, although I have a good deal of experience with 
XML/XSLT. I am weak on Java. I have prepared an XSL-FO document that I'm trying 
to process with FOP. When I do that, I get this error message:

[ERROR] Error in color property value '': org.apache.fop.fo.expr.PropertyExcepti
on: No conversion defined

In fact, I get it 45 times. I used the color and background-color attributes 
123 times in this document, so I have trouble connecting those with this error 
message based on the count, although I can't see any association to other 
elements or attributes. Here is a typical opening element tag with a color 
attribute:

fo:inline color=#EE7744

Can anyone give me guidance on interpreting the error message and eliminating 
the offending markup? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

-
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: Re: Help for absolute positioned block-container inside table-cell

2003-09-07 Thread Andreas L. Delmelle
 I don't know if it's possible for you to tweak the application in
 generating
 the xslt to get this result...


Before you go off and try I should add that after running a few tests with
your files... it indeed does seem hard to get the results you want ( I saw a
few color atts not working there )

Just to add a little notes on the supplied fo:

- I'm not sure what to make of the width of the block-container being set to
100%
100% of what? In this case, I think that would be the body-region. You might
want to specify this more explicitly ( region-body width minus the offset
for the containing block-container )

- I would also try to avoid, as much as possible, mixing different units of
measurement...
( might be a matter of taste, though :) )

And to give you a more detailed example of the solution I'm suggesting, see
one of my tests in attach.

Greetz,

Andreas Delmelle


p23.fo
Description: Binary data


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

RE: Re: Help for absolute positioned block-container inside table-cell

2003-09-07 Thread Jay Chiu
The tables may span multiple pages. The free form data may be in
any place of any page, depending on the data in database. Thus I
put all absolute positioned block-containers inside a relative
positioned block-container to make the absolute position
relative to the outside block-container. 

 I don't know if it's possible for you to tweak the application
in
 generating
 the xslt to get this result...
Thus it is impossible to tweak xslt. Is there any other aproach
to implement the report I listed in previous message?

I'm not sure what to make of the width of the block-container
being set to 100%
Previous it is inside a table-cell and use 100%. I did not
change it. I guess it should work.

I would also try to avoid, as much as possible, mixing
different units of measurement...
I have changed test fo many times. Some units are auto
generated. Some are just manually added. 

Thanks.

Jay

 On Sun, 7 Sep 2003, Andreas L. Delmelle
([EMAIL PROTECTED]) wrote:

  From: Jay Chiu [mailto:[EMAIL PROTECTED]
 
  I feel right now the absolute positoned fo:block-container
is
  only useful in header and footer. Inside body, the
absoulted
  positioned block-container is only relative to the beginning
of
  the body. This is totally useless.
 
 
 Hmmm. Seems like you would like the 'position=absolute' to
refer to
 'absolute, except for the fact that there is already a table
placed in the
 flow...'. I would certainly like to keep the behavior of this
attribute the
 way it works currently, meaning 'absolute, on the current page
in the
 flow...' ( see:
http://www.w3.org/TR/xsl/slice7.html#absolute-position as to
 why I think the 'absolute' in this case, is behaving just like
it should )
 
 So a first possibility I think of is to increase the
'top'-attribute of the
 block-container with the height of the table above it.
However, the spec
 also indicates that a problem would be the second table, as
this would start
 where the first one ended... unless you were to specify a
'space-before'
 exactly equal to the height of the block-container. However,
the FOP
 compliance page indicates that 'space-before' is only
partially supported,
 so maybe a dummy, no-bordered, one-row table with a row that
high could do
 the trick.
 ( Another problem could be tables spanning across pages, which
would have
 you define the 'top'-attribute for the block-container
relative to the part
 of the table on the page where that block-container happens to
be placed ...
 this is making me a bit dizzy :) )
 
 I don't know if it's possible for you to tweak the application
in generating
 the xslt to get this result...
 
 Hope it helps,
 
 Andreas Delmelle
 
 

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



Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



RE: Re: Help for absolute positioned block-container inside table-cell

2003-09-07 Thread Andreas L. Delmelle
 From: Jay Chiu [mailto:[EMAIL PROTECTED]

 The tables may span multiple pages. The free form data may be in
 any place of any page, depending on the data in database. Thus I
 put all absolute positioned block-containers inside a relative
 positioned block-container to make the absolute position
 relative to the outside block-container.


Don't know if you have taken a look at the example i sent afterwards, but
seems the latter part is working. It's only the position of the outer,
relative positioned block-container which needs to take into account the
eventual portion of the table already on the page...

 Thus it is impossible to tweak xslt. Is there any other aproach
 to implement the report I listed in previous message?


Can't think of any right away. XSL-FO is very (printed-)page-layout-oriented
(as is PDF in its roots), so I guess these coördinates need to become fix at
some point (at the very least, in theory, it should be possible to derive
these from the generated fo - whether intermediate or not...)

 I'm not sure what to make of the width of the block-container
 being set to 100%
 Previous it is inside a table-cell and use 100%. I did not
 change it. I guess it should work.


As you could derive from the regions overlapping the page-margin, it didn't.
I think the appropriate interpretation of the '100%' would be 'the width of
the containing block-container'... but that inside block-container already
has an offset from the containing one.
Again, default XSL-FO behaviour, neatly according to spec
http://www.w3.org/TR/xsl/slice7.html#width

In any case - and I think I have mentioned it before somewhere in this list,
but in case you missed it - don't rely too much upon the renderer to guess
what effect you are trying to achieve. Take care, especially where it comes
to relative attribute values.


Cheerz,

Andreas Delmelle


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



RE: Re: Help for absolute positioned block-container inside table-cell

2003-09-07 Thread Andreas L. Delmelle
 From: Jay Chiu [mailto:[EMAIL PROTECTED]

 In your example, you set the outer block-container relative to
 the beginning of the page.
 fo:block-container
 width=4.7in
 height=2in
   top=3in
 left=3.8in
 But as I mentioned the table height depends on the number of
 data rows in database, the table may span a few pages, I am
 unable to set the top attribute on the outer block-container.
 In you example, if I add one more table-row, it breaks. If I add

So what I mean is, you know beforehand ( that is to say: right before the fo
is piped through to FOP ) how many rows are in each table *and* you know the
row-height, the body-region-height, etc. In short, all the information is
available to perform the necessary calculations by hand ( at that particular
point in time ), so with a bit of imagination this should actually be
possible to implement... ( I'm thinking in the direction of iterating
through the fo once, before the actual rendering, and replacing all the
'top'-attributes for the outer block-containers to their exact values WRT
the page where they are going to end up... This sort of 'correction' would
hardly be worth the effort to add to FOP itself though, IMO - leaves at
least some responsibility to the users to supply FOP with state-of-the-art,
well-formed XSL-FO :) )

What you also should have done, each time when adding X new rows to the
table, was increase the top attribute for the outer block-container by ( X *
row-height ), alternately ( (X * row-height) - ((number-rows * row-height)
mod region-body-height) ), or sth of the sort...
[ For the following tables, you should, each time have to take into account
the number of rows of the previous tables as well as the number of
block-containers placed in between... ]

 5 more table-row's, fop got error:

 [INFO] [1]
 [ERROR] null


Most probably due to an illegal fo construct, I fear... Could be something
as small as forgetting a tag somewhere when making the adjustments? Try
performing this with the '-d' option, sth will turn up...

Greetz,

Andreas Delmelle


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



Re: Re: Help for absolute positioned block-container inside table-cell

2003-09-05 Thread Jay Chiu
Do you have any plan to implement the block-container inside
table-cell in the near future?

Thanks a lot.

Jay



 On Thu, 04 Sep 2003, Chris Bowditch
([EMAIL PROTECTED]) wrote:

 From: Jay Chiu [EMAIL PROTECTED]
 
 I tried to set absolute positioned fo:block-container inside
 table-cell. But the generated pdf does not contain the
 block-container contents. The block-container works fine
 outside
 the table.
 Does any one know how to make the absolute positioned
 block-container work inside a table-cell?
 
 
 FOP does not fully support block-containers. Currently FOP
supports 
 absolutely positioning a block-container, but that means
relative to the 
 whole page. What I *think* you are asking for is to have a
block-container 
 relatively positioned within a table-cell. FOP doesnt support
this.
 
 Chris
 

_
 Sign-up for a FREE BT Broadband connection today! 
 http://www.msn.co.uk/specials/btbroadband
 
 

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



Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



RE: Re: Help for absolute positioned block-container inside table-cell

2003-09-05 Thread Andreas L. Delmelle
 Do you have any plan to implement the block-container inside
 table-cell in the near future?

Can't answer this one, but I somehow feel compelled to add that I fail to
see, in the snippet posted with the original question, why you would *need*
a block-container in this case. I think the desired effect can be achieved
by leaving out the block-container and subsequently using a nested table and
dummy columns / rows to create the 'left'  'top' of the 'container'.

( or perhaps I'm not enough of an expert in XSL-FO to see the possible
'traps' in such a solution... ? )

Greetz,

Andreas Delmelle


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



RE: Re: Help for absolute positioned block-container inside table-cell

2003-09-05 Thread Jay Chiu
We are trying to create reports for multiple nested categories.
Each category has free form header and footer. But they all
share the same column headings. We have no problem with the HTML
reports, because div can be put inside table cell. 

I also tried to use SVG, but also got some problem. I will send
my java code for batik extension for you to check.

Thanks.

Jay 



 On Fri, 5 Sep 2003, Andreas L. Delmelle
([EMAIL PROTECTED]) wrote:

  Do you have any plan to implement the block-container
inside
  table-cell in the near future?
 
 Can't answer this one, but I somehow feel compelled to add
that I fail to
 see, in the snippet posted with the original question, why you
would *need*
 a block-container in this case. I think the desired effect can
be achieved
 by leaving out the block-container and subsequently using a
nested table and
 dummy columns / rows to create the 'left'  'top' of the
'container'.
 
 ( or perhaps I'm not enough of an expert in XSL-FO to see the
possible
 'traps' in such a solution... ? )
 
 Greetz,
 
 Andreas Delmelle
 
 

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



Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



RE: Re: Help for absolute positioned block-container inside table-cell

2003-09-05 Thread Andreas L. Delmelle
 From: Jay Chiu [mailto:[EMAIL PROTECTED]

 We are trying to create reports for multiple nested categories.
 Each category has free form header and footer. But they all
 share the same column headings. We have no problem with the HTML
 reports, because div can be put inside table cell.


I'm no expert in HTML, so I must shamefully admit I had to look up what the
div-tag is used for. To my surprise - or should I say exactly the
contrary? -  Beyond defining a block, DIV ... itself doesn't do
anything.
Still I lack sufficient info to help you out on this, I fear... although I'm
sure there *is* a perfectly working XSL-FO-construct to obtain the desired
results.

(Note on the side: In common word-processors, like MS Word, you have the
option of showing all punctuation marks. Look at this like 'viewing the
source' of a web page - well, it's not completely the same, I know, but
stick with me. You open a document created by someone else. Looks neatly
layed out  all that. You make a few changes, and suddenly that nice layout
goes down the drain... Why? Because that 'someone' used spaces in a
proportional font (instead of using tabs), or because he used tabs (instead
of defining columns)... Catch the drift? There are always many ways to reach
a certain end, but most of them merely give you what you want, *nothing
more*...)

Is it possible for you to 'draw' an example of the layout you are trying to
create? I'd be more than happy to provide you with a few hints  tips to
help you achieve your goal. Forgive my ignorance where it comes to HTML. [ I
studied computer science for a while (no cert, however), but abandoned it
for a few years, so I guess I missed out on the whole HTML-hype. Java  XML
redrew my attention, though... ] As I indicated above, I still don't see why
you absolutely need *that* particular construct, so my advice in this case
would be to stop thinking HTML for a minute... ?

 I also tried to use SVG, but also got some problem. I will send
  ^^

Hmmm, where have we heard that one before? ;) I don't mean to be rude but
could you please specify? Otherwise, my answer would be 'Use the force!' :)

 my java code for batik extension for you to check.


I think I'll leave this one to dev for the moment... :) (By far enough
knowledge about the Batik API, I'm afraid)


 Thanks.


You're welcome

greetz,

a_l.delmelle

ps : Watch out for an upcoming poll on this list... Oops, seems I missed
that 'Reply All...' button by a millipoint again...


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



RE: HELP: fop and oc4j

2003-09-05 Thread Andreas L. Delmelle
 From: Zhang, Li [mailto:[EMAIL PROTECTED]

 I'm trying to run the servlet example of FOP in OC4J (Oracle App Server
 9.0.3) but always get the following error. However when I run the
 embedded
 examples I can successfully create the report. Has anyone
 successfully used
 FOP with OC4J? Do you know how to work around the transformer issue? I'm
 using the latest FOP and oc4j 9.0.3.

I think the OC4J ships with its own JDK, and if I remember correctly, this
is still version 1.3.x. Might have sth to do with that...

Greetz,

Andreas Delmelle


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



RE: HELP: fop and oc4j

2003-09-05 Thread Zhang, Li
After searching Oracle's forums, I figured it out that Oracle's XML parser
and XSLTransformer does not work with FOP. So if I use Xerces and Xalan with
OC4J (for example, by specifying -D parameter or setting the system
property) I can generate PDF output with FOP. Wonderful!

Thanks for your responses. Enjoy your weekend.

Li


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



Re: Help for absolute positioned block-container inside table-cell

2003-09-04 Thread Chris Bowditch
From: Jay Chiu [EMAIL PROTECTED]
I tried to set absolute positioned fo:block-container inside
table-cell. But the generated pdf does not contain the
block-container contents. The block-container works fine
outside
the table.
Does any one know how to make the absolute positioned
block-container work inside a table-cell?
FOP does not fully support block-containers. Currently FOP supports 
absolutely positioning a block-container, but that means relative to the 
whole page. What I *think* you are asking for is to have a block-container 
relatively positioned within a table-cell. FOP doesnt support this.

Chris
_
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband

-
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-30 Thread Bonnie Yelverton
Title: Message









I tried changing the
suffix to various things and it wouldnt work, so now I have installed a program
called PKZIP, which seems to be ready for most anything.

Thanks for all the
good suggestions. Now Im ready to go!

Bonnie



-Original Message-
From: Peter Abbot
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 29, 2003 4:28
PM
To: [EMAIL PROTECTED]
Subject: RE: Help! Windows XP
won't unzip the .tar.tar or .tar.gz files!





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 inthe 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'veused yourXP
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/


























image001.gif

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'veused yourXP 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 Daniel Maher
You can use cygwin to gunzip it and untar it. Please, read a little more on the fop site. 
Bonnie Yelverton [EMAIL PROTECTED] wrote:






I tried to search the archives for answers to my problem, but still don’t have FOP running on my Windows XP computer. 
I’ve changed the .tar.tar suffix to .tar.gz, but the zip function in Windows XP doesn’t recognize it. I don’t seem to have WinZip installed anymore, since it’s not usually necessary. 
I’d really like to get to see what happens with the .fo files I’m creating for a class! 
Bonnie




-Dan
I'd kill for a Nobel Peace Prize.
http://www.northernfern.com/Anna/
NEW! http://www.freeroller.net/page/toastchee/Weblog

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: help needed for images

2003-06-09 Thread Jeremias Maerki
You're probably using an older FOP version. Please upgrade and the PDFs
should become smaller.

On 09.06.2003 16:06:37 amar wrote:
 i am generating the pdf file from fo file, it works good, but i need to
 add images to the pdf file, i have images in jpg format and images size
 is around 200k. when the pdf is renedred, it creates the pdf file with
 huge size around (4MB) , any solutions to this.
 
 i use the following to add images to pdf file
 
 fo:external-graphic  text-align=\center\  
 src=\file:c:/9ias/apache/jserv/webapps/vip/uimages/01714_5.jpg\/


Jeremias Maerki


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



RE: help about fo:table-header

2003-05-16 Thread John Marshall
Jean-Francois Selber wrote:

 In fact I can't used different page-master and  the region-before to replace
 the table-header
 because I can have successivly two table in the same page sequence and
 for this two table I want to display header only on the second page. In fact
 header would be only display if the table in too big
 for the current page, then only if the table is write on different page

 Thanks

This sounds like the problem I just had. My application is an html-to-pdf 
converter. If the first table row contains only table headers then I want to 
propagate it by way of an fo:table-header. This also implies suppressing that 
row from the table body, as well as counting columns in the first row. Here are 
my templates:

  xsl:template match=table
fo:table table-layout=fixed width=100%
!-- First row sets column count and possible table header --
xsl:apply-templates select=descendant::tr[1] mode=columns/
fo:table-body
xsl:apply-templates select=descendant::tr[position()!=1] mode=row/
/fo:table-body
/fo:table
  /xsl:template

  !-- Set columns by width or column span, default to even width --
  xsl:template match=tr mode=columns
xsl:for-each select=th|td
  xsl:choose
  xsl:when test=count(@width)!=0
fo:table-column
xsl:attribute name=column-width
  xsl:textproportional-column-width(/xsl:text
  xsl:value-of select=substring-before(@width[1], '%')/
  xsl:text)/xsl:text
/xsl:attribute
/fo:table-column
  /xsl:when
  xsl:when test=count(@colspan)!=0
xsl:call-template name=colspan
  xsl:with-param name=count select=number(@colspan)/
/xsl:call-template
  /xsl:when
  xsl:otherwise
fo:table-column column-width=proportional-column-width(1)/
  /xsl:otherwise
  /xsl:choose
/xsl:for-each
xsl:choose
!-- Propagate an all-th row as a table header --
xsl:when test=count(th)!=0 and count(td)=0
  fo:table-header
  fo:table-row
  xsl:apply-templates/
  /fo:table-row
  /fo:table-header
/xsl:when
!-- If not all-th, then treat as a normal row --
xsl:otherwise
  xsl:apply-templates select=. mode=row/
/xsl:otherwise
/xsl:choose
  /xsl:template

  xsl:template name=colspan
xsl:param name=count/
xsl:if test=number($count)gt;0
  fo:table-column column-width=proportional-column-width(1)/
  xsl:call-template name=colspan
xsl:with-param name=count select=number($count)-1/
  /xsl:call-template
/xsl:if
  /xsl:template

  xsl:template match=tr mode=row
fo:table-row keep-together=always
xsl:apply-templates/
/fo:table-row
  /xsl:template

I hope this is helpful.

John Marshall
Accurate Software

The Courtyard, Denmark Street, Wokingham, Berkshire, RG40 2AZ, UK.
Tel: +44 (0)118 977 3889
Fax: +44 (0)118 977 1260
http://www.accuratesoftware.com http://www.accuratesoftware.com




-Original Message-
From: Selber Jean-François [mailto:[EMAIL PROTECTED]
Sent: 15 May 2003 17:09
To: [EMAIL PROTECTED]
Subject: Re: help about fo:table-header





- Original Message -
From: Clay Leeds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 5:24 PM
Subject: Re: help about fo:table-header


 The idea is to use a different page-master on the second and subsequent
 page. Then, you can put your table-header block in the region-before.

 On 5/15/2003 8:07 AM, Selber Jean-François wrote:
  I want to find a way to not display table-header in first time and only
  display header on the start
  of next page if the table is too big to be display on the same page

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



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



The UK office of Accurate Software will be moving offices from May 19th to the 
following new location:
80 Peach Street, Wokingham, Berkshire, RG40 1XH.
The existing telephone and fax numbers will remain unchanged.

Accurate Software

[EMAIL PROTECTED]
www.accuratesoftware.com

Europe . North America . Australasia . Africa

The information in this email is confidential and privileged and is intended 
only for the use of the individual or entity listed above.  If you are neither 
the intended individual, or entity listed above, nor the person responsible for 
the delivery of this email to the intended recipients, you are hereby notified 
that any unauthorised distribution, copying or use of this email is prohibited. 
If you have received this email in error, please notify the Accurate system 
manager at [EMAIL PROTECTED] or on +44 (0)118 977

Re: help about fo:table-header

2003-05-16 Thread Selber Jean-François
Thanks a lot!!

The solution to solve my problem is to use fop extensions
http://xml.apache.org/fop/extensions.html
The extension I want to use is continued-label extension but I can't found
the file examples/fo/basic/contlabel.fo
Could someone send me this file or give me a sample of this
continued-label extension.
At the end of the extension description
http://xml.apache.org/fop/extensions.html I found:

Continued-label (for table-header/-footer
Please see examples/fo/basic/contlabel.fo

but I don't found this file

Thanks

- Original Message -
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 6:21 PM
Subject: Re: help about fo:table-header


 I think, the best match I found while looking in the mailing list
 archives is:
 http://marc.theaimsgroup.com/?l=fop-userm=103260578416087w=2?

 Here are the threads of interest:
 http://marc.theaimsgroup.com/?t=10324970642r=1w=2
 http://marc.theaimsgroup.com/?t=10377466451r=1w=2
 http://marc.theaimsgroup.com/?t=10038201961r=1w=2

 Maybe that helps. Difficult topic at any rate.

 On 15.05.2003 15:34:26 Selber Jean-François wrote:
  Hello,
  I asked yesterday some help in order to build with FOP  a pdf document
  from a FO document which may contain a large table and I wished
  differentiate the header of the first page containing the table from the
  header of the next pages.
 
  I tried to use unfortunately the notion of dynamic fo:headers.
 
 
  Another way is to not print a header on the first page which contains
  the beginning of the table and to only print this header on the next
  pages.
 
  How can I do this!



 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: help about fo:table-header

2003-05-15 Thread Clay Leeds
Jean-François,
I believe this link describes how to do what you're trying to do:
http://www.dpawson.co.uk/xsl/sect3/pagelayout.html#d9245e184
Also, the FAQ list there is really great for FO Questions:
http://www.dpawson.co.uk/xsl/sect3/index.html
Bon chance!
On 5/15/2003 6:34 AM, Selber Jean-François wrote:
Hello,
I asked yesterday some help in order to build with FOP  a pdf document
from a FO document which may contain a large table and I wished
differentiate the header of the first page containing the table from the
header of the next pages.
I tried to use unfortunately the notion of dynamic fo:headers.
Another way is to not print a header on the first page which contains
the beginning of the table and to only print this header on the next
pages.
How can I do this!
Sorry for my poor English
Thank you

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


Re: help about fo:table-header

2003-05-15 Thread Selber Jean-François
Thanks for your help
But my problem is not on page header but on table header

I want to find a way to not display table-header in first time and only
display header on the start
of next page if the table is too big to be display on the same page

Thank you


- Original Message -
From: Clay Leeds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 4:32 PM
Subject: Re: help about fo:table-header


 Jean-François,

 I believe this link describes how to do what you're trying to do:

 http://www.dpawson.co.uk/xsl/sect3/pagelayout.html#d9245e184

 Also, the FAQ list there is really great for FO Questions:

 http://www.dpawson.co.uk/xsl/sect3/index.html

 Bon chance!

 On 5/15/2003 6:34 AM, Selber Jean-François wrote:
  Hello,
  I asked yesterday some help in order to build with FOP  a pdf document
  from a FO document which may contain a large table and I wished
  differentiate the header of the first page containing the table from the
  header of the next pages.
 
  I tried to use unfortunately the notion of dynamic fo:headers.
 
 
  Another way is to not print a header on the first page which contains
  the beginning of the table and to only print this header on the next
  pages.
 
  How can I do this!
 
 
  Sorry for my poor English
  Thank you


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




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



Re: help about fo:table-header

2003-05-15 Thread Clay Leeds
The idea is to use a different page-master on the second and subsequent 
page. Then, you can put your table-header block in the region-before.

On 5/15/2003 8:07 AM, Selber Jean-François wrote:
I want to find a way to not display table-header in first time and only
display header on the start
of next page if the table is too big to be display on the same page
--
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]


Re: help about fo:table-header

2003-05-15 Thread Selber Jean-François
In fact I can't used different page-master and  the region-before to replace
the table-header
because I can have successivly two table in the same page sequence and
for this two table I want to display header only on the second page. In fact
header would be only display if the table in too big
for the current page, then only if the table is write on different page

Thanks



- Original Message -
From: Clay Leeds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 5:24 PM
Subject: Re: help about fo:table-header


 The idea is to use a different page-master on the second and subsequent
 page. Then, you can put your table-header block in the region-before.

 On 5/15/2003 8:07 AM, Selber Jean-François wrote:
  I want to find a way to not display table-header in first time and only
  display header on the start
  of next page if the table is too big to be display on the same page

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



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



Re: help about fo:table-header

2003-05-15 Thread Jeremias Maerki
I think, the best match I found while looking in the mailing list
archives is:
http://marc.theaimsgroup.com/?l=fop-userm=103260578416087w=2?

Here are the threads of interest:
http://marc.theaimsgroup.com/?t=10324970642r=1w=2
http://marc.theaimsgroup.com/?t=10377466451r=1w=2
http://marc.theaimsgroup.com/?t=10038201961r=1w=2

Maybe that helps. Difficult topic at any rate.

On 15.05.2003 15:34:26 Selber Jean-François wrote:
 Hello, 
 I asked yesterday some help in order to build with FOP  a pdf document
 from a FO document which may contain a large table and I wished
 differentiate the header of the first page containing the table from the
 header of the next pages.
 
 I tried to use unfortunately the notion of dynamic fo:headers. 
 
 
 Another way is to not print a header on the first page which contains
 the beginning of the table and to only print this header on the next
 pages.
 
 How can I do this!



Jeremias Maerki


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



RE: Help with JAI, TIFF, and FOP

2003-05-13 Thread Victor Mote
Victor Mote wrote:

 J.Pietschmann wrote:

  Contrary to the documentation, JAI support in 0.20.4 requires
  nontrivial code changes. Simply dropping in the JAI API jar isn't
  sufficient.

 I still don't have time to look at the code today. Do you think
 this comment
 was intended to document the redesign branch instead of the maintenance
 branch?

OK, now I understand this to be distinguishing between 0.20.4 and the 0.20.5
release candidates. I will open a thread on fop-dev to discuss
synchronization of the web site with our releases.

Victor Mote


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



Re: Help with JAI, TIFF, and FOP

2003-05-12 Thread Jeremias Maerki
Comments inline.

On 12.05.2003 20:02:18 Steve Albin wrote:
 I am using the fop 0.20.4 binary distribution on Windows.
 
 
 I have a couple of questions I'm hoping that others can help me with.
 
 
 1) I am unable to get FOP to invoke JAI to handle a TIFF or PNG. I have
 copied the jai_core.jar and jai_codec.jar files to
 {fop-install-lib}\lib. 
 
  
 
 Here is my FO:
 
 
   fo:external-graphic 
 
 src=url('file:///C:/image.tiff')/
 
 
 When I invoke FOP with the JAI libraries in the path I get the following
 error:
 
 [ERROR] Error while creating area : Error creating FopImage object
 (file:/C:/image.tiff) : Jimi image library not available
 
 
 Why would I get the Jimi image library not available if I'm trying to
 use JAI?

This happens when only JIMI support is compiled in and JIMI is not in
the classpath. See 2) for more.

 2) I read through the thread on clarifications about using JAI/JIMI
 with FOP and it appears that those who successfully used JAI had to
 build FOP themselves. Does the binary distribution really support JAI as
 described or do I need to actually built FOP myself to support it? Also,
 should I be using a different version of FOP?

0.20.4 binary seems to have been compiled without JAI support. But it
contains JIMI support. You have two choices:
1. Use the 0.20.4 source dist and compile yourself.
2. Use 0.20.5rc or 0.20.5rc2 binary dist.

 3) I cannot render a TIFF in a PDF with the JIMI library
 
 If I invoke FOP with the JIMI library in the path I get the following 
 
 
 [ERROR] Error while creating area : Error while loading image
 file:/C:/image.tiff : class java.lang.Exception - Image error

0.20.4 still contained support for TIFF though JIMI but JIMI being old
software may not support all subformats. I think you're trying to open a
TIFF image to supported by JIMI.

A comment to those who love details: In 0.20.5xxx TIFF support through
JIMI got indirectly disabled by the addition of the TIFFImage class
which derives from JAIImage. This made direct embedding of JPEG and
CCITT subformats in PDF possible but at the same time disabled TIFF when
JIMI is used.



Jeremias Maerki


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



Re: Help with JAI, TIFF, and FOP

2003-05-12 Thread J.Pietschmann
Jeremias Maerki wrote:
0.20.4 binary seems to have been compiled without JAI support. But it
contains JIMI support. You have two choices:
1. Use the 0.20.4 source dist and compile yourself.
Contrary to the documentation, JAI support in 0.20.4 requires
nontrivial code changes. Simply dropping in the JAI API jar isn't
sufficient.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help: Output from servlet is garbage

2003-04-28 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
First of all thanks for clearing me up on the IE issue, etc.
The problem I am trying to solve is generating the fo: without having to 
write and read from a file. Either there aren't any or I was so thick as 
not to see any examples of doing this without having to do this. Are you 
suggesting there is some other way of doing this without using files? I 
would really appreciate (as usual!) any pointers on how to do file-less 
servlet generation of the pdf.
Did you have a look at
http://xml.apache.org/fop/embedding.html
especially
  http://xml.apache.org/fop/embedding.html#servlet-transform
(linked from the FAQ)
J.Pietschmann

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


RE: Help: Output from servlet is garbage

2003-04-25 Thread Adam Shelley
The giberish is your pdf in binary format.  if you are using ie add
dummy.pdf onto the end to ensure it will open it in the acrobat plugin.
Check the docs regarding this.

-Adam

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: April 25, 2003 1:40 PM
To: [EMAIL PROTECTED]
Subject: Help: Output from servlet is garbage




FOP version: fop-0.20.3
Platform: Win2K
WebSphere V5.0
J2EE Version: 1.3

I am getting following gibberish as a result of parsing the tollowing fo:
document. Apologies if this is too much too ask here.

I am also getting the following messages, but I think these are only page
size issues that shouldn't cause this result.

GIBBERISH EXTRACT
%PDF-1.3 %?«¬­ 4 0 obj  /Type /Info /Producer (null)  endobj 5 0 obj
 /Length 1581 /Filter /FlateDecode  stream x???Ks?HF??Z??(??2?xL ?
(`? I2 ?=W­n??·7???mY?a?'¤­??/?B?(U ­jc+MHM?®dM??O???
«?2}??µ¤2q?'+^QZ ???/ ? ??N? 4|*«?o?_?¶w????f?
|?»'W?S-?b*'V?« nDm­??O?¶fU?LF??)??t Ak??T|????}
xqZi#8f?ZB­?qS3u d?¬­??
/GIBBERISH EXTRACT

XML FO DOC follows:

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
        fo:layout-master-set
                fo:simple-page-master master-name=first page-height
=21cm page-width=29.7cm margin-top=1cm margin-bottom=2cm
margin-left=2.5cm margin-right=2.5cm
                        fo:region-body margin-top=3cm /
                        fo:region-before extent=3cm /
                        fo:region-after extent=1.5cm /
                /fo:simple-page-master
        /fo:layout-master-set
        fo:page-sequence master-reference=first
                fo:flow flow-name=xsl-region-body
                        fo:block font-size=11pt font-family=sans-serif
font-weight=bold text-align=left border-top-width=5px
border-top-style=solid border-top-color=blue border-bottom-width=5px
border-bottom-style=solid border-bottom-color=blue space-after.optimum
=10ptMonthly Histogram for null null/fo:block
                        fo:table border-collapse=separate
                                fo:table-column column-width=36mm /
                                fo:table-column column-width=4mm /
                                fo:table-column column-width=61mm /
                                fo:table-column column-width=4mm /
                                fo:table-column column-width=61mm /
                                fo:table-column column-width=4mm /
                                fo:table-column column-width=83mm /
                                fo:table-column column-width=83mm /
                                fo:table-body
                                        fo:table-row
                                                fo:table-cell border-width
=0.0mm border-style=solid background-color=white
                                                        fo:table
border-collapse=separate

fo:table-column column-width=35mm /

fo:table-body font-size=8pt font-family=sans-serif

fo:table-row font-size=10pt font-family=sans-serif
fo:table-cell background-color=aqua
fo:block text-align=centerApplications/Systems/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell background-color=lightblue
fo:block text-align=centerMONTH/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell background-color=blue
fo:block color=white text-align=centerWEEK/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:block1633 ARCSERVE BACKUP/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:block4 CC ARCSERVE BKP/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockAAMS/IPTS/IRMIS/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockACBS/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockACBS-ALPHA/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockARMS/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockCALL REPORT (MARK TO MKT)/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockCARS/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockCASSETT/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm border-style=solid background-color
=white
fo:blockCDB/fo:block
/fo:table-cell

/fo:table-row

fo:table-row
fo:table-cell border-width=0.175mm 

RE: Help: Output from servlet is garbage

2003-04-25 Thread Joseph . Sadove

Thanks for the super fast reponse.
I'm using the following code to write the rendered stream to the response. I don't think I can just append the dummy.pdf to the prepared stream, as it will will likely have an eof marker.
I was not able to find anything in the apache/xml docs and nothing wholly relevant in the archives. I may be a bit lame today (among other days). I would really appreciate it if you or someone else could help me further in this. 
As a note, I had this working at one point. I made some big changes and then this started happening. I then went and removed the changes and now the problem persists. Hmmm.

a) Can you/anyone suggest how this could be done
b) Can you point to where to look on the dummy.pdf problem

Thanks againJoe

CODE-SNIPPET
Reader reader = new java.io.StringReader(strBuffer1.toString());
InputSource foDoc = new InputSource(reader);

response.setContentType(application/pdf);

XMLReaderFactory.createXMLReader();
System.setProperty(
org.xml.sax.driver,
org.apache.xerces.parsers.SAXParser);

ByteArrayOutputStream baos = new ByteArrayOutputStream();
org.apache.fop.apps.Driver driver2 =
new org.apache.fop.apps.Driver(foDoc, baos);

String version = org.apache.fop.apps.Version.getVersion();
driver2.setRenderer(org.apache.fop.render.pdf.PDFRenderer);

driver2.addElementMapping(
org.apache.fop.fo.StandardElementMapping);
driver2.addElementMapping(org.apache.fop.svg.SVGElementMapping);

XMLReader parser = createParser();
parser.setFeature(
http://xml.org/sax/features/namespace-prefixes,
true);

driver2.run();

byte[] content = baos.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
//THIS WILL NOT WORK EVEN IF I FIX content.length --
//response.getOutputStream().write(dummy.pdf.getBytes());

/CODE-SNIPPET








Adam Shelley [EMAIL PROTECTED]
04/25/2003 04:45 PM
Please respond to fop-user


To:[EMAIL PROTECTED]
cc:
Subject:RE: Help: Output from servlet is garbage


The giberish is your pdf in binary format. if you are using ie add
dummy.pdf onto the end to ensure it will open it in the acrobat plugin.
Check the docs regarding this.

-Adam

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: April 25, 2003 1:40 PM
To: [EMAIL PROTECTED]
Subject: Help: Output from servlet is garbage




FOP version: fop-0.20.3
Platform: Win2K
WebSphere V5.0
J2EE Version: 1.3

I am getting following gibberish as a result of parsing the tollowing fo:
document. Apologies if this is too much too ask here.

I am also getting the following messages, but I think these are only page
size issues that shouldn't cause this result.

GIBBERISH EXTRACT
%PDF-1.3 %?«¬­ 4 0 obj  /Type /Info /Producer (null)  endobj 5 0 obj
 /Length 1581 /Filter /FlateDecode  stream x???Ks?HF??Z??(??2?xL ?
(`? I2 ?=W­n??·7???mY?a?'¤­??/?B?(U ­jc+MHM?®dM??O???
«?2}??µ¤2q?'+^QZ ???/ ? ??N? 4|*«?o?_?¶w????f?
|?»'W?S-?b*'V?« nDm­??O?¶fU?LF??)??t Ak??T|????}
xqZi#8f?ZB­?qS3u d?¬­??
/GIBBERISH EXTRACT

XML FO DOC follows:

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format
        fo:layout-master-set
                fo:simple-page-master master-name=first page-height
=21cm page-width=29.7cm margin-top=1cm margin-bottom=2cm
margin-left=2.5cm margin-right=2.5cm
                        fo:region-body margin-top=3cm /
                        fo:region-before extent=3cm /
                        fo:region-after extent=1.5cm /
                /fo:simple-page-master
        /fo:layout-master-set
        fo:page-sequence master-reference=first
                fo:flow flow-name=xsl-region-body
                        fo:block font-size=11pt font-family=sans-serif
font-weight=bold text-align=left border-top-width=5px
border-top-style=solid border-top-color=blue border-bottom-width=5px
border-bottom-style=solid border-bottom-color=blue space-after.optimum
=10ptMonthly Histogram for null null/fo:block
                        fo:table border-collapse=separate
                                fo:table-column column-width=36mm /
                                fo:table-column column-width=4mm /
                                fo:table-column column-width=61mm /
                                fo:table-column column-width=4mm /
                                fo:table-column column-width=61mm /
                                fo:table-column column-width=4mm /
                                fo:table-column column-width=83mm /
                                fo:table-column column-width=83mm /
                                fo:table-body

RE: Help: Output from servlet is garbage

2003-04-25 Thread Steve Albin








Your output is actually correct and your servlet
is doing the right thing. Microsoft IE does not recognize the content as a PDF
file and therefore does not invoke Acrobat to display the content, rather it
simply dumps your PDF data as text to the browser window. What IE needs is an
actual .pdf at the end of the URL used to invoke your servlet. That is how it
knows to render the output using Acrobat. The suggestion Adam made was to
append dummy.pdf to the end of the URL used to invoke your serlvet (not to
append it to your response output stream). This is exactly what I have to do,
since I am also generating PDF in memory and returning it to an IE browser. 



Hope this helps.

-Steve



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2003 2:47
PM
To: [EMAIL PROTECTED]
Subject: RE: Help: Output from
servlet is garbage




Thanks for the super fast reponse. 
I'm
using the following code to write the rendered stream to the response. I don't
think I can just append the dummy.pdf to the prepared stream, as it will
will likely have an eof marker. 
I
was not able to find anything in the apache/xml docs and nothing wholly
relevant in the archives. I may be a bit lame today (among other days). I would
really appreciate it if you or someone else could help me further in this. 
As
a note, I had this working at one point. I made some big changes and then this
started happening. I then went and removed the changes and now the problem
persists. Hmmm. 

a)
Can you/anyone suggest how this could be done 
b)
Can you point to where to look on the dummy.pdf problem


Thanks
againJoe 

CODE-SNIPPET


  
Reader reader = new java.io.StringReader(strBuffer1.toString()); 

  
InputSource foDoc = new InputSource(reader); 


   response.setContentType(application/pdf);



  
XMLReaderFactory.createXMLReader(); 

  
System.setProperty( 

   
   org.xml.sax.driver, 

   
   org.apache.xerces.parsers.SAXParser);



  
ByteArrayOutputStream baos = new ByteArrayOutputStream();


  
org.apache.fop.apps.Driver driver2 = 

   
   new org.apache.fop.apps.Driver(foDoc, baos);



  
String version = org.apache.fop.apps.Version.getVersion(); 

  
driver2.setRenderer(org.apache.fop.render.pdf.PDFRenderer);



  
driver2.addElementMapping( 

   
   org.apache.fop.fo.StandardElementMapping);


  
driver2.addElementMapping(org.apache.fop.svg.SVGElementMapping);



  
XMLReader parser = createParser(); 

  
parser.setFeature( 

   
  
http://xml.org/sax/features/namespace-prefixes, 

   
   true); 


  
driver2.run(); 


  
byte[] content = baos.toByteArray(); 

   response.setContentLength(content.length);


  
response.getOutputStream().write(content); 
//THIS
WILL NOT WORK EVEN IF I FIX content.length -- 
//
   response.getOutputStream().write(dummy.pdf.getBytes());


/CODE-SNIPPET







 
  
  
  
  
  Adam Shelley
  [EMAIL PROTECTED] 
  04/25/2003 04:45 PM 
  Please
  respond to fop-user 
  
  
  
  
 To:[EMAIL PROTECTED]
  
  
 cc: 
  
 Subject:RE: Help: Output
  from servlet is garbage
  
 





The giberish is your pdf in binary format. if
you are using ie add
dummy.pdf onto the end to ensure it will open it in the acrobat plugin.
Check the docs regarding this.

-Adam

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: April 25, 2003 1:40 PM
To: [EMAIL PROTECTED]
Subject: Help: Output from servlet is garbage




FOP version: fop-0.20.3
Platform: Win2K
WebSphere V5.0
J2EE Version: 1.3

I am getting following gibberish as a result of parsing the tollowing fo:
document. Apologies if this is too much too ask here.

I am also getting the following messages, but I think these are only page
size issues that shouldn't cause this result.

GIBBERISH EXTRACT
%PDF-1.3 %? 4 0 obj  /Type /Info /Producer (null)  endobj 5
0 obj
 /Length 1581 /Filter /FlateDecode  stream
x???Ks?HF??Z??(??2?xL ?
(`? I2 ?=Wn??7???mY?a?'??/?B?(U jc+MHM?dM??O???
?2}??2q?'+^QZ ???/ ? ??N? 4|*?o?_?wf?
|?'W?S-?b*'V? nDm??O?fU?LF??)??t Ak??T|}
xqZi#8f?ZB?qS3u d???
/GIBBERISH EXTRACT

XML FO DOC follows:

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format
fo:layout-master-set
fo:simple-page-master
master-name=first page-height
=21cm page-width=29.7cm margin-top=1cm
margin-bottom=2cm
margin-left=2.5cm margin-right=2.5cm
  
 fo:region-body margin-top=3cm /
  
 fo:region-before extent=3cm /
  
 fo:region-after extent=1.5cm

RE: Help: Output from servlet is garbage

2003-04-25 Thread Steve Albin








By the way, see the Note halfway down the
page http://xml.apache.org/fop/embedding.htmlb
under Using FOP in a Servlet



Some versions of
Internet Explorer will not automatically show the PDF. This is well-known to be
a limitation of Internet Explorer, and is not a problem with the servlet.
However, Internet Explorer can still be used to download the PDF so that it can
be viewed later. Also, appending .pdf to the end of the URL may help.



-Steve



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2003 2:47
PM
To: [EMAIL PROTECTED]
Subject: RE: Help: Output from
servlet is garbage




Thanks for the super fast reponse. 
I'm
using the following code to write the rendered stream to the response. I don't
think I can just append the dummy.pdf to the prepared stream, as it will
will likely have an eof marker. 
I
was not able to find anything in the apache/xml docs and nothing wholly
relevant in the archives. I may be a bit lame today (among other days). I would
really appreciate it if you or someone else could help me further in this. 
As
a note, I had this working at one point. I made some big changes and then this
started happening. I then went and removed the changes and now the problem
persists. Hmmm. 

a)
Can you/anyone suggest how this could be done 
b)
Can you point to where to look on the dummy.pdf problem


Thanks
againJoe 

CODE-SNIPPET


  
Reader reader = new java.io.StringReader(strBuffer1.toString()); 

  
InputSource foDoc = new InputSource(reader); 


  
response.setContentType(application/pdf); 


  
XMLReaderFactory.createXMLReader(); 

  
System.setProperty( 

   
   org.xml.sax.driver, 

   
   org.apache.xerces.parsers.SAXParser);



  
ByteArrayOutputStream baos = new ByteArrayOutputStream();


  
org.apache.fop.apps.Driver driver2 = 

   
   new org.apache.fop.apps.Driver(foDoc, baos);



  
String version = org.apache.fop.apps.Version.getVersion(); 

  
driver2.setRenderer(org.apache.fop.render.pdf.PDFRenderer);



  
driver2.addElementMapping( 

   
   org.apache.fop.fo.StandardElementMapping);


  
driver2.addElementMapping(org.apache.fop.svg.SVGElementMapping);



  
XMLReader parser = createParser(); 

  
parser.setFeature( 

   
   http://xml.org/sax/features/namespace-prefixes,


   
   true); 


  
driver2.run(); 


  
byte[] content = baos.toByteArray(); 

  
response.setContentLength(content.length); 

  
response.getOutputStream().write(content); 
//THIS
WILL NOT WORK EVEN IF I FIX content.length -- 
//
   response.getOutputStream().write(dummy.pdf.getBytes());


/CODE-SNIPPET







 
  
  
  
  
  Adam Shelley
  [EMAIL PROTECTED] 
  04/25/2003 04:45 PM 
  Please
  respond to fop-user 
  
  
  
  
 To:[EMAIL PROTECTED]
  
  
 cc: 
  
 Subject:RE: Help: Output
  from servlet is garbage
  
 





The giberish is your pdf in binary format. if
you are using ie add
dummy.pdf onto the end to ensure it will open it in the acrobat plugin.
Check the docs regarding this.

-Adam

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: April 25, 2003 1:40 PM
To: [EMAIL PROTECTED]
Subject: Help: Output from servlet is garbage




FOP version: fop-0.20.3
Platform: Win2K
WebSphere V5.0
J2EE Version: 1.3

I am getting following gibberish as a result of parsing the tollowing fo:
document. Apologies if this is too much too ask here.

I am also getting the following messages, but I think these are only page
size issues that shouldn't cause this result.

GIBBERISH EXTRACT
%PDF-1.3 %? 4 0 obj  /Type /Info /Producer (null)  endobj 5
0 obj
 /Length 1581 /Filter /FlateDecode  stream
x???Ks?HF??Z??(??2?xL ?
(`? I2 ?=Wn??7???mY?a?'??/?B?(U jc+MHM?dM??O???
?2}??2q?'+^QZ ???/ ? ??N? 4|*?o?_?wf?
|?'W?S-?b*'V? nDm??O?fU?LF??)??t Ak??T|}
xqZi#8f?ZB?qS3u d???
/GIBBERISH EXTRACT

XML FO DOC follows:

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format
fo:layout-master-set
   
fo:simple-page-master master-name=first page-height
=21cm page-width=29.7cm margin-top=1cm
margin-bottom=2cm
margin-left=2.5cm margin-right=2.5cm
  
 fo:region-body margin-top=3cm /
  
 fo:region-before extent=3cm /
  
 fo:region-after extent=1.5cm /
   
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence
master-reference=first
fo:flow
flow-name=xsl-region-body
  
 fo:block font-size=11pt font-family=sans-serif
font-weight=bold text-align=left
border

Re: Help: Output from servlet is garbage

2003-04-25 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I'm using the following code to write the rendered stream to the response. 
I don't think I can just append the dummy.pdf to the prepared stream,
It was meant to append this to the URL which causes the servlet
producing the PDF to be invoked.
CODE-SNIPPET
This seems to be awfully overcomplicated. In particular this:
 Reader reader = new  java.io.StringReader(strBuffer1.toString());
indicates you are building an XML string in memory, then parse it,
which is often inefficient.
Look at the FOP FAQ
  http://xml.apache.org/fop/faq.html#part-iex
and the code samples here
  http://xml.apache.org/fop/embedding.html
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help with unicode characters

2003-04-16 Thread J.Pietschmann
Jon Steeves wrote:
I just processed an xsl:fo with FOP and got this message:
An invalid xml character unicode: 0x1A6821 ...
Try as I might, I can't find a unicode character that matches that number,
nor was I able to find FOPs explanation of this message.  Can anyone tell me
how to interpret that message and find a matching unicode character?
The message comes from the XML parser, not FOP. It says there is a byte
sequence in the input which is not an Unicode character. You have probably an 
encoding problem.

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


Re: Help with unicode characters

2003-04-16 Thread Konstantin Priblouda

--- Jon Steeves [EMAIL PROTECTED] wrote:
 Hello:
 
   I just processed an xsl:fo with FOP and got this
 message:
 
 An invalid xml character unicode: 0x1A6821 ...
 
   Try as I might, I can't find a unicode character
 that matches that number, nor was I able to find
 FOPs explanation of this message.  Can anyone tell
 me how to interpret that message and find a matching
 unicode character?
 
 Thanks

Hmm, could be issue with encoding of xml file
( xsl:fo ).

Whyt encoding is set?

regards,

=
Konstantin Priblouda ( ko5tik )Freelance Software developer
 http://www.pribluda.de   play java games - http://www.yook.de 
 render charts online - http://www.pribluda.de/povray/ 

__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

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



RE: Help with unicode characters

2003-04-16 Thread Jon Steeves
Hello:

It was the encoding - an Icelandic character.  Problem solved.   Thank all for 
the help.

Cheers

Jon

-Original Message-
From: Konstantin Priblouda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 16, 2003 1:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Help with unicode characters



--- Jon Steeves [EMAIL PROTECTED] wrote:
 Hello:
 
   I just processed an xsl:fo with FOP and got this
 message:
 
 An invalid xml character unicode: 0x1A6821 ...
 
   Try as I might, I can't find a unicode character
 that matches that number, nor was I able to find
 FOPs explanation of this message.  Can anyone tell
 me how to interpret that message and find a matching
 unicode character?
 
 Thanks

Hmm, could be issue with encoding of xml file
( xsl:fo ).

Whyt encoding is set?

regards,

=
Konstantin Priblouda ( ko5tik )Freelance Software developer
 http://www.pribluda.de   play java games - http://www.yook.de 
 render charts online - http://www.pribluda.de/povray/ 

__
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

-
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: HELP HELP HELP PERFORMANCE !!!!

2003-04-09 Thread Xavier Prélat




Have you tried to process your XML file with Xalan before , to know which
one from Xallan or Fop crashes ??
Your .fo file may be pretty big.with a 2Mo xml file...depending of your
xsl document.

Xalan loads all document before processing so maybe it's a good idea to increase
jvm heap 

Extract
from Xalan website!
You can
also increase your jvm heap size with the -Xmx or -mx flag, depending on
which JVM you are using (you can include both flags, and the
JVM will ignore the one it doesn't understand). For example,
to give your JVM 64 meg, try   
java -Xmx64m -mx64m  
  Class
 
Xavier


Philippe PITHON a crit:
   
  
   
  
  
  

  We
start to publish large editions with FOP: countable listing, ledger...
  
  and
render FOP explodes of everywhere!!! 
  
  
  
  version
FOP 0.20.5 
  
  xml
size : approximately 2Mo. 
  
  Xms
: 256Mo
  
  
  
  Impossible
to make page breaks because they are listings
  
  
  
  can
you tell us the date of release of your version miracle?
  
  
  
  I
dont know any more what to make and more what think... 
  
  
  
  
  
  





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



Re: HELP HELP HELP PERFORMANCE - there remains blocked on approximately page 100

2003-04-09 Thread Jeremias Maerki
Writing in uppercase (=Yelling) doesn't award you any plus points.
Mostly it's the other way around.

First of all, start by reading FOP's FAQ at: http://xml.apache.org/fop/faq.html
It contains a lot of information to start from. And please consider
providing more information on your problem when asking questions. You
didn't even tell us if you got any error messages and if yes what they
were.

A few tips:
- Break down you huge input file to see if there's a part in the big
  file that triggers the hang.
- Comment out certain passages in your XSLT to narrow down the problem.

A nice page with links to a wealth of information:
http://xml.apache.org/fop/gethelp.html

On 09.04.2003 11:11:41 Philippe PITHON wrote:
 the problem occurs during render FOP 
 
 there remains blocked on approximately page 100
 
  
 
 if somebody of team FOP could answer...
 
  
 
 ---
 
  
 
 We start to publish large editions with FOP: countable listing,
 ledger...
 
 and render FOP explodes of everywhere!!! 
 
  
 
 version FOP 0.20.5 
 
 xml size : approximately 2Mo. 
 
 Xms : 256Mo
 
  
 
 Impossible to make page breaks because they are listings
 
  
 
 can you tell us the date of release of your version miracle?
 
  
 
 I don't know any more what to make and more what think...  
 
  
 
  
 



Jeremias Maerki


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



Re: help on error required?

2003-03-09 Thread Asim Nazir
thanks alot,
yes same was the problem.
THANKS.
ASIM

From: Jeremias Maerki [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: help on error required?
Date: Sat, 08 Mar 2003 10:44:07 +0100
Looks like you have copied together the sources without paying attention
to package names. You've even got the same file twice in different
directories. Don't do that. Just extract the source distribution to a
new directory and specify multiple source directories (assuming you want
to compile within JBuilder).
If you just want to use FOP (not develop in FOP) it's probably easier
only to add fop.jar to your classpath and maybe copy the servlet sources
to your project so you can customize them.
On 08.03.2003 02:37:11 Asim Nazir wrote:
 hello,
 i am trying to use fop libaray for converting my fo document to pdf.
 i am using java and jbuilder7, i have added all the required libraries , 
but
 now these are the three error.
 CAN SOMEONE GUIDE ME ON THIS.
 here are the error msgs.

 FopServlet.java: Error #: 901 : package . stated in source
 D:\ASIM\fopapp\src\fop\contrib\servlet\src\FopServlet.java does not 
match
 directory fop.contrib.servlet.src

 FopPrintServlet.java: Error #: 901 : package . stated in source
 D:\ASIM\fopapp\src\fop\contrib\servlet\src\FopPrintServlet.java does not
 match directory fop.contrib.servlet.src

 StreamRenderer.java: Error #: 482 : duplicate definition of class
 org.apache.fop.apps.StreamRenderer$RenderQueueEntry, defined in
 D:\ASIM\fopapp\src\fop\src\org\apache\fop\apps\StreamRenderer.java and 
also
 defined in D:\ASIM\fopapp\src\org\apache\fop\apps\StreamRenderer.java

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

AsIm NaZiR JaNjUa
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: help plz

2003-03-08 Thread Asim Nazir
ok, thanks sir.
ASIM

From: Jeremias Maerki [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: help plz
Date: Fri, 07 Mar 2003 08:03:31 +0100
The following page contains everything you need:
http://xml.apache.org/fop/embedding.html
You will want to check out FOP version 0.20.5rc2 which contains the
examples described at the bottom of the above page. See directory
examples/embedding.
(by the way, writing in uppercase won't give you more attention, only
raised eyebrows)
On 07.03.2003 04:01:16 Asim Nazir wrote:
 hello,
 i have problem in starting my work with fop,
 i want to use it in my application BUT THERE IS PROBLEM WITH THE TWO
 ARGUMENTS DRIVER IS INNEED OF, can someone give me a program in which 
it's
 taking a file xml or fo and coverting it to pdf, programatically. so 
that i
 can start moving.
 LOOKING FOR HELP .

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

AsIm NaZiR JaNjUa
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


Re: help on error required?

2003-03-08 Thread Jeremias Maerki
Looks like you have copied together the sources without paying attention
to package names. You've even got the same file twice in different
directories. Don't do that. Just extract the source distribution to a
new directory and specify multiple source directories (assuming you want
to compile within JBuilder).

If you just want to use FOP (not develop in FOP) it's probably easier
only to add fop.jar to your classpath and maybe copy the servlet sources
to your project so you can customize them.

On 08.03.2003 02:37:11 Asim Nazir wrote:
 hello,
 i am trying to use fop libaray for converting my fo document to pdf.
 i am using java and jbuilder7, i have added all the required libraries , but 
 now these are the three error.
 CAN SOMEONE GUIDE ME ON THIS.
 here are the error msgs.
 
 FopServlet.java: Error #: 901 : package . stated in source 
 D:\ASIM\fopapp\src\fop\contrib\servlet\src\FopServlet.java does not match 
 directory fop.contrib.servlet.src
 
 FopPrintServlet.java: Error #: 901 : package . stated in source 
 D:\ASIM\fopapp\src\fop\contrib\servlet\src\FopPrintServlet.java does not 
 match directory fop.contrib.servlet.src
 
 StreamRenderer.java: Error #: 482 : duplicate definition of class 
 org.apache.fop.apps.StreamRenderer$RenderQueueEntry, defined in 
 D:\ASIM\fopapp\src\fop\src\org\apache\fop\apps\StreamRenderer.java and also 
 defined in D:\ASIM\fopapp\src\org\apache\fop\apps\StreamRenderer.java


Jeremias Maerki


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



RE: help plz

2003-03-07 Thread John Marshall
Hi

I am working on a GUI wrapper in MSVC/MFC to build and run the command line in 
a dialog application, echoing output to a list box. Is this what you want and 
will it be generally useful? When I have it ready (sometime next week) should I 
store it somewhere or just mail it in?

John Marshall

-Original Message-
From: Asim Nazir [mailto:[EMAIL PROTECTED]
Sent: 07 March 2003 03:01
To: [EMAIL PROTECTED]
Subject: help plz


hello,
i have problem in starting my work with fop,
i want to use it in my application BUT THERE IS PROBLEM WITH THE TWO
ARGUMENTS DRIVER IS INNEED OF, can someone give me a program in which it's
taking a file xml or fo and coverting it to pdf, programatically. so that i
can start moving.
LOOKING FOR HELP .

AsIm NaZiR

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


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






Accurate Software Ltd 

The Courtyard, Denmark Street, Wokingham, RG40 2AZ, UK.
Tel: +44 (0)118 977 3889
Fax +44 (0)118 977 1260
Web: http://www.accuratesoftware.com

The information in this email is confidential and privileged and is intended 
only for the use of the individual or entity listed above.  If you are neither 
the intended individual, or entity listed above, nor the person responsible for 
the delivery of this email to the intended recipients, you are hereby notified 
that any unauthorised distribution, copying or use of this email is prohibited. 
If you have received this email in error, please notify the Accurate system 
manager at [EMAIL PROTECTED] or on +44 (0)118 977 3889.  The views expressed in 
this communication may not necessarily be the views held by the Accurate Group.


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



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: Help with [ERROR]: null

2002-04-17 Thread Kilmer, Erich
I got it. I changed the master-name attribute to master-reference inside the
fo:conditional-page-master-reference tags and it renders properly.

-Original Message-
From: Kilmer, Erich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: Help with [ERROR]: null 


Hello, I am trying to get this style sheet to render using FOP but the error
it is throwing is fairly vague. Can anyone advise  me how I can debug this?
I am referencing an XML file but not actually accessing any values from it
so its not from that.
I am using FOP 0.20.3.
Thanks,
Erich

Fop output:
[INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: null
...post processing finished

Style Sheet:

?xml version=1.0 encoding=utf-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:TST=TST
xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java
xsl:output indent=no/
xsl:template match=text()/
xsl:template match=EROUTE
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set

fo:simple-page-master
master-name=page-first page-height=11in page-width=8.5in
margin-top=.5in margin-bottom=.5in margin-left=.5in
margin-right=.5in
fo:region-body margin-top=4in
region-name=content/
fo:region-before extent=3in
region-name=header-first/
fo:region-after extent=4in
region-name=footer-first/
/fo:simple-page-master

fo:simple-page-master
master-name=page-rest page-height=11in page-width=8.5in
margin-top=.5in margin-bottom=.5in margin-left=.5in
margin-right=.5in
fo:region-body margin-top=1in
region-name=content/
fo:region-before extent=1in
region-name=header-rest/
fo:region-after extent=1.5in
region-name=footer-rest/
/fo:simple-page-master

fo:page-sequence-master master-name=control-page
   fo:repeatable-page-master-alternatives
  fo:conditional-page-master-reference
page-position=first master-name=page-first/
  fo:conditional-page-master-reference page-position=rest
master-name=page-rest/
  fo:conditional-page-master-reference
master-name=page-rest/
   /fo:repeatable-page-master-alternatives
/fo:page-sequence-master

/fo:layout-master-set

 fo:page-sequence master-reference=control-page

fo:static-content flow-name=header-first
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textHeader
First/xsl:text/fo:block
/fo:static-content

fo:static-content flow-name=header-rest
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textHeader
Rest/xsl:text/fo:block
/fo:static-content

fo:static-content flow-name=footer-first
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textFooter
First/xsl:text/fo:block
/fo:static-content

fo:static-content flow-name=footer-rest
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textFooter
Rest/xsl:text/fo:block
/fo:static-content

fo:flow flow-name=content
   xsl:textContent goes here!/xsl:text
/fo:flow


 /fo:page-sequence

/fo:root  
   /xsl:template
/xsl:stylesheet



Re: HELP! grahics - scalling down, not up

2002-04-13 Thread J.Pietschmann
Michal Kwiatek wrote:
How do you prevent fop from scaling graphics up? Some of my picture are too
big and I need them scaled down, but others are alright and I want fop to
leave them alone.
Can you post a shoret, self contained sample which
demonstrates the problem?
J.Pietschmann



Re: Help! Problem with Fop in Tomcat

2002-04-12 Thread Marina Pérel
Hello Jeremias,

Thanks for your help, but I finally found the problem : you must unjar the
avalon-framework-4.1.2's jar and the
batik-1.1.1's jar. I take a lot of time to find that because there isn't
this information in fop's doc or in mailing list. It's curious, no?
You don't have to unjar the avalon-framework-4.1.1'sjar.
Greetings
Marina

- Original Message -
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 12:07 PM
Subject: Re: Help! Problem with Fop in Tomcat


  I developped a Fop service via a service web (with Apache SOAP) in
Windows Nt : it works good.
  But, now i'm trying to set the Fop Service in Linux machine (RedHat7.2).
  I have this error :
  Genarated fault :
 Fault Code = SOAP-ENV:Server
  Fault String = Exception from service object :
  org/apache/avalon/framework/loggable/Loggable

 That should be org/apache/avalon/framework/logger/Loggable. Did you
 write that by hand or using copy/paste?

 Loggable is in avalon-framework(-4.1.2).jar.

   A Hello's service works, so my web service is fine and it's a Fop
problem.
  My Tomcat's classpath is :
 
/tools/beluga/SOAP/xerces-1_2_3/xerces.jar:/tools/beluga/SOAP/jakarta-tomcat
-4.0.3/lib/xalan.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/avalon-fram
ework-4.1.2.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/logkit-1.0.1.jar
:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/batik.jar:/tools/beluga/SOAP/ja
karta-tomcat-4.0.3/lib/fop.jar:/tools/beluga/SOAP/soap-2_2/lib/soap.jar:/too
ls/beluga/SOAP/javamail-1.2/mail.jar:/tools/beluga/SOAP/jaf-1.0.1/activation
.jar:.:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/webapps/soap/WEB-INF/classes/
:/usr/java/j2sdk1.4.0/lib/tools.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/
bin/bootstrap.jar
  (my .jar files are in the Tomcat lib directory)
 
  My code for the logger :
  Logger log = null;
if(log == null) {
  Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
  log = hierarchy.getLoggerFor(fop);
  log.setPriority(Priority.WARN);
}
 driver.setLogger(log);
 
  Does anybody know what's wrong? All ideas are welcome!

 Avalon Framework and LogKit seem to be present in Tomcat's classpath. So
 nothing wrong here. Did you check that the files with the names
 specified in the classpath really exist?

 Anyway, FOP was recently changed to use
 org.apache.avalon.framework.logger.Logger (Avalon Logger Interface)
 instead of org.apache.log.Logger (LogKit). Loggable is used with LogKit.
 It has been deprecated in favor of
 org.apache.avalon.framework.logger.LogEnabled (which uses the Avalon
 Logger Interface). Maybe that helps finding a solution.

 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



Re: Help! Problem with Fop in Tomcat

2002-04-12 Thread Jeremias Maerki
Hello Marina

That's weird. It should never be necessary to unjar these jar to make
them work. Looking a bit closer at your case I have a few comments:
- You seem to edit Tomcat's classpath to include all jars you need. It's
  better if you placed all jars needed by your SOAP service in the
  WEB-INF/lib directory. That way they are packed together with your
  webapp/soap-service and loaded automatically without adjusting
  Tomcat's classpath. The jars I'd put there, are: avalon-framework,
  logkit, fop, batik, soap, mail and activation. xerces is needed by
  Tomcat and I've had troubles putting xalan.jar in WEB-INF/lib because
  of the way JAXP works, so leave them there.
- In you last mail you mentioned a batik-1.1.1.jar. If I'm right FOP
  needs a specially built batik.jar (included in the distribution), so
  you might run into problems if you use an official release. Keiron,
  please correct me if I'm wrong.
- I've done similar stuff to what you're doing, and I could do without
  any special work-arounds. On Windows and Linux.
- Think about making a WAR file from your web service. That way, it's
  much simpler to deploy. Without manual classpath surgery.
- I propose you install a fresh Tomcat to another location and start
  over with the hints I gave you. It may well work what you've done, but
  it's a hell to maintain.
- I guess you're using Tomcat 3.x. Try 4.0.x. I like it a lot better.
- Maybe have a look at the current CVS version of FOP. In the contrib
  directory, there's the sources of the FopServlet. The build creates a
  WAR file. It's quite similar to what you're doing. Apache SOAP is a
  servlet, too, right?

Good luck!

On 12.04.2002 15:13:24 Marina Pérel wrote:
 Hello Jeremias,
 
 Thanks for your help, but I finally found the problem : you must unjar the
 avalon-framework-4.1.2's jar and the
 batik-1.1.1's jar. I take a lot of time to find that because there isn't
 this information in fop's doc or in mailing list. It's curious, no?
 You don't have to unjar the avalon-framework-4.1.1'sjar.
 Greetings
 Marina
 
 - Original Message -
 From: Jeremias Maerki [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, April 11, 2002 12:07 PM
 Subject: Re: Help! Problem with Fop in Tomcat
 
 
   I developped a Fop service via a service web (with Apache SOAP) in
 Windows Nt : it works good.
   But, now i'm trying to set the Fop Service in Linux machine (RedHat7.2).
   I have this error :
   Genarated fault :
  Fault Code = SOAP-ENV:Server
   Fault String = Exception from service object :
   org/apache/avalon/framework/loggable/Loggable
 
  That should be org/apache/avalon/framework/logger/Loggable. Did you
  write that by hand or using copy/paste?
 
  Loggable is in avalon-framework(-4.1.2).jar.
 
A Hello's service works, so my web service is fine and it's a Fop
 problem.
   My Tomcat's classpath is :
  
 /tools/beluga/SOAP/xerces-1_2_3/xerces.jar:/tools/beluga/SOAP/jakarta-tomcat
 -4.0.3/lib/xalan.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/avalon-fram
 ework-4.1.2.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/logkit-1.0.1.jar
 :/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/batik.jar:/tools/beluga/SOAP/ja
 karta-tomcat-4.0.3/lib/fop.jar:/tools/beluga/SOAP/soap-2_2/lib/soap.jar:/too
 ls/beluga/SOAP/javamail-1.2/mail.jar:/tools/beluga/SOAP/jaf-1.0.1/activation
 .jar:.:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/webapps/soap/WEB-INF/classes/
 :/usr/java/j2sdk1.4.0/lib/tools.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/
 bin/bootstrap.jar
   (my .jar files are in the Tomcat lib directory)
  
   My code for the logger :
   Logger log = null;
 if(log == null) {
   Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
   log = hierarchy.getLoggerFor(fop);
   log.setPriority(Priority.WARN);
 }
  driver.setLogger(log);
  
   Does anybody know what's wrong? All ideas are welcome!
 
  Avalon Framework and LogKit seem to be present in Tomcat's classpath. So
  nothing wrong here. Did you check that the files with the names
  specified in the classpath really exist?
 
  Anyway, FOP was recently changed to use
  org.apache.avalon.framework.logger.Logger (Avalon Logger Interface)
  instead of org.apache.log.Logger (LogKit). Loggable is used with LogKit.
  It has been deprecated in favor of
  org.apache.avalon.framework.logger.LogEnabled (which uses the Avalon
  Logger Interface). Maybe that helps finding a solution.
 
  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



Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

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



Re: Help to get started in a servlet

2002-02-05 Thread Chuck Paussa
Chinn, Gale wrote:
I am new to fop and can get it to run command line, but would like to get it
to run in a servlet.
I have followed the info on fop's embedding page using fop.war file in the
webapps directory of Tomcat on ver 3.2 and 4, but cannot get it to work
using:
http://localhost:8080/fop/fop?fo=... or
http://localhost:8080/fop/servlet/fop?fo=... 

I would just like to get a simple pdf to come back to my browser to prove a
point to my group leader.  Any help would be appreciated
TIA,
Gale Chinn
Programmer/Analyst
Cessna Aircraft Company
Wichita, KS
Gale,
I dropped in the WAR, put my .fo file into /webapps and called the 
servlet with

http://localhost:8080/fop/fop?fo=../webapps/test.fo
or
http://localhost:8080/fop/fop?xml=../webapps/test.xmlxsl=../webapps/test.xsl
notice the ../ at the beginning of the path to the files. That's because 
the default root path for files in tomcat is /bin so you have to start 
the relative path from there.

Chuck



RE: HELP DRIVER!

2002-01-17 Thread David Wood
On Wed, 16 Jan 2002, Robert C. Leif, Ph.D. wrote:

  I don't think a lengthy Java v. Ada conversation going on in this list
 would do much for the state of FOP as we know it, either

Too late, here we go...  :)

-David



Re: HELP DRIVER!

2002-01-16 Thread dav sem
Hi,
another info:
Jaguar Server 3.6.1 use Sun/jdk1.2
and when I test Fop I use jdk1.3.1
This can be an answer?
DS.


From: Jeremias Maerki [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: HELP DRIVER!
Date: Wed, 16 Jan 2002 13:23:47 +0100
What version do you use? As far as I know there's no Service class in
current versions. You may need to upgrade.
On Wed, 16 Jan 2002 08:51:59 + dav sem wrote:
 Hi,

 I'm building EJB Component that perform a pdf document.
 The EJB component is correctly installed in Jaguar Server (EJB 
Container). I
 have successful set up the classpath
 inside Jaguar server and when I try to instantiate Driver -

 Driver driver = new Driver();

 I obtain this error result:

 java.lang.NullPointerException
at org.apache.fop.apps.Service.providers(Driver.java:540)
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:258)
at org.apache.fop.apps.Driver.init(Driver.java:189)

 Why??
 Previously I have build a pure java application
 that perform a pdf document and I haven't never received this!

 HELP!!!1

 Tanks in advance

 Davide

Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch

_
Scarica GRATUITAMENTE MSN Explorer dall'indirizzo 
http://explorer.msn.it/intl.asp.



Re: HELP DRIVER!

2002-01-16 Thread dav sem
Hi Irina,
this is not (for me) a right answer,
in my project the EJB wrap a PURE Java class
that call Driver() constructor
Jaguar Server had a JVM (support Servlet etc ...)
Tanks
DS.

From: Irina Grigorieva [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: HELP DRIVER!
Date: Wed, 16 Jan 2002 17:35:51 +0300
Hi, maybe an answer is in the EJB's narrowing a subset of Java language can
be used:
for instance, in Java Beans you cannot use static member etc.
BR, Irina.
- Original Message -
From: dav sem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 5:17 PM
Subject: Re: HELP DRIVER!
 Hi,

 another info:
 Jaguar Server 3.6.1 use Sun/jdk1.2
 and when I test Fop I use jdk1.3.1
 This can be an answer?

 DS.




 From: Jeremias Maerki [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: HELP DRIVER!
 Date: Wed, 16 Jan 2002 13:23:47 +0100
 
 What version do you use? As far as I know there's no Service class in
 current versions. You may need to upgrade.
 
 On Wed, 16 Jan 2002 08:51:59 + dav sem wrote:
   Hi,
  
   I'm building EJB Component that perform a pdf document.
   The EJB component is correctly installed in Jaguar Server (EJB
 Container). I
   have successful set up the classpath
   inside Jaguar server and when I try to instantiate Driver -
  
   Driver driver = new Driver();
  
   I obtain this error result:
  
   java.lang.NullPointerException
  at org.apache.fop.apps.Service.providers(Driver.java:540)
  at 
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:258)
  at org.apache.fop.apps.Driver.init(Driver.java:189)
  
   Why??
   Previously I have build a pure java application
   that perform a pdf document and I haven't never received this!
  
   HELP!!!1
  
   Tanks in advance
  
   Davide
 
 Cheers,
 Jeremias Märki
 
 mailto:[EMAIL PROTECTED]
 
 OUTLINE AG
 Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
 Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
 Internet http://www.outline.ch
 


 _
 Scarica GRATUITAMENTE MSN Explorer dall'indirizzo
 http://explorer.msn.it/intl.asp.




_
Prova MSN Messenger per conversare in linea con i tuoi amici: 
http://messenger.msn.it



RE: HELP DRIVER!

2002-01-16 Thread Robert C. Leif, Ph.D.
From: Bob Leif,
It seems that the Java underlying FOP is a source of a significant
number of problems. I would suggest that the developers switch to a much
more reliable and efficient object oriented technology, Ada. Since Ada
is an ISO standard and has an extensive validation suite, it is much
more portable than Java. The GNAT (GNU) Ada compiler can produce both J
codes and fully compiled executables.

-Original Message-
From: dav sem [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 16, 2002 6:18 AM
To: [EMAIL PROTECTED]
Subject: Re: HELP DRIVER!

Hi,

another info:
Jaguar Server 3.6.1 use Sun/jdk1.2
and when I test Fop I use jdk1.3.1
This can be an answer?

DS.




From: Jeremias Maerki [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: HELP DRIVER!
Date: Wed, 16 Jan 2002 13:23:47 +0100

What version do you use? As far as I know there's no Service class in
current versions. You may need to upgrade.

On Wed, 16 Jan 2002 08:51:59 + dav sem wrote:
  Hi,
 
  I'm building EJB Component that perform a pdf document.
  The EJB component is correctly installed in Jaguar Server (EJB 
Container). I
  have successful set up the classpath
  inside Jaguar server and when I try to instantiate Driver -
 
  Driver driver = new Driver();
 
  I obtain this error result:
 
  java.lang.NullPointerException
 at org.apache.fop.apps.Service.providers(Driver.java:540)
 at
org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:258)
 at org.apache.fop.apps.Driver.init(Driver.java:189)
 
  Why??
  Previously I have build a pure java application
  that perform a pdf document and I haven't never received this!
 
  HELP!!!1
 
  Tanks in advance
 
  Davide

Cheers,
Jeremias Mrki

mailto:[EMAIL PROTECTED]

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



_
Scarica GRATUITAMENTE MSN Explorer dall'indirizzo 
http://explorer.msn.it/intl.asp.



Re: HELP DRIVER!

2002-01-16 Thread James Richardson
Robert C. Leif, Ph.D. wrote:

From: Bob Leif,
To: James Richardson
I am dead serious. Evidently, you have had no experience with Ada 95.
Ada is much better at modeling XML than Java. I realize that Java is a
marketing success. Unfortunately, it is based to a great extent on
obsolete technology. For instance, it lacks: generics (templates),
enumerated types, and range checking. Ada is also safe enough for the
Boeing 777 flight control system and the French railroads.


Look, I know your Commodore 64 is much better than my Amstrad, but thats 
not really the point. Ada may well be great (Or it might not be, that's 
not the point I'm making), but its use in non 
educational/military/safety critical systems is limited. Even if 
somebody were to write a super-dooper FO transformer in ada, working for 
a large company, I probably couldn't use it, as my applications are all 
java, and the integration would be difficult.

If you want, please write any app you want in ada, but just popping 
your head round the door, and saying 'drop everything!' this other 
thing is much better accomplishes little.

I don't think a lengthy Java v. Ada conversation going on in this list 
would do much for the state of FOP as we know it, either

Best Regards,
James