Re: User-config (RE: Question on XSLTInputHandler)

2001-11-12 Thread Jeremias Maerki

The problem is that FOP still makes extensive use of static constructs.
The Options class accesses the Configuration class which has static
Hashtables to hold the configuration.

Apart from that the code below should work.

On Mon, 12 Nov 2001 11:31:28 -0800 Ramin Firoozye wrote:
> Since we're on the subject of embedding FOP...
> 
> I still can't figure out how to specify the FOP Driver to load the user
> configuration file from inside a servlet. You need this if you want to have
> your servlet support fonts other than the built-in ones.
> 
> The docs say use something like:
> 
>   Options opt = new Options();
>   opt.loadUserconfiguration("/path-to-user-conf/userconfig.xml");
> 
> But there are no calls on the Driver object (that I can see) to get it to
> use the alternate Options object.
> 
> Any thoughts?
> 
> Ramin

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


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




Re: AW: column spanned in multicolumn region

2001-11-12 Thread ektan


hi,

I have another problem here, how can I use attribute span  to get a page
like sample.doc? Any suggestion?


Thanks.


best rgds,

ektan

(See attached file: sample.doc)










sample.doc
Description: Microsoft Word 4

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


Re: Generating indexes

2001-11-12 Thread Arved Sandstrom

At 10:40 PM 11/12/01 +0100, Corinna Hischke wrote:
>Hi,
>
>> I'm trying to generate a traditional end-of-book index using FOP (version
>> 0.20.2).
>> The idea is that in the XML document source the author can specify
>something
>> like:
>> ...
>>
>> Anyway, I've got most of it worked out in my head (and it hurts (:-)
>> especially the bit about multiple page-number-citations referencing a
>single
>> index entry). It all is so godawful gnarly and I thought I'd ask to see if
>> anybody has figured out an easier way to do this in XSL:FO.
>>
>> Any tips or references would be appreciated.
>
>I also thought of something like 'multiple page-number-citations' and came
>to the
>conclusion that markers could be used for that. I didn't try yet, but am I
>wrong?
>
>Corinna

Markers (fo:retrieve-marker) put content (as determined by the "best" 
qualifying fo:marker) in the static content. Plus only one marker gets 
retrieved. So you can see they are not intended for indexes - the spec 
indicates that markers are suited for manufacturing header (or footer, or 
sidebar) content that is somewhat dependent on current context - e.g. what 
is the current chapter title, what is the current section title, etc etc.

I think you might be able to do something with straight XSL, but it would be 
ugly, and I think you would normally have redundancies (3 occurrences of an 
indexed word on one page - what do you do?). Perhaps the best solution is a 
2-stage one: consider the possibility of doing one formatting pass that 
generates the XML area tree. Use a Perl or Python script to generate an 
index from this data. After all, it _is_ paginated. Then write an extra 
fo:page-sequence that creates the index, and re-run FOP to produce the final 
PDF document.

This is the kind of thing you have to do with LaTeX (well, with makeindex, 
not Perl scripts), for good reason. It's tough to do well any other way. :-)

I should add, LaTeX \index entries go right into the formatted text. There 
is an advantage to doing this with XSL also, as the decision-making remains 
with the original XML. In this case the XSL/FOP procedure for index 
generation could be identical to LaTeX (no need to use the XMLRenderer any 
more):

1) Place  in those spots in your original XML 
where you know that have content that you wish to index with "index_text";
2) Run your XSLT, and have the  tags converted into some 
 construct. These elements have meaning to indexer only, 
which can be invoked when FOP is run - the effect is to open up an index 
file and record entries by page number;
3) Review the index file. Edit it, OR edit the original XML and rerun FOP, 
or both, until the index file is satisfactory;
4) Run a Perl or Python script (I admit grudgingly that it could be Java 
also) to take the index file and produce an XML file that will convert into 
a page-sequence (the XSLT needs to be ready for this, as required); this can 
be added into the original XML with a reference.
5) Rerun XSLT and FOP, and voila.

I think that an index will require this much work in general, no more and no 
less. It is an art form to produce a good, useful index and it is just not 
going to happen with a simple, automated pass. I also want to stress that 
indexes are derivative - they represent new content, and have parallels with 
footnotes. Some of the discussion so far has seemingly treated indexes as 
being more like word search indexes, and that is not what we are talking
about.

Just some thoughts.

AHS



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




Re: AW: column spanned in multicolumn region

2001-11-12 Thread Arved Sandstrom

At 02:22 AM 11/13/01 GMT, [EMAIL PROTECTED] wrote:
>
>Thanks Arved Sandstrom. It's worked now. Thank you very much.
>
>best rgds,
>
>ektan

Just for future reference, can I ask which approach you used?

If you decided to use multi-column, and put your graphic in a span='all' 
fo:block, I should warn you that column balancing is pretty rough around the 
edges at the moment, with existing FOP versions. This is something that will 
have to be addressed in the rewrite.

Regards,
AHS



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




Re: AW: column spanned in multicolumn region

2001-11-12 Thread ektan


Thanks Arved Sandstrom. It's worked now. Thank you very much.




best rgds,

ektan









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




Re: User-config (RE: Question on XSLTInputHandler)

2001-11-12 Thread Peter B. West

Ramin,

When I looked at this code I came to the same conclusion, but I can't 
say that I feel at home in there, so maybe a rabbit is pulled out of the 
hat somewhere.

See also my earlier comments on redesign of options/command-line processing.

Peter

Ramin Firoozye wrote:

