Re: [Fwd: TiffRenderer Anomaly]

2005-01-14 Thread Oleg Tkachenko
Bill Jordan wrote:
Hi - thanks very much for the suggestion, and congratulations on a great 
product.  Unfortunately, when I made the suggested change, it had no 
effect on the output, which seems puzzling to me.  I'm certain that the 
change was executed, because I set a breakpoint in the code and stepped 
through it.  The imageType came in to the switch statement with a value 
of TIFF_BILEVEL_BLACK_IS_ZERO, and due to the change in the code, the 
value of photometricInterpretation was set to 0.
Ok, sounds like that's something else. I'll take a look at it this weekend.
--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Fwd: TiffRenderer Anomaly]

2005-01-13 Thread Oleg Tkachenko
Hello!
My target viewers were Photoshop and Alternatiff. That's a problem with
TIFF viewers basically. For Windows viewers you need to swap some
constants for black and white colors in sources. I do remember I tried
that, but forgot to make it parametrized :(
It's probably these lines in TIFFImageEncoder.java:
case TIFF_BILEVEL_WHITE_IS_ZERO:
photometricInterpretation = 0;
break;
case TIFF_BILEVEL_BLACK_IS_ZERO:
photometricInterpretation = 1;
break;
HTH.
--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel
Bill Jordan wrote:
Thanks for your suggestion.  I used the following 4 viewers to view the 
output image:  Windows Picture and Fax Viewer, Internet Explorer, MS 
Paint, and Brava! Reader.  The results are identical with all 4 viewers 
- white letters on a black background.

Bill
J.Pietschmann wrote:
Bill Jordan wrote:
Hi, all - I am evaluating the TiffRenderer written by Oleg Tkachenko, 
using 0.20.5, using a very simple single page of output. The 
transform works beautifully, and produces exactly the output that I 
am expecting, except for one detail - it is a negative image (black 
background with white letters). Has anyone seen anything like this 
before?

Try another image viewer.
J.Pietschmann
-
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: Rendering a Tiff image

2003-10-16 Thread Oleg Tkachenko
Jeremy Nix wrote:
It says on the site that they are trying to integrate this Renderer into
the FOP project.  Anyone know the status on this?  It seems as if this
renderer would be a pretty good addition.
The integration has been approved, but the problem is that FOP 
maintenance branch (0.20.X) is frozen and the FOP version currently 
under development is not ready yet AFAIK.
As soon as AWTRenderer in FOP 1.0dev works I'll commit TIFFRenderer to 
the codebase. For a while you can use TIFFRenderer as another 
third-party renderer - there is no any particular difference.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

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


Re: FOP With Hebrew

2003-10-06 Thread Oleg Tkachenko
Markus Schutz wrote:
Alas, I don't know any remedy, perhaps somebody else has found a workaround.
I have BIDI-aware version, but it's based on FOP 0.20.4RC and works only 
with JDK 1.2-1.3. It would be nice to get it in sync with current FOP 
release, but I have no time unfortunately.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

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


Re: FOP With Hebrew

2003-10-06 Thread Oleg Tkachenko
Chris Bowditch wrote:
Please note, that it is unlikely that there will be another release from 
the maintenance branch, as the developers are working on the trunk code.
It's not so simple questions guys.
We've discussed the question on fop-dev a year ago and decided not to 
commit BIDI patch to maintenance branch.
And what for implementation for FOP 1.0dev, I have started wiki page - 
http://nagoya.apache.org/wiki/apachewiki.cgi?FOPWritingModesAndBidiDesign
but it's unfinished and at the moment nobody seems to be working on this 
subject :(
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

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


Re: Tiff renderer and strips

2003-06-10 Thread Oleg Tkachenko
Rob Stote wrote:
This may sound like a bizarre question, and I am assume Oleg, you're the 
guy to answer this: Does the tiff render construct tiff with strips (if 
that is the way to say it.)
Yes, by default tiff file is written in stripes. There is a possibility to 
write in tiles also, see 
http://www.tkachenko.com/fop/tiffrenderer-doc/com/multiconn/fop/codec/TIFFEncodeParam.html
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

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


Re: Tiff renderer and strips

2003-06-10 Thread Oleg Tkachenko
Rob Stote wrote:
I will do somemore reading. This a parameter I can set , if need be ?,
much the same way I can set the compression level?
Yup. But as I said it's in stripes by default, so you have do nothing to get 
strips. To get tiles you have to turn it on:

TIFFRenderer tiffRenderer = TIFFRendererFactory.newTIFFRenderer();
TIFFRendererParams params = new TIFFRendererParams();
params.setWriteTiled(true);
driver.setRenderer(tiffRenderer);
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tiff renderer and strips

2003-06-10 Thread Oleg Tkachenko
Rob Stote wrote:
One more quick question, setTiledSize(int w, int h);
If I set these values initially @ -1 for both according to the 
documentation it will use a default value correct? (what is that value) 
Then is a person would like to use there own values they could ?
Sorry, I have no idea. Check out also JAI faq: 
http://java.sun.com/products/java-media/jai/forDevelopers/jaifaq.html
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

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


Re: can I?

2003-04-25 Thread Oleg Tkachenko
joni santoso wrote:
I usually use fop to convert fo to pdf using command line.
Now, I wonder if I can use fop programatically to take streamed fo 
object (not from files) and convert it to pdf (what objects to use?)
Sure you can.
Look at http://xml.apache.org/fop/embedding.html
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: feature overview

2003-04-08 Thread Oleg Tkachenko
Todtenhaupt, Susann wrote:
Where can I find an overview of features that are supported by fop and
things that don't work?
http://xml.apache.org/fop/compliance.html
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: web site changes

2003-04-05 Thread Oleg Tkachenko
Victor Mote wrote:
The Compliance page is finally looking pretty much as intended:
http://xml.apache.org/fop/compliance.html
The PDF version does not work. This is a known problem and we hope to have
it resolved in the near future.
Well done, Victor! Looks so cool.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: pdf-forms

2003-03-30 Thread Oleg Tkachenko
David Weber wrote:
I want to create pdf-forms from xml-files with xml:fo. Is it possible to 
create such form-elements with fop (e.g. text-box, check-box...)?
I assume that form-elements are not part of the xsl:fo recommendation 
from w3c and so FOP won't do this!? But perhaps someone can give me a 
hint, how I can solve this problem?
Yeah, XSL-FO doesn't support this. So invent your own extension elements and 
implement them in FOP - no big deal :)
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

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


Re: problems with !{CDATA in docbook and fop

2003-03-20 Thread Oleg Tkachenko
Jason Novotny wrote:
fo:block = space-before.optimum=1em space-before.maximum=1.2em
Here it is. It's not wellformed XML, if you get it from docbook xsl, report a 
bug or try another xslt processor.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: org.apache.fop.apps.FOPException: root must be root element

2003-03-19 Thread Oleg Tkachenko
Koes, Derrick wrote:
org.apache.fop.apps.FOPException: root must be root element
at org.apache.fop.fo.pagination.Root.(Root.java:52)
I get this exception only very, very intermittently when I'm rendering to
PDF a document with many images.  Can anyone help?
So you cannot surely reproduce the problem? Probably that has something to do 
with thread-safeness. Which version are you using?
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: cache piece of FOP Transformation

2003-03-19 Thread Oleg Tkachenko
Jan Zmitko wrote:
is it possible to cache pieces of the result from the transformation. I have 
designed my XSL Stylesheet with templates (5 templates). Two Templates 
containes static content and these I would like cache.  My Problem ist that all 
these Stylesheets are called in one Stylesheet and this is transforming.
You cannot cache some templates, but you can cache the whole compiled 
stylesheet, take a look at jaxp javax.xml.transform.Templates class.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: FOP output to TIFF

2003-03-16 Thread Oleg Tkachenko
David Blevins wrote:
Any idea on how to make this change?  I've been trying to forcefully
change the image type in the encoder from TIFF_BILEVEL_BLACK_IS_ZERO to
TIFF_BILEVEL_WHITE_IS_ZERO.  Seems to have no effect.  Maybe I'm not
going about that in the right way or maybe I'm on the wrong track
altogether.
Hmm, I thought it's simple.
In TIFFImageEncoder.java, line 357:
case TIFF_BILEVEL_WHITE_IS_ZERO:
photometricInterpretation = 0;
break;
case TIFF_BILEVEL_BLACK_IS_ZERO:
photometricInterpretation = 1;
break;
Have you tried to swap these values?
case TIFF_BILEVEL_WHITE_IS_ZERO:
photometricInterpretation = 1;
break;
case TIFF_BILEVEL_BLACK_IS_ZERO:
photometricInterpretation = 0;
break;
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP in production app (clienside)

2003-03-12 Thread Oleg Tkachenko
Van Camp, Kenneth (Exchange) wrote:
If applet is not practical, I wonder if there are any browser plug-ins that
can do it (hopefully much smaller than 5MB)? 
I'd look to Java Web Start. 5MB is required, but it can be downloaded once only.
 It would be great if Adobe
produced a version of Acrobat that can consume XSLT and render the PDF
directly, but I have not heard anything to indicate they are working on
this.
They are working on server side, which costs 20K actually.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: rendering XML from TIFF

2003-03-11 Thread Oleg Tkachenko
Rick Delpo wrote:
Is there a way to parse elements from TIFF format into XML ?
OCR
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logo competition

2003-03-10 Thread Oleg Tkachenko
Peter B. West wrote:
Here is a modified version of Clare Cowley's logo.  Unfortunately it is 
a PNG, which was about all I was able to use, working on the original 
image with Gimp.  Would you prefer jpeg?
Why not png? It's ok I think. I have modified list entry.
So now looks like we can close submit stage this week (e.g. this Wednesday if 
nobody objects) and start debates amongst committers about who the winner is.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: setting the dpi in the TiffRenderer

2003-03-09 Thread Oleg Tkachenko
Rob Stote wrote:
Is there a way to set the dpi in you TiffRenderer.
I know I can set the compression level, but I am not sure about the dpi.
I believe it's FOP limitation currently - 72dpi only, so TIFFRenderer the same.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: page break or paper size ?

2003-03-05 Thread Oleg Tkachenko
Asim Nazir wrote:
hello , i have converted word to xsl:fo, now while converting it to pdf, 
the contents of second page are displayed on first page as well. i have 
to mention the paper size or page break or ?
looking for help
Sounds very weird, show us your xsl-fo document.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: page left margin

2003-03-05 Thread Oleg Tkachenko
Zmitko, Jan wrote:
I have a question how to realise different left margin for the region-before
and the remain regions.
I have placed in the region-before an image and these image should be indent
at the left margin.
You can place a leader before the image to move it, e.g.
fo:block
fo:leader leader-length=10mm/
fo:external-graphic src=url('file:///d:/fop.jpg')/
/fo:block
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP output to TIFF

2003-03-05 Thread Oleg Tkachenko
David Blevins wrote:
Multithreaded access isn't a requirement, so we are in the clear there.
The requirements are simple:
1. TIFFs must use comp group 3x or greater
2. Must be able to set (or even hardcode) the width and height.
3. Must be able to split each page of the XSL-FO doc into separate
TIFF files.
Well, FOP and TIFFRenderer support 1 and 2, but number 3 requires specialized 
TIFFRenderer. That's quite easy actually, all one has to do is to override 
stopRenderer() method and instead of encoding every page images into the same 
output stream create new output stream for each one. Look at TIFFRenderer 
sources, that's easy. May be I can find a time to make it myself this weekend.

2. XSL-FO to TIFF using your TIFFRenderer.  Meets requirement 1, though
still getting black backgrounds.  Using Photoshop and QuickTime to view
the output.
Hmm, it's ok for me in Adobe Photoshop, are you sure it's inverted in Photoshop?
  This might be an easy thing to reverse if I knew which
section of the code needed changing.
It's hardcoded in TIFF encoder code now, a volunteer is needed to make it 
parametrizable, I'll try probably.

  If that were resolved, I would
still need a solution for requirements 2 and 3.
Well, requirement 2 is just XSL-FO's page-height/page-width properties I think.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP output to TIFF

2003-03-05 Thread Oleg Tkachenko
Rob Stote wrote:
I could never solve your issue 3, if you get an answer please let me 
know. I would be willing to help as much as I can.
If I not mistaken, that's quite easy feasible. We need some design here - 
XSL-FO formatting model assumes one result, so TIFFRenderer has only one 
output stream to write result to. The question is where additional images 
should be sent to?
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: BIDI reordering routine

2003-03-04 Thread Oleg Tkachenko
Rodolfo M. Raya wrote:
Does anybody have a routine to reorder BIDI text?
You can use java.text.Bidi from jdk1.4 and sun.awt.font.Bidi in jdk1.2/1.3, 
they provide basic BIDI facilities. The problem is that java.text.Bidi is 
since jdk1.4 and sun.awt.font.Bidi does not exist in jdk1.4. So I suggest you 
not to use BIDI implementation directly, but indirectly through 
java.awt.font.TextLayout and so on.

I'm writing code to visually reorder BIDI text before generating XSL-FO 
files, but I don't want to reinvent the wheel.
btw, that's not the solution actually. This way you do provide visually 
reordered text to FOP, but FOP as being BIDI-unaware will still layout text 
ltr-tb, so you'll end with rtl-bt layout:

logical: RAC A SI SIHT
visual: THIS IS A CAR
One line is ok, but once line break occurs:
IS A CAR
THIS
The solution is to make FOP BIDI-aware itself. I have experimented with it and 
actually I have BIDI-aware version of FOP 0.20.5rc or earlier, but the 
implementation is neither fast nor clean from design point of view, so I 
decided not to commit it to cvs, but instead to implement it in FOP1.0dev in a 
better way. You are welcome to help us with this. Lack of free time, 
unfortunately, you know, too many day works last time :

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logo Submission - 4 logos for Contest

2003-03-04 Thread Oleg Tkachenko
Michael Schnuerle wrote:
I've got 4 logos to submit to the logo contest.  I found out about it 
last week, worked on them this weekend, and read today the deadline was 
Friday.  Regardless, I hope they can be consided in the voting.  They 
are all in .gif format.  I have them in SVG, but each has a non-vector 
element that made their size too large (I can convert it later if needed).
Added to the list. Thanks, Michael!
Don't worry about deadline, we are going to prolong the contest for so some 
time probably till final 0.20.5 release.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: logo contest again

2003-03-02 Thread Oleg Tkachenko
Peter B. West wrote:
Yes please.  I'm attaching a PDF of a design a friend of mine is working 
on.  She can't get the jpeg output to work from Illustrator, for some 
reason, and I need to help her sort out the problems.  Does anyone have 
access to Photoshop or Illustrator?
Added jpg version to the list, send my thanks to your friend!
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: xsl-fo book

2003-02-27 Thread Oleg Tkachenko
H. krishna wrote:
I need xsl-fo book. Publisher is o'reiley or
another xsl-fo book. this is availbale in chennai? i
am living in chennai.
Have you tried amazon?
Here is Dave Pawson's book online: 
http://www.dpawson.co.uk/xsl/sect3/bk/index.html
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: logo contest again

2003-02-25 Thread Oleg Tkachenko
Ovidiu Pop wrote:
last proposal
Thanks!
But jpg image seems to be broken and svg is too big, proide svgz version please.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: logo contest again

2003-02-25 Thread Oleg Tkachenko
Ovidiu Pop wrote:
Sorry about the size of the svgfile. I've attached the
jpeg for my 2nd proposal.
Added, thanks!
But this jpg still doesn't apper in my IE or mozilla, check out 
http://vote.sparklit.com/web_poll.spark/714566.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: logo contest again

2003-02-25 Thread Oleg Tkachenko
Ovidiu Pop wrote:
Sorry about troubles with JPG file. It seems IE
doesn't like CMYK palette.
I've resend you the op-foplogo2.jpg.
Added, thanks!
PS. I think we should prolong the contest term for another week or two if 
nobody objects.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


FOP output to TIFF

2003-02-23 Thread Oleg Tkachenko

X-MIMETrack: Itemize by SMTP Server on XENA/MCN(Release 5.0.9a |January 7, 
2002) at 23/02/2003
 10:11:12,
Serialize by Router on XENA/MCN(Release 5.0.9a |January 7, 2002) at 
23/02/2003
 10:11:13,
Serialize complete at 23/02/2003 10:11:13
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii; format=flowed

Hello!

David Blevins david.blevins () visi ! com wrote:
 Now I have my first question, so here goes.  What is the recommended
 approach to generate a TIFF output: using the SVGRenderer then
 transcoding to TIFF with batik; using the TIFFRenderer written by Oleg?
Hard question. TIFFRenderer has some flaws: it is not thread-safe, because 
AWTRenderer isn't. Another its problem is that all generated page images are 
held in memory. Both issues I hope will be fixed in FOP 1.0dev. So may be 
SVGRenderer is a prefered approach at the moment.

 The TIFFRenderer works, however the outputted TIFF is white text on
 black background (should be the other way around).  Maybe there is
 something I need to configure correctly.  
Well, which TIFF viewer are you using? AFAIK, there is a great mess amongst 
TIFF viewers what is white and what is black in b/w FAX compressed images, 
e.g. consider given black-and-white TIFF image, Adobe Photoshop and Windows 
Imaging will show it differently black on white or white on black. 
TIFFRenderer uses JAI encoder, which seems to be agree with Adobe in this 
question, so I always rely on Photoshop and Alternatiff plugin and never got 
inverted image.
Actually I've been thinking about introducing such a parameter to TIFFRenderer 
to allow control over that. Ok, granted, will try this week.

 There also doesn't seem to any new versions of the TIFFRenderer.  The
 latest I can find is 0.9 from May last year.  Is this there an updated,
 unreleased version somewhere?
Well, I just don't see how can I make it better, it's quite simple wrapper, 
which heavily rely on JAI encoder and AWTRenderer. Now, when I'm FOP committer 
I'd better be focused on how to make FOP itself better, TIFFRenderer will 
benefit from it also.

-- 
Oleg Tkachenko
Multiconn Technologies, Israel


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



Re: tableRow larger than a page

2003-02-20 Thread Oleg Tkachenko
Marcio Lopes wrote:
I would like to know if it is possible to have
pagination in both direction of a page:
left to right and top to botton.
So when a table does not fit in a single page new
pages are spawned!!
Unfortunately not, XSL-FO 1.0 doesn't support it. This is well known 
requirement, so-called large tables pagination, it was discussed in exslfo 
community mail list, so I'm sure XSL WG is aware of it.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: brain dead newbe

2003-02-20 Thread Oleg Tkachenko
Roger Roelofs wrote:
Thanks.  My problem was that I need a double border around the page and 
I had used absolutely positioned block-containers to get it.  Once I 
removed them the pagination worked just great.
What about moving border to before, after, start and end regions?
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html output format

2003-02-20 Thread Oleg Tkachenko
Dmitri Colebatch wrote:
You don't need FOP to get html, just use your favorite XSLT processor.

yes, an XSLT processor _and_ a stylesheet.
Stylesheet is a general term. You are talking about XSLT stylesheet, which 
transforms your custom XML to HTML - that's trivial XSLT task, you don't need 
neither FOP nor XSL-FO for it.

  That is what I was asking for.
I could certainly go and implement whatever parts of a stylesheet that are
required for the minimal usage of FOP's instructions that I am using, but it
seems hard to believe that this requirement hasn't come up before, and
someone else out there hasn't done it.
You still don't understand. XSLT stylesheet able to transform XML into *any* 
other XML vocabulary or HTML and from this variety of output XML vocabularies 
FOP deals *only* with XSL-FO vocabulary. FOP is XSL-FO processor and has 
nothing to do with html. Don't get mixed up, FOP and XSLT processor are 
different things despite the fact that FOP includes XSLT processor.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Javadoc for org.apache.fop.apps.*

2003-02-20 Thread Oleg Tkachenko
Lee, Insoo wrote:
 Where can I see javadoc for org.apache.fop.apps.*
Download FOP and run
build javadocs
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: empty pdf file

2003-02-20 Thread Oleg Tkachenko
Rabih Yassine wrote:
 I generated the FO file in order to generate a pdf file. But when i open
the file i get nothing in it.
May be due to zillion reasons. Elaborate please, what are you running, how and 
what are log messages.

 Also, I need to know how can i seperate pages?
Use break-after=page property.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: empty pdf file

2003-02-20 Thread Oleg Tkachenko
Rabih Yassine wrote:
and here is the fo file (generated)
?xml version=1.0 encoding=UTF-8?
fo:root
xmlns:fo=http://www.w3.org/1999/XSL/Format;fo:layout-master-setfo:simpl
e-page-master margin-right=2.5cm margin-left=2.5cm margin-bottom=2cm
margin-top=1cm page-width=21cm page-height=29.7cm
master-name=firstfo:region-body margin-top=3cm/fo:region-before
extent=3cm/fo:region-after
extent=1.5cm//fo:simple-page-master/fo:layout-master-setfo:page-sequ
ence master-reference=firstfo:flow
flow-name=xsl-region-bodyfo:blockOfferNumber/fo:block/fo:flow/fo:p
age-sequence/fo:root
Works fine for me. Most likely you run FOP in a wrong way and ignore error its 
messages. Show us how do you run FOP and what is info messages.

PS. And please, turn off this annoying Return Request, you are posting to mail 
list and your posting is read by many people, do you really want to be 
notified by all of them?
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: empty pdf file

2003-02-20 Thread Oleg Tkachenko
Rabih Yassine wrote:
Ok. Thanks it works now.
I have another question now.
If i have a list in the xml file. For example a list of bundles. And every
bundle should be in a new page.
How can i do that? They should be created dynamically.
xsl:template match=bundle
fo:block break-before=page
...
/fo:block
/xsl:template
This will force page break before each of these fo:block objects.
Alternatively use break-after=page.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: footnote-separator

2003-02-20 Thread Oleg Tkachenko
Myriam Delperier wrote:
that's true, moreover, each time I want to put somenthing else than a block
in a footnote-body I've got a null pointer exception
Actually footnote-body content is defined as (%block;)+, where %block; is block
block-container
table-and-caption
table
list-block
Are you valid with it?
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: footnote-separator

2003-02-20 Thread Oleg Tkachenko
Magnus Sjöberg wrote:
Are there any significant problems with adding support for
the footnote-separator (in terms of coding complexity), or
is it just a low.priority fix??
Actually I have no idea how much efforts it's going to take.
If not, I might take some time to look at it, since it would
be a nice feature to have
Any help is *greatly* appreciated, we permanently suffer from lack of 
developer resources. But 0.20.5 is probably last maintenance release in 0.X 
series and its development has been frozen, so you are invited into FOP 1.0 
development.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: empty pdf file

2003-02-20 Thread Oleg Tkachenko
Rabih Yassine wrote:

For each bundle i want to write the Bundle Number and no of subscribers on a
new page.
But when i use fo:block break-before=page i will have only one bundle on
a new page although in my xml file i have 3 bundle lists.
You should have each bundle starting new page. Sorry, isn't it what are you 
asking for?

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: break-before attribute

2003-02-20 Thread Oleg Tkachenko
Oleg Tkachenko wrote:
Nope, SOUSTHEME != following-sibling::SOUSTHEME is true if and only if 
all follwing SOUSTHEME siblings have the same string value as SOUSTHEME 
children of current node.
Wrong guess. SOUSTHEME != following-sibling::SOUSTHEME is true is there is at 
least one following sibling SOUSTHEME, which string value is not equal to 
SOUSTHEME string value.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html output format

2003-02-19 Thread Oleg Tkachenko
Dmitri Colebatch wrote:
I have a requirement to edit a document, and then print it.  The requirement
had been just to print the document, with some basic merge functionality -
so I implemented that using FOP for the printing side of it.  Now that I
need to edit it, my thought had been that I'd just go
FOP - html - ekit (html editor) - html - html2fo - FOP - PCL
long winded, but seems reasonable,
I don't think it's reasonable, much better would be
XSLT-XHTML-edit-XHTML-XHTML2FO-FOP-PCL
plumbing.  Now, my question for the list is about going from FOP - html. 
You don't need FOP to get html, just use your favorite XSLT processor.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie using blocks

2003-02-19 Thread Oleg Tkachenko
Luiz Cezar Medeiros Filho wrote:
If i put this in my document:
fo:blockegasehkagekjasgehkagekagekaegakgeakegakegaskegakjegajkegajkeagseka
sgekjaegaskegaskjegakegakjeagkeasgekjaegajkegajkegasjkegaejagekajegasjkegasj
kegasejkagekjageajkegakjegasjkegajkegakjegakeagekaeg/fo:block 

(means a big word)
Turn on hyphenation on the block.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: brain dead newbe

2003-02-19 Thread Oleg Tkachenko
Roger Roelofs wrote:
I know this has been covered, I've been wandering the archives, but it 
hasn't sunk in yet.

I have a xsl doc with the following basic structure.  Instead of 
starting a new page for each iteration of this template, it resets to 
the top of the page and writes over the top of the previous content.  
How do I tell it to start a new page?
You can use break-after=page attribute to enforce page break after a 
formatting object.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: logging and line numbers of errors

2003-02-18 Thread Oleg Tkachenko
Eric Smith wrote:
I find it frustrating not being informed of line numbers where fop
finds an error.  I get the stack trace but no useful indication of
where to find the error.
Is this a known deficiency or am I missing something?
I don't think it's possible. FOP core receives an input as SAX stream, 
possibly after XSL transformation and any information about lines is lost already.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: FOP logo contest

2003-02-18 Thread Oleg Tkachenko
Andre Halama wrote:
here is another try of mine (svg also available).
Added to the list, thank you!
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: XSL source

2003-02-18 Thread Oleg Tkachenko
Matthew Lancashire wrote:
Can you pass a file as a URL  I am currently using the command below
Source xsltSrc = new StreamSource(new File(xslt));
Yes, you can, see 
http://java.sun.com/j2se/1.4/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.lang.String)
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: Use of configuration files in embedded FOP

2003-02-17 Thread Oleg Tkachenko
Rodolfo M. Raya wrote:
I have an application that uses FOP 0.20.4 and relies on userconfig.xml  
to setup fonts for PDF rendering.

I want to upgrade to latest version on CVS repository, but class 
org.apache.fop.apps.Options doesn't exist anymore and my applications 
doesn't work.
Please, read Note at http://xml.apache.org/fop/download.html:
Note
Important: Currently, releases of FOP are coming out of the 
fop-0_20_2-maintain branch. The MAIN branch is currently under 
development. See Development Docs for more information.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: counting variable

2003-02-17 Thread Oleg Tkachenko
Zieseniß, Markus wrote:
is there a possibility to create a variable, which can count elements of my
letter?
Sure,
xsl:variable name=elems-number select=count(//*)/
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to detect page breaks ?

2003-02-16 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I have a little problem to detect page breaks using xsl:fo...
You cannot detect page break, you are not programming in xsl-fo. You should 
think in declarative way instead, e.g. just declare that odd pages should have 
gray border on the right, even pages - on the left etc.

Here's my problem :
I need to put the gray border (which will contain text) at the left or 
at the right of my page
depending on the position of it in the catalog (right, as front, or 
left, as back).
That's pagination basics, you have to define different page masters for right, 
left, front pages then. See 
http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html#d0e1448.

PS. And don't post in html format please, that's explicitly forbidden in 
Apache mail lists, see Mailing Lists Guidelines at 
http://jakarta.apache.org/site/mail.html.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: XSL transformations with FOP

2003-02-16 Thread Oleg Tkachenko
Santtu Pajukanta wrote:
I use the software pretty out of the box so they're Xerces and Xalan. 
Here's what it outputs when I try to process 
xml-fop/docs/examples/markers/glossary.xml:

D:\Java\tools\fop-0.20.5rc\docs\examples\markersfop glossary.xml 
glossary.pdf
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5rc
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] Unknown formatting object ^glossary
[ERROR] Root element must be root, not :glossary

As you can see, I'm using a Windows box... The command fop is a batch 
file which just executes java org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 
%7 %8 (had to do it this way due to the lack of command aliases in 
DOS). I haven't altered the files (glossary.[xml|xsl])...
Hehe, fop glossary.xml glossary.pdf is wrong command line actually, when 
using input file name without any options, FOP assumes it's xsl-fo document.
Use instead
fop.bat -xml glossary.xml -xsl glossary.xsl -pdf glossary.pdf
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: rtf to xml

2003-02-13 Thread Oleg Tkachenko
Eduardo Santilli wrote:
   is it possible to generate a xml or a xsl from a rtf or pdf file ??
Dunno about rtf, but generating xml from pdf sounds like OCR-ing a book. Why 
do you need it?

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: rtf to xml

2003-02-13 Thread Oleg Tkachenko
Eduardo Santilli wrote:
   I need to do my graduate final job at college.can you help me???
Is it pdf to xml converting? Usually people need quite opposite transformation.
Dunno about rtf, but generating xml from pdf sounds like OCR-ing a 
book.
Here is the translation :)
I don't know about rtf, but generating xml from pdf sounds like optical 
character recognition of a book. For more info look at recent (hmm, it's 
November actually) discussion in xsl-list: 
http://www.biglist.com/lists/xsl-list/archives/200211/msg00996.html

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table column-width property

2003-02-12 Thread Oleg Tkachenko
sujata wrote:
I gave it as,
fo:table-column column-width={$colwidth}cm/
where colwidth is a variable name holding the column width value.
But this value is not accepting and it gives the error :
Error in column-width property value {$colwidth}
Seems to me you are trying to use variables in xsl-fo document instead of xsl 
stylesheet. Am I right?

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table column-width property

2003-02-12 Thread Oleg Tkachenko
sujata wrote:
   Exactly.. I need to give the column-width dynamically.

 Is it possbile to do that? If yes how can i do that?
Sure. But this should be done in XSLT stage, there is no notion of variables 
in XSL-FO. Fromatting is two-step process, first source document is 
transformed to result tree using XSLT and then result tree is formatted by 
FOP. Get some XSL tutorial, that's really basics.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: Cyrillic Characters not showing on PDF with Cyrillic Font

2003-02-11 Thread Oleg Tkachenko
Daniel, Gillian wrote:
I have downloaded various TTF fonts, which are meant to be able to handle
Cyrillic characters.  I followed the instructions on how to create an
metrics.xml file for each one and have declared them in my userconfig.xml
file.  The only problem is, I still get  instead of the words, or
nothing at all.
Most likely there is still some error somewhere, check out FOP debug messages. 
Are you sure FOP uses your userconfig.xml for starters?
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: FOP and IIS4/5

2003-02-10 Thread Oleg Tkachenko
Matthew Lancashire wrote:
Can Fop be used in Server Side Java on an IIS4/IIS5 server
Have no idea what is Server Side Java on an IIS4/IIS5 server, but FOP 
requires at least JRE 1.2 level of compatibility. Note, FOP doesn't work under 
Microsoft JVM, because latest MS JVM only corresponds to JRE 1.1.4.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: FOP Logo Contest

2003-02-09 Thread Oleg Tkachenko
Dave Biggar wrote:
FOPlogoDBiggar.svgz is attached.
Added to the list, thank you Dave!
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page numbering

2003-02-09 Thread Oleg Tkachenko
H. krishna wrote:
now, the pagenumber is not displayed in the first
page. 

But, i need the page number start with 2 page is left
alignment and 3 page is right alignment.
The same way, create different page masters for even and odd pages.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TTFReader problem

2003-02-08 Thread Oleg Tkachenko
Gerard BUNEL wrote:
I 've tried to use TTFReader to extract metrics from a font file from a
customer.
The process fail with the following exception:
D:\fop-0.20.4java -cp build\fop.jar org.apache.fop.fonts.apps.TTFReader
D:\fop-
0.20.4\Ftes-ATL\TrueType\DITIMES_.TTF ditimes.xml
TTF Reader v1.1.1
Reading D:\fop-0.20.4\Ftes-ATL\TrueType\DITIMES_.TTF...
Number of glyphs in font: 170
Unicode cmap table not present
java.util.NoSuchElementException: Vector Enumeration
AFAIR that was fixed couple of months ago, have you tried FOP 0.20.5rc?
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: XSL_FO generator

2003-02-08 Thread Oleg Tkachenko
Gian Piero Bottini wrote:
Oh I have made confusion..
Sorry
 I think that this code is ok for avalon.framework.Logger.
but not for log4j.This is correct??
Anybody know how to use fop with log4j??
Take a look at org.apache.avalon.framework.logger.Log4JLogger class.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page numbering

2003-02-08 Thread Oleg Tkachenko
H. krishna wrote:
i don't need the page number in the first page only.
but, want to second page start like 2.
That's XSL-Fo basics actually. You have to have different page masters 
for the first page and for the rest ones and put page master only on the 
second master. See Dave's book for example 
http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html#d0e1448.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TTFReader problem

2003-02-08 Thread Oleg Tkachenko
Gerard BUNEL wrote:
No, I'm using FOP-20.4
So what? I told you, the bug was fixed (afaik) in FOP-0.20.5rc. Wanna 
get fixed vesion - upgrade to 0.20.5rc.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP Logo Contest

2003-02-08 Thread Oleg Tkachenko
Dave Biggar wrote:
FOPlogo.svg
Could you please ptrovide svgz version?
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Class not found applet error

2003-02-05 Thread Oleg Tkachenko
Matthew Lancashire wrote:
When I I copied all these in the the classes folder. Can I not get the JRE
to look here?
Read html specification, 
http://www.w3.org/TR/html401/struct/objects.html#edef-APPLET,

archive = uri-list [CT]
This attribute specifies a comma-separated list of URIs for archives 
containing classes and other resources that will be preloaded. The classes 
are loaded using an instance of an AppletClassLoader with the given codebase. 
Relative URIs for archives are interpreted with respect to the applet's 
codebase. Preloading resources can significantly improve the performance of 
applets.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: external-graphic problem

2003-02-05 Thread Oleg Tkachenko
Mihael Knezevic wrote:
thanx for the response. correct me if i'm wrong, but i thought the base
dir must only be set if i use this in a servlet?
baseDir *may* be set if you need it. Environment doesn't matter, that's just a 
convenient way to resolve relative URI's.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Class not found applet error

2003-02-05 Thread Oleg Tkachenko
Matthew Lancashire wrote:
Is there no way around using the archive attribute to d/l the jars.
I can ensure that they are already on the client machine. Does this not
help?
Then it seems to me you are using wrong hammer, afair applets cannot access 
client file system. If you want to start java application from client file 
system, look at Java Web Start.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: embed Fonts in FOP (not from the command line)

2003-02-05 Thread Oleg Tkachenko
Noel Golding wrote:
I need to create a pdf that embeds the fonts.
From what I could find in order to use the userconfig.xml file you need to
use the command line.
I have embeded FOP into a JAVA application and I am not sure how to proceed
setit to use the config file.
That's a faq, see http://xml.apache.org/fop/faq.html#faq-N1031F.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fop Logo concept

2003-02-04 Thread Oleg Tkachenko
Mitchell, Lincoln L. wrote:
How about this...
 fop.jpg 
Designer: Lincoln Mitchell
 fop.jpg 
Well, actually I believe ant is taken already by ANT project, but anyway I 
have added it to the list.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: Fop Logo concept

2003-02-04 Thread Oleg Tkachenko
J.Pietschmann wrote:
Great design, but please, no insects anymore. If there is an
animal in the logo, it should be something cute, preferably
furry or at least feathered.
Agree, we are Apache project after all, so it would be nice to have something 
compatible with Apache's feather (http://www.apache.org/images/asf_logo_wide.gif).

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP logo contest

2003-02-04 Thread Oleg Tkachenko
Max Dcosta wrote:
Here is my Logo. Hope you find it pleasant.
Thank you!
Please put it on the web poll.
Done.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fop Logo concept

2003-02-04 Thread Oleg Tkachenko
Max Dcosta wrote:
Here are two more logo's from myside, one just a color variation of the
earlier.
Added. Actually color variations may overflow the list, but anyway, thank you.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fop Logo concept

2003-02-04 Thread Oleg Tkachenko
Max Dcosta wrote:
Here are two more logo's from myside, one just a color variation of the
earlier.
btw, in the last one string File Object Processor probably should be 
Formatting Objects Processor?

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: Fop Logo concept

2003-02-04 Thread Oleg Tkachenko
Ilja Preuss wrote:
What about dipping that feather in an inkpot? :-)
Actually a brilliant idea. It's a pity I'm not an artist ;)
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to adjust page layout

2003-02-04 Thread Oleg Tkachenko
Mohamed Abdel Hamid wrote:
i have a problem in page layout when i print my pdf file,
i'm using Fop 0.20.3 my case as following :-
i want to create a page which its content has a distance of 1.6 cm from 
borders.
i make all setting as i know and imagine that everything must work fine 
with this adjustment
but when i print it i found distance is 2.1 cm instead of 1.6 cm my code 
is like this :
Correct me if I'm wrong, but I believe printers have unprintable areas on a 
parer, have you tried to customize printing settings?

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: Fop Logo concept

2003-02-04 Thread Oleg Tkachenko
Max Dcosta wrote:
here it is, pls replace the wrong one with this one... thanks my friend.
Done.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PDF to FO?

2003-02-03 Thread Oleg Tkachenko
Will Spies wrote:
If I have an existing PDF file is there a way to convert it to a FO file? I
would like to create dynamic forms but I would rather reverse engineer a PDF
file.
That's impossible, pdf is lower-level format relatively to fo.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table column width

2003-02-03 Thread Oleg Tkachenko
sujata wrote:
 I have a problem in displaying the data in the pdf table.
Each column width in a table should be different from the other column 
depending on the data.
Since I am using the same fop stylesheet for different tables, I cannot 
hardcode the column width in the stylesheet.