> Since we're on the subject of embedding FOP...
> 
> I still can't figure out how to specify the FOP Driver to load the user
> configuration file from inside a servlet. You need this if you want to have
> your servlet support fonts other than the built-in ones.
> 
> The docs say use something like:
> 
>   Options opt = new Options();
>   opt.loadUserconfiguration("/path-to-user-conf/userconfig.xml");
> 
> But there are no calls on the Driver object (that I can see) to get it to
> use the alternate Options object.
> 
> Any thoughts?
> 
> Ramin
> 
> 
>>-Original Message-
>>From: Jim Urban [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, November 12, 2001 11:08 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: Question on XSLTInputHandler
>>
>>
>>Here is a block of code our of one my servlets. This code takes a string
>>containing XML, applies an XSL:FO style sheet to it, and runs the XML:FO
>>through FOP and send s the PDF directly back to the browser.
>>
>>Writer  out = new StringWriter();
>>Transformer pdfTransformer  =
>>NsTransformerCollection.loadTransformer("my.xsl");;
>>String xmlString = .
>>Source  xmlSource  = new StreamSource(new StringReader(xmlString));
>>pdfTransformer.transform(xmlSource, new StreamResult(out));
>>out.close();
>>String fopstring = out.toString();
>>InputSource foSource = getInput(fopstring);
>>try
>>{
>> ByteArrayOutputStream out = new ByteArrayOutputStream();
>> uResponse.setContentType("application/pdf");
>> Driver driver = new Driver(iInputSource, out);
>> driver.setRenderer(Driver.RENDER_PDF);
>> driver.run();
>> byte[] content = out.toByteArray();
>> uResponse.setContentLength(content.length);
>> uResponse.getOutputStream().write(content);
>> uResponse.getOutputStream().flush();
>> uResponse.flushBuffer();
>>}
>>catch (Exception e){}
>>
>>Jim
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, November 12, 2001 12:49 PM
>>To: [EMAIL PROTECTED]
>>Subject: Question on XSLTInputHandler
>>
>>
>>Hello,
>>
>>I've looked at the example servlet and found that the XSLTInputHandler
>>takes as input a java.io.File. However, I am constructing the XML
>>document dynamically and have it as a java.lang.String in memory. It
>>seems unnecessary I/O to write it out to a temporary file, just to pass
>>it to the XSLTInputHandler. Looking at the source of
>>XSLTInputHandler.java I didn't find any alternate way to call it. What
>>would the recommended procedure be in this case, where I already have
>>the XML document in memory?
>>
>>thanks in advance for any pointers,
>>
>>Ulrich
>>
>>--
>>Ulrich Mayring
>>DENIC eG, Systementwicklung
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, email: [EMAIL PROTECTED]
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, email: [EMAIL PROTECTED]
>>
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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


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




RE: no visual tool for FOP?

2001-11-12 Thread Darrel Riekhof

I just saw that IBM alphawork released some kind of composer for xsl:fo:

http://www.alphaworks.ibm.com/tech/xfc?open&l=188,t=gr,p=xfc

Anyone tried it, it any good?

Darrel

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: RE: no visual tool for FOP?


> I am wondering if there is no way for users
> to generate WISWIG xsl:fo files?
>
> like for HTML, users would use Dreamweaver, rather
> than writing programs Document doc.addElement(new Table(...)).
>

HP released something recently. I haven't tried it, but you can find it
here:
http://www-uk.hpl.hp.com/people/fabgia/foa/foa.html
 
Joshua


--
This message and any attachment is confidential and may be privileged or
otherwise protected from disclosure.  If you have received it by mistake
please let us know by reply and then delete it from your system; you should
not copy the message or disclose its contents to anyone.





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

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




RE: no visual tool for FOP?

2001-11-12 Thread Joshua.Kuswadi

> I am wondering if there is no way for users
> to generate WISWIG xsl:fo files?
>
> like for HTML, users would use Dreamweaver, rather
> than writing programs Document doc.addElement(new Table(...)).
>

HP released something recently. I haven't tried it, but you can find it here:
http://www-uk.hpl.hp.com/people/fabgia/foa/foa.html
 
Joshua

--
This message and any attachment is confidential and may be privileged or otherwise 
protected from disclosure.  If you have received it by mistake please let us know by 
reply and then delete it from your system; you should not copy the message or disclose 
its contents to anyone.





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




Re: Generating indexes

2001-11-12 Thread Corinna Hischke

Hi,

> I'm trying to generate a traditional end-of-book index using FOP (version
> 0.20.2).
> The idea is that in the XML document source the author can specify
something
> like:
> ...
>
> Anyway, I've got most of it worked out in my head (and it hurts (:-)
> especially the bit about multiple page-number-citations referencing a
single
> index entry). It all is so godawful gnarly and I thought I'd ask to see if
> anybody has figured out an easier way to do this in XSL:FO.
>
> Any tips or references would be appreciated.

I also thought of something like 'multiple page-number-citations' and came
to the
conclusion that markers could be used for that. I didn't try yet, but am I
wrong?

Corinna



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




Re: no visual tool for FOP?

2001-11-12 Thread jthaemlitz