Is there any option we can set so that the PDF table columns get 
adjusted with the data you pass (like HTML table)?
table-layout=auto is not implemented yet unfortunately.
If not, how can I go head to solve this problem?
Move table-column width calculation logic to xslt stage.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop + servlet + multisession

2003-02-03 Thread Oleg Tkachenko
Gian Piero Bottini wrote:
I am using FOP 0.20.5rc to produce PDF files from XML and XSL-FO
I use a servlet in Tomcat 4.04
if I  have a large file (100 pages) and 2 session of IE are working 
concurrently 
there are no exception but  the two processes don't finish and the pdf 
files are not displayed..
Did FOP finish processing? Run FOP in debug mode and analize debug messages.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP logo contest

2003-02-03 Thread Oleg Tkachenko
Andy Joslin wrote:
I've noticed that the deadline for submitting a design and voting are
the same (28th Feb). Wouldn't it perhaps be better to set a deadline for
the logo submission first and then a second deadline for voting? That
way the voters can choose from the full range of entries when when
placing their vote..
Yes, that's reasonable idea, but that would require more efforts and as public 
votes are not actually deciding ones (FOP Team decided to reserve jury rights) 
I made it this way, sorry if it's wrong.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to include an external graphic using a relative path

2003-02-03 Thread Oleg Tkachenko
Gustavo Lopez wrote:
Using FOP, I succesfully wrote a servlet to generate PDF's from in-memory DOM 
object's containing XSL-FO markup.
I able to embed graphics files by specifying a physical path as in: 

fo:external-graphic src=url(/project/img/image.gif)/
However, since this is a web application, I need to be able to specify a relative path for the image file.
You can define baseDir property (see faq howto) as 
getServletContext().getRealPath(/project/img) and then use relative 
pathes in fo:external-graphic.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Antwort: Re: multithreading issues - FOP, TIFFRenderer, Solaris 4-proc machine, pja x-server

2003-02-03 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
ok, I run the same thing with PDFRenderer, and I found no problems there.
This means that the multithreading issue is either within
a) AWTRenderer
b) TIFFRenderer (subclass of AWTRenderer)
c) pja X-Server emulation.
Since the issue is, that fontsize-changes from one Renderer influence
another Renderer, I suspect the mistake to be in a) or c). AFAIK FOP paints
the characters to the InMemory-Image in these classes. Is this correct?
Probably yes. TIFFRenderer is just a wrapper around AWTRenderer so I 
don't think it can cause the problem. So I bet it's AWTRenderer. File it 
to bugzilla and lets consider if we can do something about it.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: external-destination

2003-02-03 Thread Oleg Tkachenko
Lucian Opris wrote:
I'm using Adobe to see the pdf. The issue is only when I've tried to use a pdf as external-destination; if I'm using another extension for that file (.xml, .xsl etc.) the link is fine when I save the pdf locally.
That reminds me bug #9885 - 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9885. Probably that's 
the case.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Block Problem