You could try checking out XSLFAST (http://www.xslfast.com/) that Stephan's
been working on.

JohnPT



   
  
fop-dev-return-11458-jthaemlitz=oreillyauto.com@XML.   
  
APACHE.ORG To: 
[EMAIL PROTECTED]
   cc: 
  
11/12/01 02:29 PM  
Subject: no visual tool for FOP?  
Please respond to fop-dev  
  
   
  
   
  




I am wondering if there is no way for users
to generate WISWIG xsl:fo files?

like for HTML, users would use Dreamweaver, rather
than writing programs Document doc.addElement(new Table(...)).

I think it should be the same for PDF. Is there
any program that intakes a parsed XHTML and convert it to
PDF?  (I doult all PDF is generated using hand written xsl:fo)...


thanks a lot!



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









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




RE: Question on XSLTInputHandler

2001-11-12 Thread jthaemlitz


You can use org.apache.fop.apps.Driver to get the
org.xml.sax.helpers.DefaultHandler and fire sax events on that.  The
initialization code is highly order dependent.

// THIS IS JUST SOME SET UP CODE
// set up Logger
Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
PatternFormatter formatter = new PatternFormatter( "
[%{priority}]:%{message}\n%{throwable}" );
LogTarget target = new StreamTarget(System.out, formatter);
hierarchy.setDefaultLogTarget(target);
Logger log = hierarchy.getLoggerFor("fop");
// get output stream one way or
FileOutputStream out = new FileOutputStream( "filename.pdf" );

// HERE's THE CODE YOU NEED
Driver driver = new Driver();
driver.setOutputStream(out);
driver.setLogger( log );
driver.setRenderer( driver.RENDER_PDF );
DefaultHandler handler = (DefaultHandler) driver.getContentHandler() );
handler.startDocument();
...
handler.endDocument();
out.close();

After seeing Yuri's implementation I'd go with his.  The above avoids
having to create a XML data file but you wind up with quite a bit of
wrapper code and loose the XSL template cache.  However it is another
direct way, it also gives you a little more control since you are fireing
SAX events from Java rather than XSLT.  Then again that kind of stuff
should probably be done in an extension.

JohnPT



   
  
fop-dev-return-11456-jthaemlitz=oreillyauto.com@XML.   
  
APACHE.ORG To: 
[EMAIL PROTECTED]
   cc: 
  
11/12/01 01:39 PM  
Subject: RE: Question on XSLTInputHandler 
Please respond to fop-dev  
  
   
  
   
  




Before I go on, let me say I turned my XSLT-transformed document into a
string and then handed it to Fop.

XML tree -> Xalan transform handler -> serialize -> string -> Fop

However, this is silly.

It would be more intelligent to be able to send Sax events to Fop. I
found a class in the Fop source that handles it, but it seems to care
about Jim Clark's XML handlers. I use the Apache XML code and would
rather stick with those. I plan on looking into the Fop content handler
that claims need of Clark's stuff and see if it really cares, or
finding another content handler, or creating a regular Sax content
handler that can talk to Fop. Perhaps Cocoon has one since you can have
PDF generated at the end of a Cocoon pipeline. Does anyone know of one
that already exists?

--- Jim Wright <[EMAIL PROTECTED]> wrote:
> Thanks a lot!
>
> jw
>
> -Original Message-
> From: Clute, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 1:13 PM
> To: '[EMAIL PROTECTED] '
> Subject: RE: Question on XSLTInputHandler
>
>
> Sure...
> Attached is a new FOInputHandler.java file.
> As you can see all I did was add a new method to set a String
> input-source,
> and to get an InputSource that was fed from a StringReader.
>
> Let me know if you have any questions.
>
> -Original Message-
> From: Jim Wright
> To: [EMAIL PROTECTED]
> Sent: 11/12/2001 2:02 PM
> Subject: RE: Question on XSLTInputHandler
> Andrew:
>
> For me, at least, that example would be greatly appreciated. Could
> you
> send it along?
>
> Thanks...
>
> jw
>
> -Original Message-
> From: Clute, Andrew [ mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 12:58 PM
> To: '[EMAIL PROTECTED] '
> Subject: RE: Question on XSLTInputHandler
>
> There is no way to do it without modifying the source code.
> I added an InputSource that took in a String...took about 10 minutes
> and
> 5 lines of code (I did it on .20.1).
> I can send you the code to make the changes, if you want.
> Any reasons why this is not part of the class structure?
> -andrew
>
> -Original Message-
> From: Ulrich Mayring
> To: [EMAIL PROTECTED]
> Sent: 11/12/2001 1:49 PM
> Subject: Question on XSLTInputHandler
> Hello,
> I've looked at the example servlet and found that the
> XSLTInputHandler
> takes as input a java.io.File. However, I am constructing the XML
> document dynamically and have it as a java.lang.String in memory. It
> seems unnecessary I/O to write it out to a temporary file, just to
> pass
> it to the XSLTInputHandler. Looking at the source of
> XSLTInputHandler.java I didn't

[PATCH] Proper use of font encodings for "native" fonts

2001-11-12 Thread Peter S. Housel


One of the major annoyances for me as I tried to use FOP has been that
it didn't try very hard to get the encodings of the Symbol and
ZapfDingbats fonts right.  In particular, using the proper Unicode
characters for glyphs in these fonts wasn't possible.

The enclosed patch (against 0.20.2, though it should apply cleanly
against the CVS HEAD version) fixes the encoding mechanism.  It splits
charlist.xml (which only covered WinAnsiEncoding) into two files,
glyphlist.xml (containing the official Adobe Glyph List and Zapf
Dingbats glyph lists), and encodings.xml (containing all of the
standard Adobe encodings).  This forces the build process to do a
relational "join" on the two files to generate CodePointMapping.java,
slowing it down a little bit.

It still uses the WinAnsiEncoding for text fonts because this vector
gives the best coverage.  Building with -Dtextfontencoding=MacRomanEncoding or
-Dtextfontencoding=MacExpertEncoding should work too, and allow a different
subset of the font characters in the native text fonts.  With the addition of
code to output encoding vectors, other encodings (such as CEEncoding) could
be used.

Note that this patch requires that the ant distribution's
"optional.jar" be added to lib.

-Peter S. Housel-  [EMAIL PROTECTED]  http://members.home.com/housel/



fop-encoding.zip
Description: Zip archive





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


Re: html2pdf, for god's sake

2001-11-12 Thread Enrico Schnepel

Hello Huaxin,

I've developed html2fo to convert from html to xsl:fo. Using FOP you will get 
a mostly well formated output. It is available from
http://sourceforge.net/projects/html2fo

it is not possible to create forms in pdf because there is no extention to 
fop which generate this.

if your html code is not well formed you will get a better output if you use 
HTML Tidy before html2fo.

Acrobat offers a free "printing to pdf" driver for windows. It is installed 
on my pc at work so I don't know where to get it.

regards

Enrico

Am Montag, 12. November 2001 18:56 schrieben Sie:
> I am new to this list. After searching for tools that
> is able to convert HTML to PDF (using a comand line,
> or some API), I got so frustrated. There are a whole
> bunch of lamed tools that doesn't recgonize 
>   even 
>
>
> Is there any
> tool that is able to transform HTML to PDF the
> same way as Acrobat Distiller does? (but Acrobat
> doesn't have a command line shell or an API for doing
> that).
>
>
> thanks
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




RE: FOP memory usage

2001-11-12 Thread Branham, Paul

What about if I change it to feed the XML information instream instead of
from a file. Would this fix the current memory problem?

Paul Branham
[EMAIL PROTECTED]
24/7 Media, Inc.
Phone:(301)897-7722


-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 11:20 PM
To: [EMAIL PROTECTED]
Subject: RE: FOP memory usage


On Sat, 2001-11-10 at 06:09, Branham, Paul wrote:
> Would it be possible to show a small example of how this is accomplished?
> 
> FOP and SVG are looking to be a good alternative to our current reporting
> solution, but the current difficulty we are having is that I can't print
out
> large reports.

well, instead of using just a single fo:page-sequence, you use more than
one. ie:


   .
   .
   .
   
 
   ...
 
   

   
 
   ...
 
   




Each page-sequence will start on a new page.

Cheers
Mark


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

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




no visual tool for FOP?

2001-11-12 Thread Huaxin Zhang

I am wondering if there is no way for users 
to generate WISWIG xsl:fo files? 

like for HTML, users would use Dreamweaver, rather
than writing programs Document doc.addElement(new Table(...)).

I think it should be the same for PDF. Is there
any program that intakes a parsed XHTML and convert it to
PDF?  (I doult all PDF is generated using hand written xsl:fo)...


thanks a lot!



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




RE: Question on XSLTInputHandler

2001-11-12 Thread Shkuro, Yuri

I've already posted this code to the list, but 
will do it again.  I would like to see it finding 
its place on http://xml.apache.org/fop/embedding.html
one day - shouldn't we promote efficient use of FOP 
instead  of giving an example of embedding, which is 
technically correct but hardly userful for servlet 
developers?

The code below has the following benefits compared to
Jim's example:
  - all transformations are done in a single pass
by chaining SAX events
  - the resulting PDF is not stored in memory, but
 streamed directly into the output stream
(in Jim's example, it is first stored in a string,
 then converted to byte array, and only then is
 writted to the output stream)



import javax.xml.transform.Source;
import javax.xml.transform.Result;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.Templates;
import javax.xml.transform.Transformer;
import org.apache.fop.apps.Driver;

// ---
// 1. Get a Source for XML document
// ---

 // a) from string
Source strSource = new StreamSource(new StringReader(xmlString));

 // b) from file
Source fileSource = new StreamSource(xmlFile);

 // c) from JDOM Document 
Source domSource = new org.jdom.transform.JDOMSource( jdomDocument )

// ---
// 2. Get stylesheet transformer
// ---
 // from file, see above examples for other types of XSL input
Templates template = transformerFactory.newTemplates( new StreamSource(
xslFile ));
 // note - template object is multi-threaded and should be cached if you
plan
 // to use the same XSL repeatedly
Transformer transformer = template.mewTransformer();

// ---
// 3. Create FOP driver and set rendering mode and output stream
// ---
Driver driver = new Driver();
driver.setRenderer(driver.RENDER_PDF);
driver.setOutputStream( response.getOutputStream() );
// initialize logger - see sample code on FOP website
driver.setLogger(logger);

// ---
// 4. Create SAXResult based on FOP Driver content handler 
// which will accept SAX events and build FOP tree
// ---
Result saxResult = new SAXResult( driver.getContentHandler() );

// 5. Use the Transformer to transform an XML Source and 
// send the output to a Result object. Implicitely it will 
// create the FOP tree by firing SAX events.
transformer.transform( whateverSource, saxResult );

// 6. Your user is already viewing the PDF!
response.getOutputStream().flush();
response.getOutputStream().close();

Yuri Shkuro
HR - Information Technology
Goldman Sachs & Co., New York

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Question on XSLTInputHandler


Here is a block of code our of one my servlets. This code takes a string
containing XML, applies an XSL:FO style sheet to it, and runs the XML:FO
through FOP and send s the PDF directly back to the browser.

Writer  out = new StringWriter();
Transformer pdfTransformer  =
NsTransformerCollection.loadTransformer("my.xsl");;
String xmlString = .
Source  xmlSource  = new StreamSource(new StringReader(xmlString));
pdfTransformer.transform(xmlSource, new StreamResult(out));
out.close();
String fopstring = out.toString();
InputSource foSource = getInput(fopstring);
try
{
 ByteArrayOutputStream out = new ByteArrayOutputStream();
 uResponse.setContentType("application/pdf");
 Driver driver = new Driver(iInputSource, out);
 driver.setRenderer(Driver.RENDER_PDF);
 driver.run();
 byte[] content = out.toByteArray();
 uResponse.setContentLength(content.length);
 uResponse.getOutputStream().write(content);
 uResponse.getOutputStream().flush();
 uResponse.flushBuffer();
}
catch (Exception e){}

Jim


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Question on XSLTInputHandler


Hello,

I've looked at the example servlet and found that the XSLTInputHandler
takes as input a java.io.File. However, I am constructing the XML
document dynamically and have it as a java.lang.String in memory. It
seems unnecessary I/O to write it out to a temporary file, just to pass
it to the XSLTInputHandler. Looking at the source of
XSLTInputHandler.java I didn't find any alternate way to call it. What
would the recommended procedure be in this case, where I already have
the XML document in memory?

thanks in advance for any pointers,

Ulrich

--
Ulrich Mayring
DENIC eG, Systementwicklung


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




RE: Question on XSLTInputHandler

2001-11-12 Thread Robax Man

Before I go on, let me say I turned my XSLT-transformed document into a
string and then handed it to Fop.

XML tree -> Xalan transform handler -> serialize -> string -> Fop

However, this is silly.

It would be more intelligent to be able to send Sax events to Fop. I
found a class in the Fop source that handles it, but it seems to care
about Jim Clark's XML handlers. I use the Apache XML code and would
rather stick with those. I plan on looking into the Fop content handler
that claims need of Clark's stuff and see if it really cares, or
finding another content handler, or creating a regular Sax content
handler that can talk to Fop. Perhaps Cocoon has one since you can have
PDF generated at the end of a Cocoon pipeline. Does anyone know of one
that already exists?

--- Jim Wright <[EMAIL PROTECTED]> wrote:
> Thanks a lot!
> 
> jw
> 
> -Original Message-
> From: Clute, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 1:13 PM
> To: '[EMAIL PROTECTED] '
> Subject: RE: Question on XSLTInputHandler
> 
> 
> Sure...
> Attached is a new FOInputHandler.java file.
> As you can see all I did was add a new method to set a String
> input-source,
> and to get an InputSource that was fed from a StringReader.
> 
> Let me know if you have any questions.
> 
> -Original Message-
> From: Jim Wright
> To: [EMAIL PROTECTED]
> Sent: 11/12/2001 2:02 PM
> Subject: RE: Question on XSLTInputHandler
> Andrew:
> 
> For me, at least, that example would be greatly appreciated. Could
> you
> send it along?
> 
> Thanks...
> 
> jw
> 
> -Original Message-
> From: Clute, Andrew [ mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 12:58 PM
> To: '[EMAIL PROTECTED] '
> Subject: RE: Question on XSLTInputHandler
> 
> There is no way to do it without modifying the source code.
> I added an InputSource that took in a String...took about 10 minutes
> and
> 5 lines of code (I did it on .20.1).
> I can send you the code to make the changes, if you want.
> Any reasons why this is not part of the class structure?
> -andrew
> 
> -Original Message-
> From: Ulrich Mayring
> To: [EMAIL PROTECTED]
> Sent: 11/12/2001 1:49 PM
> Subject: Question on XSLTInputHandler
> Hello,
> I've looked at the example servlet and found that the
> XSLTInputHandler
> takes as input a java.io.File. However, I am constructing the XML
> document dynamically and have it as a java.lang.String in memory. It
> seems unnecessary I/O to write it out to a temporary file, just to
> pass
> it to the XSLTInputHandler. Looking at the source of
> XSLTInputHandler.java I didn't find any alternate way to call it.
> What
> would the recommended procedure be in this case, where I already have
> the XML document in memory?
> thanks in advance for any pointers,
> Ulrich
> --
> Ulrich Mayring
> DENIC eG, Systementwicklung
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




User-config (RE: Question on XSLTInputHandler)

2001-11-12 Thread Ramin Firoozye

Since we're on the subject of embedding FOP...

I still can't figure out how to specify the FOP Driver to load the user
configuration file from inside a servlet. You need this if you want to have
your servlet support fonts other than the built-in ones.

The docs say use something like:

  Options opt = new Options();
  opt.loadUserconfiguration("/path-to-user-conf/userconfig.xml");

But there are no calls on the Driver object (that I can see) to get it to
use the alternate Options object.

Any thoughts?

Ramin

> -Original Message-
> From: Jim Urban [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Question on XSLTInputHandler
>
>
> Here is a block of code our of one my servlets. This code takes a string
> containing XML, applies an XSL:FO style sheet to it, and runs the XML:FO
> through FOP and send s the PDF directly back to the browser.
>
> Writer  out = new StringWriter();
> Transformer pdfTransformer  =
> NsTransformerCollection.loadTransformer("my.xsl");;
> String xmlString = .
> Source  xmlSource  = new StreamSource(new StringReader(xmlString));
> pdfTransformer.transform(xmlSource, new StreamResult(out));
> out.close();
> String fopstring = out.toString();
> InputSource foSource = getInput(fopstring);
> try
> {
>  ByteArrayOutputStream out = new ByteArrayOutputStream();
>  uResponse.setContentType("application/pdf");
>  Driver driver = new Driver(iInputSource, out);
>  driver.setRenderer(Driver.RENDER_PDF);
>  driver.run();
>  byte[] content = out.toByteArray();
>  uResponse.setContentLength(content.length);
>  uResponse.getOutputStream().write(content);
>  uResponse.getOutputStream().flush();
>  uResponse.flushBuffer();
> }
> catch (Exception e){}
>
> Jim
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: Question on XSLTInputHandler
>
>
> Hello,
>
> I've looked at the example servlet and found that the XSLTInputHandler
> takes as input a java.io.File. However, I am constructing the XML
> document dynamically and have it as a java.lang.String in memory. It
> seems unnecessary I/O to write it out to a temporary file, just to pass
> it to the XSLTInputHandler. Looking at the source of
> XSLTInputHandler.java I didn't find any alternate way to call it. What
> would the recommended procedure be in this case, where I already have
> the XML document in memory?
>
> thanks in advance for any pointers,
>
> Ulrich
>
> --
> Ulrich Mayring
> DENIC eG, Systementwicklung
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




RE: Question on XSLTInputHandler

2001-11-12 Thread Jim Wright
Title: RE: Question on XSLTInputHandler









Thanks a
lot!

 

jw

 

-Original
Message-
From: Clute, Andrew
[mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001
1:13 PM
To: '[EMAIL PROTECTED] '
Subject: RE: Question on
XSLTInputHandler

 

 

Sure... 

Attached is a new FOInputHandler.java
file. 

As you can see all I did was add a new
method to set a String input-source, and to get an InputSource that was fed
from a StringReader.

 

Let me know if you have any questions. 

 

-Original Message- 
From: Jim Wright 
To: [EMAIL PROTECTED] 
Sent: 11/12/2001 2:02 PM 
Subject: RE: Question on XSLTInputHandler 

Andrew: 
  
For me, at least, that example would be greatly appreciated. Could
you 
send it along? 
  
Thanks...

  
jw 
  
-Original Message- 
From: Clute, Andrew [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 12, 2001 12:58 PM 
To: '[EMAIL PROTECTED] ' 
Subject: RE: Question on XSLTInputHandler 
  
There is no way to do it without modifying the source code. 
I added an InputSource that took in a String...took about 10
minutes and 
5 lines of code (I did it on .20.1). 
I can send you the code to make the changes, if you want. 
Any reasons why this is not part of the class structure? 
-andrew 
  
-Original Message- 
From: Ulrich Mayring 
To: [EMAIL PROTECTED] 
Sent: 11/12/2001 1:49 PM 
Subject: Question on XSLTInputHandler 
Hello, 
I've looked at the example servlet and found that the XSLTInputHandler

takes as input a java.io.File. However, I am constructing the XML 
document dynamically and have it as a java.lang.String in memory.
It 
seems unnecessary I/O to write it out to a temporary file, just to
pass 
it to the XSLTInputHandler. Looking at the source of 
XSLTInputHandler.java I didn't find any alternate way to call it.
What 
would the recommended procedure be in this case, where I already
have 
the XML document in memory? 
thanks in advance for any pointers, 
Ulrich 
-- 
Ulrich Mayring 
DENIC eG, Systementwicklung 
-

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

  








RE: Question on XSLTInputHandler

2001-11-12 Thread Clute, Andrew
Title: RE: Question on XSLTInputHandler






Sure...


Attached is a new FOInputHandler.java file.


As you can see all I did was add a new method to set a String input-source, and to get an InputSource that was fed from a StringReader.


Let me know if you have any questions. 



-Original Message-
From: Jim Wright
To: [EMAIL PROTECTED]
Sent: 11/12/2001 2:02 PM
Subject: RE: Question on XSLTInputHandler


Andrew:
 
For me, at least, that example would be greatly appreciated. Could you
send it along?
 
Thanks...
 
jw
 
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 12:58 PM
To: '[EMAIL PROTECTED] '
Subject: RE: Question on XSLTInputHandler
 
There is no way to do it without modifying the source code. 
I added an InputSource that took in a String...took about 10 minutes and
5 lines of code (I did it on .20.1). 
I can send you the code to make the changes, if you want. 
Any reasons why this is not part of the class structure? 
-andrew 
  
-Original Message- 
From: Ulrich Mayring 
To: [EMAIL PROTECTED] 
Sent: 11/12/2001 1:49 PM 
Subject: Question on XSLTInputHandler 
Hello, 
I've looked at the example servlet and found that the XSLTInputHandler 
takes as input a java.io.File. However, I am constructing the XML 
document dynamically and have it as a java.lang.String in memory. It 
seems unnecessary I/O to write it out to a temporary file, just to pass 
it to the XSLTInputHandler. Looking at the source of 
XSLTInputHandler.java I didn't find any alternate way to call it. What 
would the recommended procedure be in this case, where I already have 
the XML document in memory? 
thanks in advance for any pointers, 
Ulrich 
-- 
Ulrich Mayring 
DENIC eG, Systementwicklung 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, email: [EMAIL PROTECTED] 


 




FOInputHandler.java
Description: Binary data

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


RE: Question on XSLTInputHandler

2001-11-12 Thread Jim Urban

Here is a block of code our of one my servlets. This code takes a string
containing XML, applies an XSL:FO style sheet to it, and runs the XML:FO
through FOP and send s the PDF directly back to the browser.

Writer  out = new StringWriter();
Transformer pdfTransformer  =
NsTransformerCollection.loadTransformer("my.xsl");;
String xmlString = .
Source  xmlSource  = new StreamSource(new StringReader(xmlString));
pdfTransformer.transform(xmlSource, new StreamResult(out));
out.close();
String fopstring = out.toString();
InputSource foSource = getInput(fopstring);
try
{
 ByteArrayOutputStream out = new ByteArrayOutputStream();
 uResponse.setContentType("application/pdf");
 Driver driver = new Driver(iInputSource, out);
 driver.setRenderer(Driver.RENDER_PDF);
 driver.run();
 byte[] content = out.toByteArray();
 uResponse.setContentLength(content.length);
 uResponse.getOutputStream().write(content);
 uResponse.getOutputStream().flush();
 uResponse.flushBuffer();
}
catch (Exception e){}

Jim


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Question on XSLTInputHandler


Hello,

I've looked at the example servlet and found that the XSLTInputHandler
takes as input a java.io.File. However, I am constructing the XML
document dynamically and have it as a java.lang.String in memory. It
seems unnecessary I/O to write it out to a temporary file, just to pass
it to the XSLTInputHandler. Looking at the source of
XSLTInputHandler.java I didn't find any alternate way to call it. What
would the recommended procedure be in this case, where I already have
the XML document in memory?

thanks in advance for any pointers,

Ulrich

--
Ulrich Mayring
DENIC eG, Systementwicklung

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



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




RE: Question on XSLTInputHandler

2001-11-12 Thread Jim Wright
Title: RE: Question on XSLTInputHandler









Andrew:

 

For me, at
least, that example would be greatly appreciated. Could you send it along?

 

Thanks…

 

jw

 

-Original
Message-
From: Clute, Andrew
[mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001
12:58 PM
To: '[EMAIL PROTECTED] '
Subject: RE: Question on
XSLTInputHandler

 

There is no way to do it without modifying
the source code. 

I added an InputSource that took in a
String...took about 10 minutes and 5 lines of code (I did it on .20.1). 

I can send you the code to make the
changes, if you want.


Any reasons why this is not part of the
class structure? 

-andrew 

  

-Original Message- 
From: Ulrich Mayring 
To: [EMAIL PROTECTED] 
Sent: 11/12/2001 1:49 PM 
Subject: Question on XSLTInputHandler 

Hello, 

I've looked at the example servlet and
found that the XSLTInputHandler 
takes as input a java.io.File. However, I am constructing the XML 
document dynamically and have it as a java.lang.String in memory.
It 
seems unnecessary I/O to write it out to a temporary file, just to
pass 
it to the XSLTInputHandler. Looking at the source of 
XSLTInputHandler.java I didn't find any alternate way to call it.
What 
would the recommended procedure be in this case, where I already
have 
the XML document in memory? 

thanks in advance for any pointers, 

Ulrich 

-- 
Ulrich Mayring 
DENIC eG, Systementwicklung 

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








RE: Question on XSLTInputHandler

2001-11-12 Thread Clute, Andrew
Title: RE: Question on XSLTInputHandler





There is no way to do it without modifying the source code.


I added an InputSource that took in a String...took about 10 minutes and 5 lines of code (I did it on .20.1).


I can send you the code to make the changes, if you want.


Any reasons why this is not part of the class structure?


-andrew


 


-Original Message-
From: Ulrich Mayring
To: [EMAIL PROTECTED]
Sent: 11/12/2001 1:49 PM
Subject: Question on XSLTInputHandler


Hello,


I've looked at the example servlet and found that the XSLTInputHandler
takes as input a java.io.File. However, I am constructing the XML
document dynamically and have it as a java.lang.String in memory. It
seems unnecessary I/O to write it out to a temporary file, just to pass
it to the XSLTInputHandler. Looking at the source of
XSLTInputHandler.java I didn't find any alternate way to call it. What
would the recommended procedure be in this case, where I already have
the XML document in memory?


thanks in advance for any pointers,


Ulrich


-- 
Ulrich Mayring
DENIC eG, Systementwicklung


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





Question on XSLTInputHandler

2001-11-12 Thread Ulrich Mayring

Hello,

I've looked at the example servlet and found that the XSLTInputHandler
takes as input a java.io.File. However, I am constructing the XML
document dynamically and have it as a java.lang.String in memory. It
seems unnecessary I/O to write it out to a temporary file, just to pass
it to the XSLTInputHandler. Looking at the source of
XSLTInputHandler.java I didn't find any alternate way to call it. What
would the recommended procedure be in this case, where I already have
the XML document in memory?

thanks in advance for any pointers,

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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




Re: leaders and start-indent

2001-11-12 Thread Rainer Garus

Hi Phil,

you can find a patch for this bug in the mail archiv:
http://marc.theaimsgroup.com/?l=fop-dev&m=99945422511048&w=2

The patch was sended on 2001-09-02, but never entered in CVS.
It should work with fop 0.20.1 and 0.20.2RC.

Rainer Garus

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




Graphics in Cocoon 2

2001-11-12 Thread Matthias Fischer


This graphics topic in Cocoon 2 (in order not to speak of Cocoon 1...) is
really tricky - I thought we had it under control in the meantime, but it
appears, we haven't. Graphics are displayed sometimnes and sometimes not,
sometimes gifs aren't and sometimes tif's; sometimes it seems it's the fault
of Windows® 2000, and that everythings works well under Windows® NT,
sometimes - like this afternoon - it doesn't. It has been the case that we
thought to succeed with putting one kind of source file path into XSL-FO
rather than another one, but then, one day later, both types of path work.

I really wonder whether it is possible to get a stable system one could hand
out to a customer?!

Is there anybody with ... as big as this who can supply me with a complete
set of plausible and praxis-proven instructions on how I'll get the damned
thing to output pdf's with graphics?



Well, in central Europe its dark by now, I'm going. I wonder whether I'll
find some marvellous news tomorrow in my mailbox, that will resolve all my
problems...

I thank you in advance for your really indispensable help, without which my
team and I, at 98% of the path, cannot really get to any acceptable results.

Matthias


Dott. Matthias Fischer
abc.Mediaservice GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 9686-38
Fax  (08241) 9686-26
http://www.abc-media.de
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe




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




html2pdf, for god's sake

2001-11-12 Thread Huaxin Zhang

I am new to this list. After searching for tools that
is able to convert HTML to PDF (using a comand line,
or some API), I got so frustrated. There are a whole
bunch of lamed tools that doesn't recgonize 
  even 


Is there any
tool that is able to transform HTML to PDF the
same way as Acrobat Distiller does? (but Acrobat
doesn't have a command line shell or an API for doing
that).


thanks



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




DO NOT REPLY [Bug 4814] New: - 0.20.2RC infinitely loops if there are tables in fo input

2001-11-12 Thread bugzilla

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

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

0.20.2RC infinitely loops if there are tables in fo input

   Summary: 0.20.2RC infinitely loops if there are tables in fo
input
   Product: Fop
   Version: all
  Platform: PC
   URL: http://www.lodestar2.com/people/dyork/talks/2001/ols/max
imizing-cvs.xml
OS/Version: Linux
Status: NEW
  Severity: Normal
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hello,

I've tested maximizing-cvs.xml with xsltproc and fop:

$ xsltproc -o z.fo slides-2.0a2/xsl/fo-plain.xsl z.xml
Making landscape pages on USletter paper (11inx8.5in)
No template named "slides" exists in the context named "title" in the "en"
localization.
listitem encountered, but no template matches.


$ JAVA_HOME=/opt/jdk-1.2.2 sh Fop-0.20.2/fop.sh -fo z.fo -pdf z.pdf
[INFO]: FOP 0.20.2
[INFO]: building formatting object tree
[WARN]: property - "alignment-baseline" is not implemented yet.
[WARN]: property - "font" is not implemented yet.

[INFO]: [1]

[INFO]: [10]
[ERROR]: >


After the interruption, the resulting PDF is broken.

fop itself didn't produce any output at all:

JAVA_HOME=/opt/jdk-1.2.2 sh -x Fop-0.20.2/fop.sh -xml z.xml -xsl
slides-2.0a2/xsl/fo-plain.xsl -pdf z.pdf
[INFO]: FOP 0.20.2
[ERROR]: null

Fop crashes also if fo is generated via Saxon 6.4.4.

The error seems to be related to tables: removing all tables from the XML source
solves the problem.

With best regards,
Baurjan.

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




RE: Anti-aliasing

2001-11-12 Thread Scott Moore

Keiron,

Thanks!  You are absolutely correct.  It is a setting in Acrobat Reader.  I
never saw it before because it doesn't show up when it's embedded in
Internet Explorer.  I had to start it as a separate application and change
the preferences there.  Looks much better now.

Scott


-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Anti-aliasing



If the curves you are refereing to are normal svg curves without any
effects then they have been converted directly into pdf curves. This means
that are an exact represenation (within reason) of the svg curves. The
problem then is with acrobat check the preferences.

If your svg is creating a graphic which is embedded into the pdf then the
issue is different. You will need to work out how to make batik draw the
images at a higher resolution.

On 2001.11.10 17:24 Scott Moore wrote:
> I'm using FOP from a servlet (e.g., not the command line version) and I
> have
> some embedded SVG in the XSL-FO.  The curves are very jagged in the final
> PDF and I would like to turn anti-aliasing on.
> 
> How can I do this?  I looked thru the FOP source code and although I see
> parameters for anti-aliasing in a couple of Java files, I never found a
> way
> to configure it in my servlet code.
> 
> Is there a property I can set on the Configuration object to turn this
> on?
> 
> Thanks,
> Scott

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

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




Re: AW: column spanned in multicolumn region

2001-11-12 Thread Arved Sandstrom

At 02:16 AM 11/12/01 GMT, [EMAIL PROTECTED] wrote:
>Thanks Christian.
>
>I'm still can't get the column spanned in my pdf file, the following is my
>xsl style sheet, anything wrong here?
>
>
>   page-width="8.5in"
>   page-height="11in"
>   margin-top="0in"
>   margin-bottom="0in"
>   margin-left="1.0in"
>   margin-right="1.0in">
>  ="0.8in"/>
>  extent="1.5in"/>
> extent="1in"/>
>
>
>   page-width="8.5in"
>   page-height="11in"
>   margin-top="0in"
>   margin-bottom="0in"
>   margin-left="1.0in"
>   margin-right="1.0in">
>  ="0.8in"/>
>  extent="1.5in"/>
> extent="1in"/>
>
>
>
>
> 
>
> 
>

XSL allows you to specify a multi-column region-body with N columns. You 
have specified 3. Your _only_ options are to have content laid-out into 3 
columns (span='none'), or one (span='all').

These are not tables. They are classic text columns, where content flows 
from one to the other. You probably want to use either a real table, or 
alternatively, use span='all', and align and size your graphic appropriately 
in that span-reference-area - after all, you know the dimensions ahead of 
time that correspond to what you are trying to do.

Regards,
AHS



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




PrintRenderer

2001-11-12 Thread sjeanjean

Hello,

FOP is a very interesting project !! Bravo !!
I would like to use it to print from a Swing application (embeded
solution). I have few questions :
- Why the PrintRenderer is an inner class of PrintStarter and it s not in
the org.apache.fop.render ? I have done a test to print directly a document
(no pdf or ps document generation), so I have to rewrite the PrintRenderer
(copy/paste).
- If I want to display a preview, have I to render 2 times my document :
one by the awtRenderer and one by printRenderer ?
- How could I use the sun implementation of parser and transformer (no
Xalan or Xerces) ?

Thanks for your answers !!!

bye,

Stephane







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




RE: " keep-together.within-page" not implemented?

2001-11-12 Thread Michail Bikoulis

Unfortunetely not.

Read the document implemented.html in docs\html-docs under the main FOP
directory for a list of things that are implemented.

Regards,

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 12. november 2001 15:08
To: [EMAIL PROTECTED]
Subject: " keep-together.within-page" not implemented?


Hi together,

I tried to use "keep-together.within-page" in a block, but I didn't see any
changes! Is this attribute not implemented?

Egmont


Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



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

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




" keep-together.within-page" not implemented?

2001-11-12 Thread egmontr

Hi together,

I tried to use "keep-together.within-page" in a block, but I didn't see any changes! 
Is this attribute not implemented?

Egmont


Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



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




Re: [REDESIGN] Initial cut at Layout Manager

2001-11-12 Thread Keiron Liddle

Arved (and anyone else interested),

As far as getting this all to work there are a few areas that need some
work.

The image package needs a bit of a rethink:
- explicitly load images only when needed (determining size if size not
specified and for embedding)
- allow for the various types of output
- cache images (weak hashmap?) after finished with (have strong reference
until then)
- renderers keep their own concept of the image once embedded
- central store of images that may have context, be thread safe
- the key to the image is the (original) url

PDF Document classes:
- mostly good and has served us well, except a few bad things have crept
into it (or out of it)
- pdf linking should be completely in the pdf package
- pdf images should be completely inside the pdf package
- fonts

Layout:
No doubt there are a lot of things left to do.
It's hard to pinpoint a particular part at the moment. I am still working
on the concepts.
I suppose we need to work from the top down (root, pagination, flow etc.)
while keeping in mind how to handle things like id references.

Is it possible to add each block to the layout when the end element is
encountered from sax? Then can we quickly start sending pages through to be
rendered as soon as a page has been finished.

Nothing really specific unless you want something simple like title or
color-profile.

Regards,
Keiron Liddle.

On 2001.11.10 01:38 Arved Sandstrom wrote:
> At 12:05 AM 11/10/01 +0100, Karen Lease wrote:
> >Hi all,
> >An initial version of the Layout Manager classes (package
> >org.apache.fop.layoutmgr) is now in CVS, plus some related changes in
> >Area (up for discussion; this is just past the pseudocode point, but at
> >least it builds :-) and in the fo/pagination classes.
> >Needless to say, it does nothing useful whatsoever yet.
> 
> All I can say is that I'm grateful that the two of you, Keiron and
> yourself, 
> have the time to do this. I've been tracking progress, and basically I am
> 
> waiting for the right moment to jump in and help out with smaller bits, 
> because I can squeeze out time for that...just not the bigger stuff. I
> guess 
> what I'm asking is, is there any area in particular that I can assist
> with 
> or should take a look at?
> 
> Regards,
> Arved

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




cvs commit: xml-fop/src/org/apache/fop/svg PDFDocumentGraphics2D.java

2001-11-12 Thread keiron

keiron  01/11/12 05:10:12

  Modified:src/org/apache/fop/area AreaTree.java PageViewport.java
   src/org/apache/fop/pdf PDFDocument.java PDFInfo.java
PDFPage.java PDFXObject.java
   src/org/apache/fop/render AbstractRenderer.java
Renderer.java
   src/org/apache/fop/render/pdf PDFRenderer.java
   src/org/apache/fop/svg PDFDocumentGraphics2D.java
  Log:
  some changes for out of order rendering and rendering to a renderer
  
  Revision  ChangesPath
  1.3   +31 -17xml-fop/src/org/apache/fop/area/AreaTree.java
  
  Index: AreaTree.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/AreaTree.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AreaTree.java 2001/10/26 09:26:59 1.2
  +++ AreaTree.java 2001/11/12 13:10:11 1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: AreaTree.java,v 1.2 2001/10/26 09:26:59 keiron Exp $
  + * $Id: AreaTree.java,v 1.3 2001/11/12 13:10:11 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -7,8 +7,9 @@
   
   package org.apache.fop.area;
   
  -import java.util.ArrayList;
  +import org.apache.fop.render.Renderer;
   
  +import java.util.ArrayList;
   
   /**
* Area tree for formatting objects.
  @@ -31,9 +32,9 @@
   // allows for different models to deal with adding/rendering
   // in different situations
   AreaTreeModel model;
  -
  -public void createRenderPageModel(PageRenderListener listener) {
   
  +public RenderPagesModel createRenderPagesModel(Renderer rend) {
  +return new RenderPagesModel(rend);
   }
   
   public static StorePagesModel createStorePagesModel() {
  @@ -44,7 +45,7 @@
   model = m;
   }
   
  -public void startPageSequence(Area title) {
  +public void startPageSequence(Title title) {
   model.startPageSequence(title);
   }
   
  @@ -54,7 +55,7 @@
   
   // this is the model for the area tree object
   public static abstract class AreaTreeModel {
  -public abstract void startPageSequence(Area title);
  +public abstract void startPageSequence(Title title);
   public abstract void addPage(PageViewport page);
   }
   
  @@ -67,7 +68,7 @@
   
   public StorePagesModel() {}
   
  -public void startPageSequence(Area title) {
  +public void startPageSequence(Title title) {
   titles.add(title);
   if (pageSequence == null) {
   pageSequence = new ArrayList();
  @@ -99,18 +100,31 @@
   }
   }
   
  -// this queues pages and will call the render listener
  -// when the page is ready to be rendered
  -// if the render supports out of order rendering
  -// then a ready page is rendered immediately
  +// this uses the store pages model to store the pages
  +// each page is either rendered if ready or prepared
  +// for later rendering
   public static class RenderPagesModel extends StorePagesModel {
  -public void startPageSequence(Area title) {}
  -public void addPage(PageViewport page) {}
  -}
  +Renderer renderer;
  +ArrayList prepared = new ArrayList();
  +
  +public RenderPagesModel(Renderer rend) {
  +renderer = rend;
  +}
  +
  +public void startPageSequence(Title title) {
  +super.startPageSequence(title);
  +renderer.startPageSequence(title);
  +}
   
  -public static abstract class PageRenderListener {
  -public abstract void renderPage(RenderPagesModel model,
  -int pageseq, int count);
  +public void addPage(PageViewport page) {
  +super.addPage(page);
  +// if page finished
  +//renderer.renderPage(page);
  +page.clear();
  +// else prepare
  +//renderer.preparePage(page);
  +prepared.add(page);
  +}
   }
   
   }
  
  
  
  1.4   +10 -1 xml-fop/src/org/apache/fop/area/PageViewport.java
  
  Index: PageViewport.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/PageViewport.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PageViewport.java 2001/11/09 11:32:36 1.3
  +++ PageViewport.java 2001/11/12 13:10:11 1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PageViewport.java,v 1.3 2001/11/09 11:32:36 keiron Exp $
  + * $Id: PageViewport.java,v 1.4 2001/11/12 13:10:11 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redi

sealing violation

2001-11-12 Thread Isana Luzia Seabra Campos

Hello,

I am starting to develop with fop.  I 've just compiled an example from
xml.apache.org/fop/embedding.html on Forte for java, but I couldn't run
it . It's because an error:

Exception in thread "main" java.lang.SecurityException: sealing
violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)

at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

at teste_fop_pdf.main(teste_fop_pdf.java:37)

I am working on J2SDK_1.3.1.

I realy thanks for any help!
Isana


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




My Unicode cmap and Symbol encoding solution

2001-11-12 Thread Attila Kertes

Hi,

For your information:

I had a problem with the Sample OCR-B fonts supplied
by IDautomation.com. This font has a Windows Symbol
encoding (PID=3, EID=0) which caused the TTFReader to
say:
Unicode cmap table not present

As a solution I remapped the Symbol encoding to ANSI
encoding which is required by TTFReader. (PID = 3, EID
= 1). I did it with
Softy(http://users.iclway.co.uk/l.emmett/) manually,
because I could only access that software (*sigh*).
This is not the best solution.
I donwloaded FontLab demo, which has a save option
"Use following codepage for first 256 characters". I
think this is the automatic way to change the Symbol
encoding to ANSI encoding. (I never tried. The demo
version cannot save into .ttf format.)

I tried to use another font called alphabet.ttf
(Created by  Austin Kurowski) to test the font
using and ran into the problem:
java.io.EOFException: Reached EOF, file size=24372
offset=87128

I loaded the font into Softy, set the mapping for
space to 32 (it was 32 originally) and saved the new
mapping. (Nothing really changed. Only the mapping was
regenerated.) Now TTFReader was able to read the font
file and create the metrics for the font and after
some configuration in userconfig.xml the font appeared
in the .pdf file.

That's all for now.

Cheers,
Attila


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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




Re: XSL-FO, embedded fonts

2001-11-12 Thread Jeremias Maerki

Aha! How about reading some good documentation at
http://xml.apache.org/cocoon2/userdocs/serializers/pdf-serializer.html

On Mon, 12 Nov 2001 13:27:09 +0100 Matthias Fischer wrote:
> Thanks for the really quick answer.
> I was inprecise in my formulation: I want to render PDF with embedded fonts
> using Cocoon 2, not with the FOP engine as a standalone. Therefore, I think
> I have to proceed in some different way.
> 
> I'm sure there is an answer even to that...
> 
> Best regards,
> 
> Matthias
> 
> 
> Dott. Matthias Fischer
> abc.Mediaservice GmbH
> 
> Nebelhornstraße 8
> 86807 Buchloe
> Tel. (08241) 9686-38
> Fax  (08241) 9686-26
> http://www.abc-media.de
> e-mail: [EMAIL PROTECTED]
> 
> ein Unternehmen der abc.Mediengruppe
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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


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




XSL-FO, embedded fonts

2001-11-12 Thread Matthias Fischer

Thanks for the really quick answer.
I was inprecise in my formulation: I want to render PDF with embedded fonts
using Cocoon 2, not with the FOP engine as a standalone. Therefore, I think
I have to proceed in some different way.

I'm sure there is an answer even to that...

Best regards,

Matthias


Dott. Matthias Fischer
abc.Mediaservice GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 9686-38
Fax  (08241) 9686-26
http://www.abc-media.de
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe




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




Re: FOP, embedded fonts

2001-11-12 Thread Jeremias Maerki

Yes, FOP supports embedding fonts.
Look here for instructions: http://xml.apache.org/fop/fonts.html

On Mon, 12 Nov 2001 13:08:00 +0100 Matthias Fischer wrote:
> Ahm, if I recall right, the other day there was some mailing concerning FOP
> and embedded fonts. Unfortunately I cancelled all relating mails, but I
> would need the information now, and the archive seems not to be reachable at
> present.
> 
> So, please take my apology - but would someone of you help me in telling me
> once again (a) whether FOP does embed fonts, and if yes, how this has to be
> acomplished.
> 
> Thanks in advance,
> 
> Matthias
> 
> 
> Dott. Matthias Fischer
> abc.Mediaservice GmbH
> 
> Nebelhornstraße 8
> 86807 Buchloe
> Tel. (08241) 9686-38
> Fax  (08241) 9686-26
> http://www.abc-media.de
> e-mail: [EMAIL PROTECTED]
> 
> ein Unternehmen der abc.Mediengruppe
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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


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




FOP, embedded fonts

2001-11-12 Thread Matthias Fischer

Ahm, if I recall right, the other day there was some mailing concerning FOP
and embedded fonts. Unfortunately I cancelled all relating mails, but I
would need the information now, and the archive seems not to be reachable at
present.

So, please take my apology - but would someone of you help me in telling me
once again (a) whether FOP does embed fonts, and if yes, how this has to be
acomplished.

Thanks in advance,

Matthias


Dott. Matthias Fischer
abc.Mediaservice GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 9686-38
Fax  (08241) 9686-26
http://www.abc-media.de
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe




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




[GUMP] Build Failure - Fop

2001-11-12 Thread Sam Ruby


This email is autogenerated from the output from:



Buildfile: build.xml

init-avail:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 1.0dev [1999-2001] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 34 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/allprops.xml
 [xslt] style: ./build/src/codegen/genconst.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/Constants.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/properties.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/propmap.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/enumgen.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/properties.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/ext_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/propmap.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/ExtensionPropertyMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/enumgen.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/charlist.xml
 [xslt] style: ./build/src/codegen/code-point-mapping.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Courier.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-Oblique.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-Bold.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBold.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-BoldOblique.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Helvetica.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Helvetica.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Helvetica-Oblique.xml
   

[OFF-TOPIC] How to get Resolution out of JPG, TIFF, etc...

2001-11-12 Thread Beer, Christian

Hi List!

Sorry, that I ask this (fairly) off-topic question here!

I have to find a way to get the resolution (pixel / inch|mm)
out of files that support this info (JPG, TIFF, ...).

Do I have any chance using JIMI or JAI. Or is there another
simple way to do that??

Thanks
Christian Beer


DIRON Wirtschaftsinformatik GmbH & Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  



BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
10. - 14.Dezember 2001

December 10th-14th 2001
VISIT US @ INTERNET WORLD IN NEW YORK

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




RE: Generating indexes

2001-11-12 Thread Georg Schneemayer

Hi!

[...]
> I've searched the fop-dev archive, combed through the draft spec, and
> trawled around Google, but haven't found an easy way to solve 
> the 'Index
> Generation' problem.
> 
> I'm trying to generate a traditional end-of-book index using 
> FOP (version
> 0.20.2).
[...]
> Any tips or references would be appreciated.

Have a look at the DocBook XSL Stylesheets 
( http://sourceforge.net/projects/docbook ), especially
at the file "autoidx.xsl" in this package.

Bye,
Georg


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




Re: FOP memory usage

2001-11-12 Thread Keiron Liddle

Hi,

If you want to help improve the memory usage in a future version of fop I
suggest you follow the current cvs developments. This will attempt to
address this issue along with a number of other issues.

As far as memory is concerned the ideas area:
- have the smallest set of variables and objects required to represent the
data
- keep the processing straight forward
- use and dispose of objects as soon as possible
- process output as soon as possible (ie pages)
- if objects need to be kept then make it possible to cache


On 2001.11.09 19:31 Lloyd McKenzie/CanWest/IBM wrote:
> 
> I'm not sure if this will help or not, but it worked well for me.
> 
> I was trying to process a 64 MB document, and it was taking DAYS and was
> eating gobs of memory.  I did some wading through the code, looking for
> ways to optimize.  I found a couple of places to reduce memory, but
> nothing
> substantial.  (I plan to run some analysis on my changes, and if they
> make
> a difference of more than 5%, I'll submit them for inclusion in a future
> release.)  However, in my wondering through the code, I realized that FOP
> parses and stores everything until it runs into an 'End' Page sequence
> marker.  My XML document was one BIG page sequence, so FOP was parsing
> the
> entire thing before it would start to generate output.  As my XML
> consisted
> of a large number of fairly independent sections, I modified my XSLT to
> put
> each section into a different page sequence.  The result was that FOP
> only
> parses objects to the end of the page-sequence, spits out the pages for
> that sequence, and garbage collects the objects before moving on.  The
> only
> data that is retained are link references.  These eat up a bit memory,
> but
> nothing as bad as all of the area references needed to draw the page :>
> 
> Hope  this helps,
> 
> 
> Lloyd

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




Re: FOP extension functions

2001-11-12 Thread Keiron Liddle

Hi Joshua,

I believe that was broken temporarily in 0.20.1, try 0.20.2 it should work.

Currently that is the only extension that comes with fop. I am hoping that
in future we will have a broad range of examples for people to look at.

Regards,
Keiron Liddle

On 2001.11.12 00:51 [EMAIL PROTECTED] wrote:
> Hi there,
> 
> I'm currently using FOP 0.20.1 and heard mention of some extension
> functions to create bookmarks in a generated PDF file,  and
> , where the fox namespace is declared as 
>   xmlns:fox="http://xml.apache.org/fop/extensions";
> 
> I was wondering two things. Firstly, does this feature work with v0.20.1
> and Acrobat Reader 4?
> 
> And secondly, are there any other FOP extension functions in the current
> distribution?
> 
> Thanks,
> Joshua

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




icc-profile

2001-11-12 Thread Thomas Kübler



hallo,
 
are there any possibility to embbed icc-profile to 
every image?
perhaps for all the same or this will be much 
better for every
image a different profile.
 
thanks.
 
thomas kübler
www.lovelycard.de


Re: Anti-aliasing

2001-11-12 Thread Keiron Liddle


If the curves you are refereing to are normal svg curves without any
effects then they have been converted directly into pdf curves. This means
that are an exact represenation (within reason) of the svg curves. The
problem then is with acrobat check the preferences.

If your svg is creating a graphic which is embedded into the pdf then the
issue is different. You will need to work out how to make batik draw the
images at a higher resolution.

On 2001.11.10 17:24 Scott Moore wrote:
> I'm using FOP from a servlet (e.g., not the command line version) and I
> have
> some embedded SVG in the XSL-FO.  The curves are very jagged in the final
> PDF and I would like to turn anti-aliasing on.
> 
> How can I do this?  I looked thru the FOP source code and although I see
> parameters for anti-aliasing in a couple of Java files, I never found a
> way
> to configure it in my servlet code.
> 
> Is there a property I can set on the Configuration object to turn this
> on?
> 
> Thanks,
> Scott

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