2003-02-03 Thread Oleg Tkachenko
Jim Chundevalel wrote:
I'm trying to generate an XSL:FO document on the fly by taking
contents from an XML file. My XML file looks like this.
DATATEXT
SECTIONS
SECTION
HEADINGTest One/HEADING
MATTERThis is some text/MATTER
/SECTION
SECTION
HEADINGTest Two/HEADING
MATTERThis is some other text/MATTER
/SECTION
/SECTIONS
/DATATEXT
I have an XSL FO Document that says
xsl:for-each select=SECTIONS\SECTION
fo:block
fo:inline text-decoration=underline
xsl:value-of select=HEADING/
/fo:inline
xsl:value-of select=MATTER/
/fo:block
/xsl:for-each
Now, I want to underline certain words contained in the MATTER Node. For
this, I was thinking of doing like this in the XML document.
MATTER
	This is some 
	fo:inline text-decoration=underlineother/fo:inline
	text.
/MATTER

(After referencing the fo namespace at the beginning of the XML
document.)
However, the resulting PDF document does not underline the word other.
How do I go about doing this?
Having fo in source xml sounds like a really bad idea, but anyway you 
should use xsl:copy-of, rather than xsl:value-of to copy source subtree.
xsl:copy-of select=MATTER/

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Different JRE versions' affect on extent/margin(s)

2003-02-03 Thread Oleg Tkachenko
Clay Leeds wrote:
In testing my application, I've noticed that different JRE's produce 
differing FOP output. Specifically, Java 1.3.1_04 tends to require more 
space for region-before  region-after than Java 1.4.1_01. If I use the 
1.4.1 extents/margin(s) with 1.3.1, I get a Some static text did not 
fit error, and it prints on the next page (if there is one--FOPpers 
know the drill :-). If I use the 1.3.1 extents/margin(s) wwith 1.4.1, I 
end up with incorrect region-before/after, leaving 1-2cm of white-space 
around region-body.
Which renderer are you using? Anyway provide full test case to reproduce 
the problem.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: cannot render a solid border around a table row

2003-02-03 Thread Oleg Tkachenko
Gustavo Lopez wrote:
I can render a solid border around a table and around a table cell, but
I cannot specify a solid border around a table row as in:
fo:table-row border-bottom-color=black border-bottom-width=0.5pt border-bottom-style=solid
It seems to be very old bug #2475, see 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2475.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ANN: FOP logo contest

2003-02-02 Thread Oleg Tkachenko
Hello!
New FOP is looming and it needs a new logo. FOP Team announces open logo 
contest and invites all members of the FOP community as well as any other 
interested parties to participate as contestants or by expressing your opinion 
through voting.

The rules and details are at http://xml.apache.org/fop/logocontest.html.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: userconfig.xml in servlet

2003-01-31 Thread Oleg Tkachenko
Peter Menzel wrote:
I want to set FOPs userconfig.xml in the servlet, using these lines:
File userConfigFile = new
File(getServletContext().getResource(/WEB-INF/userconfig.xml).toExternalForm()
);
So check here whether such file exists:
if (userConfigFile.exists())
Otions options = new Options(userConfigFile);
What can I do?
Have you tried something like 
getServletContext().getRealPath(/config/userconfig.xml)

Another question: I need the userconfig.xml, because I want to load an
additional font into FOP, which I created from an TTF file, and use these lines
in the userconfig.xml:
...
fonts
font metrics-file=mtcorsiva.xml kerning=yes
  font-triplet name=MTCORSIVA style=normal weight=normal
/font
...
I put the fonts xml file in the same dir as userconfig.xml. Is the correct?
No, you have to set up baseDir or fontBaseDir properties to resolve 
relative pathes. See faq: http://xml.apache.org/fop/faq.html#faq-N102DC.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: multithreading issues - FOP, TIFFRenderer, Solaris 4-proc machine, pja x-server

2003-01-31 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I am using FOP 0.20.5rc to produce TIFF files from XML in an EJB
environment. I experience  strange multithreading issues when I run the
thing in the (production-near) test-environement on a 4-proc box - the font
sizes get messed up completly on the 4 proc machine but only if I render
more than 1 TIFF in parallel.
If I run only one rendering at a time, it is fine.
If I run the same thing multithreaded on my dev box, it runs fine (though
there is only one proc of course)
It is entierly possible that the TIFFRenderer (from Oleg, based on
AWTRenderer and JAI), or the pja toolkit (http://www.eteks.com/pja/en/)  is
the problem.
Yes, you have to isolate problem somehow. Can you test it without 
TIFFRenderer, using just regular PDFRenderer?

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java/util/Hashmap

2003-01-31 Thread Oleg Tkachenko
Matthew Lancashire wrote:
VJ++ 6.0 Yeah.
I have both Sun JDK and MS JDK. Is it in  there?
MS JDK is ancient java 1.1.4, you cannot use it with FOP.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: userconfig.xml in servlet

2003-01-31 Thread Oleg Tkachenko
Peter Menzel wrote:
I cannot specify the basedir/fontbasedir in the userconfig.xml, because I do
not know it.
My web application will be deployed as a war file in some servlet container
from which I do not know anything about directory structures..
Is there another way, to set the font basedir in FOP, or importing the fonts
xml file directly in the servlet to the Options or Driver object? 
You can use org.apache.fop.configuration.Configuration.put(baseDir,
getServletContext().getRealPath(/fop));
See getRealPath() documentation.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Counting the number of pages generated in the pdf file

2003-01-31 Thread Oleg Tkachenko
MARTIN Franck wrote:
Is there any way to count the number of pages for a pdf generated file?
You can get number of generated pages using 
driver.getResults().getPageCount();
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel

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


Re: preserve space

2003-01-30 Thread Oleg Tkachenko
Toufic Nehme wrote:
I have an element with formatted text inside an xml file.
When I generate my pdf, all spaces, LF and CR are skipped
in the fo:block.
I need to output the text as it is formatted in the xml file.
I tried with xsl:preserve-space elements=ColorCode/
in the xsl file, with space-treatment=preserve in the
fo:block also, but that didn't resolve the problem.
I recommend you using of white-space-collapse=false 
linefeed-treatment=preserve white-space-treatment=preserve 
combination of properties. Not all of them are implemented actually, but 
 in order to not being forced to modify your stylesheets in the future 
or while using another formatter just use this triple to preserve 
original text formatting.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: specify a base URL for images

2003-01-28 Thread Oleg Tkachenko
Koes, Derrick wrote:
I'm running fop 0.20.5rc.
I understand that I need to configure FOP through the use of the
org.apache.fop.configuration.Configuration class.  I have done this by
setting baseDir to http://koes/dora.  This is the base URL for my web
application.
How do I pick up images?  I've tried setting the background-image
attribute to /draft.jpg and draft.jpg.  Neither produced any image on
the rendered PDF, but I got no error from the FOP processor.
See http://xml.apache.org/fop/faq.html#faq-N102DC
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Border attribute in fo:region-before

2003-01-24 Thread Oleg Tkachenko
Jean-Philippe VALENTIN wrote:
I would like use the border attribute in fo:region-before  but it doesn't
work : is-it a bug ? how can I do else ?
That's not a bug, but XSL Recommendation conformant behaviour. In XSL 
1.0 regions cannot have padding and border:
In version 1.0 of this Recommendation, the values of the padding and 
border-width traits must be 0. [1]

[1] http://www.w3.org/TR/xsl/slice6.html#fo_region-before
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Line numbering PDF documents

2003-01-23 Thread Oleg Tkachenko
John Kemp wrote:
I have to produce documents that have line numbers printed on the left 
of each line of text - for example:

1   The first line of text ends
2   and then second line gets numbered as two
3   which leads me to line three.
4   Can FOP do this?
This is an action that cannot be performed via an XSLT, as the document 
must first be flowed correctly for display, in order to know what line 
number should be placed where.

I saw some email discussion of this in the archive, but no solution was 
noted. Is FOP capable of doing this, and if so, how?
Nope, xsl-fo Recommendation doesn't support such stuff, it's well-known 
requirement for next version. It could be done probably by some extension though.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel

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


Re: Error using images served by tomcat through apache HTTP server

2003-01-23 Thread Oleg Tkachenko
Koes, Derrick wrote:
Does tomcat not report the correct header info or something to FOP?
I don't understand why there should be a difference.  Does the
authentication interfere in some way?
Sure. How do you think FOP can authentificate itself in your application?
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error logged, but PDF with pictures is OK

2003-01-22 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I still use FOP ver. 0.20.3 .
Upgrade to 0.20.5rc, there were a lot of fixes in this area.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   3   4   >