Re: Pattern fills are all solid black

2003-01-02 Thread Keiron Liddle

The problem is that patterns are not implemented in the releases as yet.


On Thu, 2003-01-02 at 14:14, Don Berendsen wrote:
 Any pattern fill (e.g. see below) that I try always results in a solid black 
 fill. I'm using FOP 2.0.4 with Batik version 1.5 beta2 and viewing the pdf 
 with Acrobat. Can anyone provide me with some guidance or an example of a 
 pattern fill that works with FOP pdf generation?
 
 fo:instream-foreign-object
 svg:svg width=10cm height=5cm xml:space=preserve
 svg:pattern id=sbBgPatt preserveAspectRatio=xMidYMid meet width=5 
 height=6 patternUnits=userSpaceOnUse shape-rendering=optimizeSpeed
 svg:rect x=0 y=0 width=5 height=3 fill=rgb(102,204,255)/
 svg:rect x=0 y=3 width=5 height=3 fill=rgb(102,204,255)/
 /svg:pattern
 svg:rect fill=url(#sbBgPatt) height=150 width=150 x=100 y=100/
 /svg:svg
 /fo:instream-foreign-object
 
 best wishes,
 
 don



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



RE: Performance using SVG

2002-12-27 Thread Keiron Liddle
On Fri, 2002-12-27 at 16:05, Renzo Callant wrote:
 I use fop with the .bat file, so i don't start a jvm every time.

Huh? You mean you DO start a jvm every time. The command line fop can
only process one file at a time and then it finishes, which is what it
would be doing in the bat file.

 I only use 1 polygon, 3 rectangles and 1 text element, 
 so it's kind of simple.



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



RE: Performance using SVG

2002-12-27 Thread Keiron Liddle
On Fri, 2002-12-27 at 16:14, Renzo Callant wrote:
 It processes 1 file at a time, that's right, but it can be a document of 200 
 pages and more. And the logo is on every page.

That sort of optimisation is possible with the current developmnet, but
it will be a while before it is ready.


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



Re: Defining named destination in pdf

2002-12-20 Thread Keiron Liddle
On Thu, 2002-12-19 at 17:47, Jochen Stuempfig wrote:
 hello 
 
 i tried to define a named postion in an pdf using following code
 
 fo:block id=mydestination

The name of the id is not passed to the pdf document. For internal links
it simply gets the position on the page and makes a link to that page
and position.

The pdf named destination is not implemented.
From a quick look at the spec it appears that it would need to create a
destination for each id area and then a mapping from the named
destination to the destination.

 
 after i tried this an control the pdf using acrobat 5 scanning the
 document 
 acrobat doesn't show my the named destination in the pdf
 am i'm doing something worng?
 after all i'd like to open the document using an html link like
 
 a href=foo.pdf#mydestinationLink/a
 
 regards jochen



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



Re: Fop and external-graphic SVG problem

2002-12-17 Thread Keiron Liddle
On Tue, 2002-12-17 at 10:46, Eric Prevost wrote:
 I am trying to integrate an SVG file with embedded text and when i try to
 use it in FOP
 
 I am working on W2K SP1, JDK 1.3, FOP 0.20.4rc ,Batik 1.1.1 or Batik
 1.5
 
 fop produce This result  :

You must use the batik that comes with fop.



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



RE: FOP 0.20.5 RC: DocBook bibliography with empty title leads to null

2002-12-11 Thread Keiron Liddle

The problem is that there is an empty outline lable created for the
bookmarks.
This causes a null pointer exception.

Also I noticed that the id:d0e4 is duplicated.


On Wed, 2002-12-11 at 12:21, Stephan Wiesner wrote:
 I have attached the whole FO file.
 
 Stephan
 
  -Original Message-
  From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] 
  Sent: Mittwoch, 11. Dezember 2002 12:05
  To: [EMAIL PROTECTED]
  Subject: Re: FOP 0.20.5 RC: DocBook bibliography with empty 
  title leads to null
  
  Could you post snippet of this FO?



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



RE: FOP 0.20.5 RC: DocBook bibliography with empty title leads tonull

2002-12-11 Thread Keiron Liddle

Getting the string from the label changed from a string which is return
to a Stringbuffer that calls toString. It is possible for the string
buffer to be null if there is no text.

This only occurs in the pdf bookmark extension which I presume is
generated when you set the fop.extensions flag.


On Wed, 2002-12-11 at 13:11, Stephan Wiesner wrote:
 I just discovered another thing:
 When I enable these two lines:
 xsl:param name=generate.index1/xsl:param
 xsl:param name=fop.extensions1/xsl:param
 
 In my style, I get the nullpointer. If I remove them, not. If, however,
 I only remove
 xsl:param name=fop.extensions1/xsl:param
 It works. The two seem to interact on this.
 
 Stephan



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



Re: AW: automatic image scaling

2002-11-28 Thread Keiron Liddle
On Wed, 2002-11-27 at 16:17, Alexander Koppelhuber wrote:
 if block-container.height = img.height and block-container.width 
 img.width then
 the image gets scaled to the width of the block-containter (gets smaller);
 
 if bloc-container.height = img.height and block-container.width =
 img.width then
 the image gets rendered according to the image size (no scaling is done)
 
 if bloc-container.height  img.height then no image is rendered
 no matter which values are used for width

This is because the line containing the image cannot fit within the
block container so it displays nothing. The correct behaviour should put
the image there as normal and then handle the overflow.

 content-width and content-height do not have any effect at all
 
 
 I hope that this behaviour isn't just coincidence.

It doesn't sound totally correct.

There is some scaling done, that attempts to make it fit on the page
(not block container) that scales down to the area width and the page
height.
This appears to be causing the behaviour you are observing.

I'm not sure how you could work around the problem.



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



Re: reference-orientation

2002-11-28 Thread Keiron Liddle
On Thu, 2002-11-28 at 12:23, Bernt Asbjørn Omland wrote:
 On Thu, 28 Nov 2002, Jeremias Maerki wrote:
  
  On 28.11.2002 00:47:26 bernt asbjørn omland wrote:
   I am developing a stylesheet which generates a pdf document. I need to
   rotate some of the text so that it appears vertically from top to
   bottom. I have not been able to do this with fop, so my questions are:
   
   Is reference-orientation for block-container implemented in fop?
  
  No, it's not.
 
 Are there any plans of implementing this in the near future? Some cvs 
 version available maybe?

We are working on the implementation of such things in the redesign.
There is a basic implementation of this but it is not ready for general
use.

 I have tried this option but I can't get it to do what i want. I need to 
 wrap text inside absolute positioned block-containers and the text 
 for each pdf document I produce changes (read from an external source). 
 Can svg wrap text inside absolute positioned (and absolute sized) 
 block-containers?

There is an extension in batik that does text wrapping. I think it might
be something for a future svg spec. I'm not sure what version of batik
has this.




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



Re: Bug when integrating with SAX?

2002-11-22 Thread Keiron Liddle

I believe this problem is due to the options not being set on the XML
renderer or possible a particular option.

It then gets an npe.

The fix of course would be to set the options on the renderer, you can
create the XMLRenderer yourself and set the options on it, then set the
renderer on the driver.

(2nd time today) Please only show the relevant part of the stack trace.

 java.lang.NullPointerException
 at org.apache.fop.render.xml.XMLRenderer.isCoarseXml(Unknown 
 Source)
 at 
 org.apache.fop.render.xml.XMLRenderer.renderDisplaySpace(Unknown 
 Source)
 at org.apache.fop.layout.DisplaySpace.render(Unknown Source)
 at 



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



Re: table-header and retrieve-marker

2002-11-19 Thread Keiron Liddle

Retrieve marker is only allowed in static regions, so no you cannot use
it in a table header or footer to do that.

On Tue, 2002-11-19 at 09:30, Philippe Chaléat wrote:
 Hello,
 
 Is there a way to use marker (retrieve-marker) in table header or footer ?
 
 For example, how I can achieve this with a table in region-body :
 
   line1 a
   line2 b
   line3 c
 --
   Last line in this page is line3
 
 - page break- 
 
   Last line in previous page was line3
 --
   line4 d
   line5 e
   line6 f
   
 Philippe
 
 




Re: Alignment question

2002-11-18 Thread Keiron Liddle
Hi,

This could be done with fo:leader with space.
You can use the default lengths which will exapnd to fill the space.

I'm not sure if this is implemented properly yet.


On Mon, 2002-11-18 at 14:05, Ries Spruit wrote:
 Hello,
 
 Im a trying to achieve something like this:
 
 
 --
 |This is price text in a normal paragraph
 $ 250,00|
 |
 |
 |
 | 
 
 or 
 
 
 --
 |This is a very long price text which will force the price to the next
 line but  |
 |it should still be on the right.
 $ 250,00|
 
 From this element structure:
 
 priceText
   descriptionThis is a price text in a normal paragraph/description
   price$ 250,00/price
 /priceText
 
  
 The trick is that I want to allow the description to be as long as
 necessary. The price should be appended to the description but aligned
 to the right of the block that the priceText element is used in. 
  
 Does anyone know of anyway of doing this without tables?
  
 Kind regards,
  
 Ries Spruit
  




Re: SVG LinearGradient

2002-11-14 Thread Keiron Liddle
On Thu, 2002-11-14 at 11:57, Jeremias Maerki wrote:
 Keiron, I've upgraded FOP branch CVS to Batik 1.5b4. You may have missed
 that mail yesterday. :-)

I saw it but for gradients it also needs the implementation in
PDFGraphics2D (which in the branch depends on: pdf lib, image lib).




Re: input form

2002-11-12 Thread Keiron Liddle
On Tue, 2002-11-12 at 14:44, Thomas Ottosen wrote:
 Hi All,
 
 I am currently working on a project on xsl-fo but have a minor problem. How
 is it possible to make a input form in pdf, using FOP. A user can then
 filout the form and print it.
 
 see http://www.erhverv.toldskat.dk/Blanketter/31025.pdf

Hi Thomas,

Currently it is not possible. It should be quite possible to do this
with an extension but so far no one has implemented such an extension.

Keiron.



Re: problems with dashed lines converting svg2pdf

2002-11-08 Thread Keiron Liddle
Hi Andreas,

In PDF the dasharray is specified with whole numbers only, the numbers
represent units.
If a fraction is placed in the dash array then the viewer will report an
error.
So it rounds all numbers to a whole number greater than 0 when creating
the dasharray.

You could try scaling it.

Keiron


On Fri, 2002-11-08 at 15:40, Andreas Neumann wrote:
 Hi,
 
 I am successfully using fop to convert svg files (using an A4 coordinate 
 system 
 with mm as units) to pdf.
 
 The only problems I have is that the dashing of the line does not work 
 properly. I noticed that fop only dashes lines until a unit one and cannot 
 use 
 dashes below 1 (a fraction of a unit). Batik and Adobe SVG Viewer render the 
 svg's fine.
 
 Any idea how to solve this?
 
 
 
 below a code-fragment I use:
 
 polyline points=. style=stroke-width:0.3;fill:none;stroke-
 dasharray:0.3,0.3 /
 
 while this works fine on batik and asv it the dashes are 1 mm wide in the 
 resulting pdf-file, after conversion with fop.
 
 Thanks for any hints,
 
 Andreas




RE: some help..

2002-06-21 Thread Keiron Liddle

The element for foreign xml is instream-foreign-object.
You can put svg or any other xml markup in their. The processor, ie FOP,
then needs to have a handler for that xml. Currently it has a handler
for batik.
The redesigned FOP has an extension that has a handler for mathml that
converts the mathml into svg.

Keiron

On Fri, 2002-06-21 at 08:22, Durai Murugan wrote:
 Can you please describe me how to embedd equations inside
 FO style sheet.
 
 i render for PDF it doesn't takes MathML markups. As per
 W3C Draft Specification 15 October 2001 there is no
 information about incorporating MathML tags inside the FO.
 
 This is the main problem with any STM(science,technical and
 medicine) document formatting.




Re: png image in pdf

2002-06-17 Thread Keiron Liddle

Try putting the image in a bit of svg. Batik supports png.

On Fri, 2002-06-14 at 17:41, vikas waykole wrote:
 Hi
 
 I want to show png image in the pdf using fop0.20.3 but without jimi.jar
 
 Any help is highly appreciated.
 
 
 Thanks in advance
 
 Vikas




Re: set pdf dpi

2002-06-17 Thread Keiron Liddle

Why do you want to change the DPI?
In general the DPI is only used to convert cm, inch etc. to point
values.
Except for images there are other issues.

On Fri, 2002-06-14 at 13:53, Harmen van Keimpema wrote:
 Hi all,
 
 Is it possible to tell fop to generate pdf files with different DPI
 settings than the default of 72?
 
 Cheers,
 Harmen




RE: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-14 Thread Keiron Liddle

Here it is, have fun:
http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/svg/PDFTextElementBridge.java?rev=1.3content-type=text/vnd.viewcvs-markup

On Thu, 2002-06-13 at 23:44, Vollmer, Thomas - CannonSA wrote:
  The text is shapes or not depending on whether it is possible to use
  plain text in the pdf document or not.
  It looks at the svg text element and if the text is normal then it
  will not stroke the text but place it directly in pdf.
  If the text has tspans, fractional fonts, various styling, replaced
  characters, unknown font etc. then it will be stroked.
 
 Could you point me to the place in the source code where these
 decisions are made? (maybe a link to the web-based CVS?)




RE: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-13 Thread Keiron Liddle
On Thu, 2002-06-13 at 03:00, Vollmer, Thomas - CannonSA wrote:
 How is the current CVS trunk different from the 0.20.3 release
 in terms of this issue?

The trunk is updated to work with the current batik (cvs).
The text is shapes or not depending on whether it is possible to use
plain text in the pdf document or not.
It looks at the svg text element and if the text is normal then it
will not stroke the text but place it directly in pdf.
If the text has tspans, fractional fonts, various styling, replaced
characters, unknown font etc. then it will be stroked.

You do not set any value to turn this on or off.

This isn't complete yet but should mostly work.

Keiron



Re: Doubt regarding XSLProcessor.process

2002-06-11 Thread Keiron Liddle
look at this page:
http://xml.apache.org/xalan-j/usagepatterns.html

in particular the section titled Multithreading

On Tue, 2002-06-11 at 07:47, [EMAIL PROTECTED] wrote:
 Hi all,
  
 I am using fop-0.20.3rc version of FOP to generate PDF files.
 These are few lines of code I used to generate the PDF reports.
  
 xslProcessor = XSLTProcessorFactory.getProcessor();   --1
  
 xslProcessor.process(new XSLTInputSource(new FileReader(XSLFile)),new
 XSLTInputSource(new FileReader(XMLFile)), 
  new XSLTResultTarget(PDFFile)); ---   2
  
 and So On..
  
 I am generating PDF reports of about more than 5000 for each trigger of the
 component.
 So, the above loop is run for those number of times.
 What i need to know is, whether the XSL file is processed for every loop OR
 it caches
 the result of the process once done. [ In the 2nd method ]
 If it processes for every loop, is there any way to process the XSL sheet
 separately
 and keep the result in any suitable object variable, and use that with XML
 file to genearte reports.
 Because the XSL filename is constant and only XML and PDF file name varies
 for every loop.
  
  
 Regards,
 
 Vinod Nayak i-flex solutions ltd. Voice: (91)-228 43 00, x 6501 
 Fax:   (91)-22-843 13
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  
  
 
 This message contains privileged and confidential information and is
 intended only for the individual named.If you are not the intended recipient
 you should not disseminate,distribute,store,print, copy or deliver this
 message.Please notify the sender immediately by e-mail if you have received
 this e-mail by mistake and delete this e-mail from your system.E-mail
 transmission cannot be guaranteed to be secure or error-free as information
 could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
 contain viruses.The sender therefore does not accept liability for any
 errors or omissions in the contents of this message which arise as a result
 of e-mail transmission. If verification is required please request a
 hard-copy version.
 




RE: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-11 Thread Keiron Liddle
I stand corrected.
It does need to be a BooleanKey to work properly.
Once I fixed that it doesn't work anymore anyway.

I think various changes in batik mean that it needs to be handled
differently.


On Tue, 2002-06-11 at 00:15, Vollmer, Thomas - CannonSA wrote:
 Actually, that's not the case. Notice that I'm calling
 public void setTranscodingHints(Map hints) and NOT
 public void setTranscodingHints(TranscodingHints hints).
 
 The first does this.hints.putAll(hints); (i.e. add), 
 the second one does this.hints = hints; (i.e. replace).
 
 The JavaDoc for these two methods is a litte confusing
 by the way. I had to look at the code to figure this out.




Re: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-10 Thread Keiron Liddle
try using:
addTranscodingHint

you are removing transocding hints with the setTranscodingHints.

The hint has a StringKey as the key and a Boolean as the value.

On Sat, 2002-06-08 at 03:03, Vollmer, Thomas - CannonSA wrote:
 Map hints = new HashMap();
 hints.put(PDFTranscoder.KEY_STROKE_TEXT, Boolean.FALSE);
 pdfTranscoder.setTranscodingHints(hints);

 So, I guess in line 174 it expects a Boolean, but I can't
 get a Boolean into the Map because KEY_STROKE_TEXT is a
 StringKey. So, KEY_STROKE_TEXT should probably be a
 BooleanKey!?

 1) There seem to be two ways to configure text stroking.
 What's the difference and which is the preferred way?

One is for FOP, ie converting fo to pdf.
The other is for batik, converting svg to pdf.
The configuration and other things are not related.

 2) In the mailing list archive I've read that there are
 limitations when not stroking text in FOP. 
 What exactly are these limitations?

This would probably be the following:
- if there is a font or character substitution then it won't work
properly
- it may ignore things like tspan x and y changes or colourings


 Thanks for your help,
 Thomas




RE: Which Batik version in FOP 0.20.3

2002-06-10 Thread Keiron Liddle

Most likely if it works then they are compatible.
I can't remember if there where any changes between those versions that
would cause problems.

On Fri, 2002-06-07 at 19:47, Vollmer, Thomas - CannonSA wrote:
 Thanks, Keiron. And here's a follow-up question...
 
 I'm trying to convert an SVG to PDF and had success with the following two
 command lines:
 
 java -cp
 D:\Programs\fop-0.20.3\lib\batik.jar;D:\Programs\batik-1.5\lib\crimson-pa
 rser.jar;D:\Programs\fop-0.20.3\build\fop.jar
 org.apache.batik.apps.rasterizer.Main -m application/pdf test.svg
 
 java -cp
 D:\Programs\batik-1.1.1\batik.jar;D:\Programs\fop-0.20.3\build\fop.jar
 org.apache.batik.apps.rasterizer.Main -m application/pdf test.svg
 
 The first one uses the Batik that comes with FOP, which is 1.1 as I now
 know.
 The second one uses Batik 1.1.1 which also seems to work. 
 
 Keiron, can you confirm that for the purposes of FOP/Batik-integration it
 makes
 no difference whether I use Batik 1.1 or Batik 1.1.1?
 
 Thanks,
 Thomas




RE: speed

2002-06-04 Thread Keiron Liddle
On Mon, 2002-06-03 at 16:18, Norr, Peter wrote:
 for example a 17 page document takes 100 seconds..
 
 it has a  header, footer and one long table as the body.
 peter

That is quite slow. Are you embedding FOP, if so is there enough memory,
are you using buffered stream etc. Is debugging off (after checking for
unusual messages). What about images.

Maybe it is simply the long table, the fixes mentioned before might
help.




Re: Keeping whites space in blocks

2002-05-23 Thread Keiron Liddle
Hi Kevin,

By default whitespace is collapsed. As often there is a lot of excess
whitespace in xml.
if you use this property:
white-space-collapse=false

it will not collapse the white space.

On Thu, 2002-05-23 at 12:31, Kevin Pearcey wrote:
 I'm converting documents from XML and some have large gaps of white space
 which disappears when rendered by fop.  I have a block such as
 
 fo:block Some Text/fo:block
 
 But the resulting PDF has the text hard to the left margin as though the
 input was simply:
 
 fo:blockSome Text/fo:block
 
 I assume something is allowing pre-ceding white space to be removed, but I
 can see what.
 
 Cheers
 
 Kevin Pearcey



Re: FOP memory consumption

2002-05-02 Thread Keiron Liddle
On 2002.05.01 16:34 Bernd Brandstetter wrote:
So, I have two questions/suggestions:
1) Wouldn't it be possible to let FOP create the output in two steps like
for instance (La)TeX does. Doing a dry run first only to calculate the
page references, store them somewhere, and then produce the actual output
in a second run.
As outlined on this page this is the approach that we are heading for:
http://xml.apache.org/fop/design/optimise.html
This should make any size document possible.
2) Are there plans to port FOP to C/C++ sometime? I guess that at least
part of the memory consumption is to be blamed on Java and IIRC the
underlying Xerces and Xalan are already available as C++ versions, so why
not FOP?
The issue of implementing FOP is not about the language. Since using java 
means we already have a large number of services available and reduced 
debugging effort then this is a logical choice (this doesn't prevent other 
choices).

The issue is dealing with the large number of elements, properties and 
layout issues.
Once the real problem is solved then it will be a more relevant question.


Re: Possible thread-safe issue with fonts

2002-04-26 Thread Keiron Liddle
It sounds like it is a threading problem.
Do you get any messages like:
Failed to read font metrics file ... 
It would appear that two threads could be reading the font metrics file at 
the same time.
Accessing the file is done through the parser so we don't know what it is 
actually doing and it depends on the parser.
I think each time it is a new data set in memory so it probably is not 
that.


On 2002.04.26 08:17 Chris Warr wrote:
Hi, I'm running cocoon 2.1dev under tomcat 4.04b2 with JDK 1.3 and FOP
0.20.3.  My cocoon app is generating a PDF using FOP.  I use and embed a
font in my generated PDF file with the following in my userconfig file:
font metrics-file=d:/fonts/font_dynamo.xml
kerning=yes
embed-file=d:/fonts/dynamo.pfb
font-triplet name=dynamo style=normal
weight=normal/
font-triplet name=dynamo style=normal
weight=bold/
/font
This all works fine and dandy under normal usage, I get the dynamo font
embedded in my PDF and all is well.  However if I run a load test (20
concurrent processes) on the same app. I get the following error appear
in
my tomcat log files:
2002-04-26 15:25:20 ERROR   (2002-04-26) 15:25.20:375   [fop ]
(/cocoon/invoice.pdf) HttpProcessor[80][11]/MessageHandler: unknown font
dynamo,normal,normal so defaulted font to any
Not for every hit, but for some.  So I'm guessing that there is some sort
of
problem with resource sharing.  That is, could FOP not be thread safe as
far
as accessing this file?  Or if the file is loaded into memory once, could
there be multi-threading issues with reading from wherever it is stored
in
memory?
Anyone got any ideas?
Chris.


Re: Is FOP Actively Being Developed?

2002-04-26 Thread Keiron Liddle
Hi L Rutker,
Of course this is happening. Anyone who has read the XSL-FO specification 
would know about half of the problems we are facing.
I suspect what you are really asking is for noticeable signs of progress 
for the user. All I can say is that this will happen when it is possible.

As a rough guess for the development release I think it will take about 
320 hours of work involving core knowledge plus another roughly 320 hours 
of non-core functionality. How this relates to people and dates is 
unknown. (these estimates could be way off, I would need to break it down 
further and monitor progress to get a better idea)

Regards,
Keiron Liddle.
On 2002.04.25 22:32 L Rutker wrote:
I know there is a supposed refactoring/rewriting going on for FOP.
Is this really happening?
Does anyone know of target dates?
Thanks


Re: Transformation matrix wrong in PDF for some SVG files

2002-04-17 Thread Keiron Liddle
Hi Jeremias,
I can't see what the problem is but I can give you some hints.
I would suggest testing the svg rendering using the transcoder through 
batik, so it converts the svg directly to pdf. This works with the cvs 
trunk also but be aware that there are some differences.

I suspect the problem is due to the numbers being used in the svg file. 
The viewport and path numbers are large and the size is relatively small. 
I think it is trying to scale the svg and the numbers are getting 
truncated/rounded to zero.

On 2002.04.16 17:10 Jeremias Maerki wrote:
Hi Foppers
For once, I'm here with a problem. It's driving me crazy (probably
because I'm not so good at math).
I've got a few SVG files that work without problems and I've got a few
that FOP 0.20.3cvs (14.2.2002) and FOP 0.20.4cvs (today) won't handle.
I've identified the problem spot but haven't been able to find a fix,
yet. Acrobat 5 will show the error message Wrong operand type because
the second transformation matrix written by
PDFRenderer.renderSVGDocument()
is 0 0 0 0 0 0 cm instead of x 0 0 x 0 0 cm (where x  0).
Here's the except from the PDF:
snip/
q
q
28.346 811.343 m
212.346 811.343 l
212.346 559.343 l
28.346 559.343 l
h
W
n
1.0 0 0 -1.0 28.346 811.343 cm
0 0 0 0 0 0 cm
q
0 0 m
6500 0 l
6500 8900 l
0 8900 l
0 0 l
h
W
n
0 g
0 G
2607 4214 m
2367 4225 l
2136 4259 l
1909 4314 l
1687 4390 l
1467 4485 l
snip what=more PDF/
I have attached a small FO file and an external SVG file describing a
male sign. male.svg alone renders fine in Adobe SVG Plugin, CorelDraw
and Batik v1.1 Browser. If I exchange the male.svg by boxes.svg from
docs/examples/svg, everything works as expected.
Thanks in advance for any help!
Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


Re: SVG Font Problem

2002-04-17 Thread Keiron Liddle
Which version are you using? Are the characters being stroked?
The main cause of this issue is that the fonts resolved in batik are the 
java fonts, if not stroking the font pdf font is found by looking through 
the java font list and finding the first match. This doesn't always work 
how you might want it to.

On 2002.04.17 12:49 Scott Moore wrote:
I'm having a problem with SVG fonts in FOP.  When I use a Times italic
font,
I get the following error:
ERROR   10190   [fop ] (): unknown font Arial,italic,normal so
defaulted
font to any
I'm not even sure it's a Times font that shows up in this case.  Bold SVG
fonts have the same problem.  However, when I use a normal style Times
font,
it works fine.
The problem has recently gotten worse because I've embedded Arial into my
PDF.  Now I don't get the warning, but it uses the Arial font!  Not only
that, but any spaces in the SVG text show up as hollow boxes.
Why is it looking for Arial?  Does anyone have a solution for this?  If
not,
I'd be willing to look at the source code to fix it, especially if
someone
could point me in the right direction.  Fixing this problem is a big deal
for me, so I'd appreciate any help SVG FOP gurus could give.
Thanks,
Scott


Re: SVG Font Problem

2002-04-17 Thread Keiron Liddle
On 2002.04.17 13:39 Scott Moore wrote:
 The main cause of this issue is that the fonts resolved in
 batik are the
 java fonts, if not stroking the font pdf font is found by
 looking through
 the java font list and finding the first match. This doesn't
 always work
 how you might want it to.
That doesn't sound good.  Does this mean fixing the problem will be
difficult?
If you look into the following classes this is where most of the relevant 
things happen.
org.apache.fop.svg.PDFTextPainter
org.apache.fop.svg.PDFTextElementBridge

You may need to delve into batik somewhere to work out exactly how the 
fonts work. But I think batik needs to have a java font available for it 
to get information from.


Re: non rendered characters

2002-04-17 Thread Keiron Liddle
This problem is a result of the way the line is built. It has pending 
areas that need to be added to form a word due to different text elements, 
this happens if you use inline or other xml elements. These areas are 
dropped at the end of the page.

So yes this is a bug.
On 2002.04.17 14:22 Nicolas Mazziotta wrote:
Hello,
[I've posted sample.zip with this message; it demonstrates my problem,
ftp://www.ulg.ac.be/merci/sample.zip]
I've noticed that text() of tags that occur at page-break as well as the
characters that preceed in the same word-unit (surrounded by
whitespaces) are not rendered at all in PDF and AWT view.
Look at the beginning of page 15 in the pdf file: 'tensible' for
'extensible' [Efo:inlinex/fo:inlinetensible]; notice that even
though the first 'e' is not surrounded by any tag, it is not rendered
either.
One more thing: if I process a 'simple.xml' file with occurrences like
[Erx/rtensible], the same happens, even if I dont write any template
for the 'r' element.
Thank you all for your answers.
N. Mazziotta



Re: Sending generated PDF directly to printer

2002-04-16 Thread Keiron Liddle
yes, on this page:
http://xml.apache.org/fop/output.html
On 2002.04.16 09:44 RAYMOND Romain wrote:
Hello,
is there examples or docs to send the result of an FOP transformation to
a printer ?
thanks.


Re: SVG rendering in release 0.20.3

2002-04-15 Thread Keiron Liddle
The examples in the docs/examples/svg/ directory work fine, so how is 
yours different? Do these examples work for you?

I suspect the svg referenced in the image is invalid.
On 2002.04.13 18:51 Matthew L. Avizinis wrote:
The rect renders fine.  It's actually the image that actually causes
the
problem.
Here, I have used an svg that I knew worked previously.  I have tried an
href URI that is relative and an absolute path, e.g.
D:\pictures\test.svg.
I have tried a URL, e.g. http://test.gleim.com/pictures/test.svg.  I have
tried file:[EMAIL PROTECTED], file:/[EMAIL PROTECTED], file://[EMAIL 
PROTECTED], and file:///[EMAIL PROTECTED]  I
believe I have tried every option I have ever seen suggested in this list
to
no avail.


Re: fo:basic-link on svg image

2002-03-22 Thread Keiron Liddle
The second example is not valid.
You cannot simply place some piece of svg inside fo. SVG can only be used 
in an instream-foreign-object and the xml inside that fo object must be 
valid for svg.

As SVG cannot link internally in the fo document then you cannot do it 
with svg.

On 2002.03.22 03:29 Saif Khaja wrote:
Hi,
I was trying to set a link on one of the svg images to point out to a 
bookmark id set on the pdf page. Has anyone tried this before.

It works fine for text data. For example,
fo:basic-link internal-destination=mark1
  Testing link
/fo:basic-link
For svg images, this doesnt work however. The following lines will not 
even display the svg rectangle image.

fo:basic-link internal-destination=mark1
  svg:rect x=100 y=100 width=100 height=200/
fo:basic-link
Referring to svg examples, links in svg use a, which apparently works 
for a standalone svg image, but doesnt work in fop.

Any help appreciated.
Thanks,
Saif.


Re: svg from string

2002-03-22 Thread Keiron Liddle
I suggest you read this page:
http://xml.apache.org/batik/rasterizerTutorial.html
To convert svg to pdf you are simply using the PDF transcoder.
On 2002.03.21 16:31 Fischer Tibor wrote:
hi,
i've got a java class with a method, what generates an svg object and 
returns it as string.
i need fop to generate the svg into pdf, from the string.

How?
Thanks
Fishy


Re: FW: Batik, FOP, and PDF

2002-03-15 Thread Keiron Liddle
3) Why is crimson-parser missing from the fop binary
distribution?   They ship batik.jar and fop.jar...but the
rasterizer
won't run unlesscrimson-parser.jar is in the class path. I have
to get this from thebatik binary distribution.
I missed this question.
The reason is that batik doesn't need the *crimson* parser the parser that 
comes with FOP works fine.


Re: multi-page PDF creation using the PDFDocumentGraphics2D class

2002-03-14 Thread Keiron Liddle
This is not supported.
The PDFDocumentGraphics2D is simply meant to render a single svg to a 
single page.
You could probably get what you want by extending the class and adding 
some extra methods to create a new page and so on.

On 2002.03.14 04:24 Daniel Cardin wrote:
I have managed to use the PDFDocumentGraphics2D class to create a PDF
document from my application.
I have not seen anywhere how I could instruct the renderer to create a
new PDF page.
Has anyone done this?
Thanks in advance,
Daniel


Re: Problems compiling CVS

2002-03-13 Thread Keiron Liddle
try cvs up -d
On 2002.03.13 01:10 Carlos Araya wrote:
I've tried the following on my CVS tree
Cvs -z3 update
./build.sh clean
./build.sh all


Re: Rendered SVG does not contain images from xsl:fo external-graphic/

2002-03-13 Thread Keiron Liddle
Hi,
The image part is not implemented as far as I can remember.
As for the text, is it in the document, is it viewable using the batik 
viewer for example.
It probably ignores your embedded ttf but will use the fonts available to 
the jvm.

On 2002.03.12 20:12 Andrius Sabanas wrote:
Hello,
I would like to know if there is a convenient way to make preview images 
from xsl:fo documents. I tried rendering to SVG and feeding to Batik's 
JPEG transcoder, but it seems that the rendered SVG does not contain 
images specified with external-graphic/ in xsl:fo. Is this a bug or a 
not yet implemented feature?

In addition, Batik transcoder does not even display text when JPG is 
constructed. I am using embedded ttf for displaying text. The ttf is 
present in my system, of course. Can this be the problem?

Everything is ok when I render to PDF.
Andrius


Re: Trouble with ZapfDingbats

2002-03-12 Thread Keiron Liddle
The answer is in the faq:
http://xml.apache.org/fop/faq.html
ie. go here
http://www.unicode.org/charts/
On 2002.03.12 01:57 Keen Tim wrote:
Thanks for your help TJ.
Can you, or anyone else, direct me to a resource where I can find the
Unicode number for a unchecked box with a shadow in ZapfDingbats? I was
using #113; prior to this problem with the second release candidate.
FWIW I'm now trying to resolve it against the latest release candidate.
Cheers
Tim


Re: merging two libraries

2002-03-12 Thread Keiron Liddle
Hi,
From the archives it appears that the discussion on the fop-dev list was 
about 2 years ago (no apparent refusal though). It is certainly time to 
revisit.

From the small amount of information I know about iText it would appear 
to be a more advanced pdf library.
I don't know what the license issues might be.

What sort of joining forces are you proposing?
Please send to the fop-dev list for further discussion.
Regards,
Keiron.
On 2002.03.12 09:27 [EMAIL PROTECTED] wrote:
Hello all,
I'm not familiar with FOP, but I can't help noticing
that people are moving from FOP to iText and vice versa. As original 
developer of iText, a JAVA-PDF library, I already
proposed you guys at Apache twice to join forces and to combine
both libraries. I now subscribe to this mailing list only to
ask you a third time to reconsider your refusal. Please read these mails 
from some iText/FOP users:
http://www.geocrawler.com/lists/3/SourceForge/8175/0/8071577/
http://www.mail-archive.com/itext-questions%40lists.sourceforge.net/msg00491 
.html Please send your answers to the iText mailing list.
You don't need to subscribe, I will pass them through.
Remark: sorry, but due to the lack of time to read all
my mail as it is, I will now unsubscribe from the FOP
mailing list. kind regards,
Bruno Lowagie


Re: FOP methods seem to be missing - Driver.render and Driver.format

2002-03-08 Thread Keiron Liddle
see:
http://xml.apache.org/fop/embedding.html
The api has changed.
On 2002.03.07 16:58 [EMAIL PROTECTED] wrote:
I'm trying to use FOP on the end of a chain of XMLFilters (sounds like
cocoon? it's for creating a directory of about 500 pdf files...).
It looks like I have the right class -
import org.apache.fop.apps.Driver;
and I've got it to work using the run() method, but the format and render
methods aren't found, according to my compiler.
I'm using FOP-0.2.3rc with jdk1.3.1
any ideas?
cheers,
Tom


Re: Creating PDF from DocBook fo stylesheets

2002-03-08 Thread Keiron Liddle
It is impossible to answer your question without more information.
In future make sure you supply all the information needed to answer a 
question.

For examples:
version of FOP
any errors
jvm
os
etc.
On 2002.03.08 16:29 Jeff Rancier wrote:
Hello,
Can anyone tell me why I can't create a PDF from the DocBook 1.49
stylesheets?
TIA,
Jeff



Re: Trouble with ZapfDingbats

2002-03-06 Thread Keiron Liddle
I'm not sure what the problem is that you are having but ZapfDingbats 
works fine for me both on unix and windows NT.

On 2002.03.06 00:35 Keen Tim wrote:
I recently upgraded to the latest version of Fop (fop-0.20.3rc2) to take
advantage of the changes to the attribute master-name and am now having
problems with the ZapfDingbats font. Essentially my PDF doesn't
recognise the font.
Is anyone else experiencing the same problems? Is this a known problem?
Am I missing something? Should I rollback to a previous version?
Any help would be appreciated.
Cheers


Re: mathml and fop

2002-03-05 Thread Keiron Liddle
On 2002.03.05 14:37 Nicola Ken Barozzi wrote:
See https://sourceforge.net/projects/jeuclid/
The JEuclid is a project, which creates the possibility to display MathML
content. It is primary a Transformer/Serializer for the Cocoon project,
and
creates GIF images or converts the MathML content to SVG.
I don't know how advanced that is but adding an extension to do the 
conversion in fop would be no problem.


Re: Problem converting SVG to PDF

2002-02-26 Thread Keiron Liddle
Hi Elena,
Most likely you have incompatible versions of batik and fop.
There have been a number of api changes between fop 0.20.1 and the current 
batik.
It should work fine if you use the batik that comes with fop.
I suggest you try using the latest fop, FOP 0.20.3rc2 and the batik that 
comes with it, version 1.1 (I think).
This should work fine.

On 2002.02.25 17:17 Elena wrote:
Hi,
can someone help me with this?
I am trying to convert an SVG document to PDF. When I type
java org.apache.batik.apps.rasterizer.Main -m application/pdf
document.svg
from  the command prompt I am getting an error
 NoSuchMethodFound: PDFTranscoder.transcode().
I downloaded the Fop-0.20.1 and build it. Then I added the newly created
FOP.jar to my classpath.
I looked at the PDFTranscoder.java file and the method is there.
What am I doing wrong here?
Thank you very much for your help,
Elena.



Re: FOP SVG precision; how to keep thin lines precision???

2002-02-07 Thread Keiron Liddle
Hi Irina,
I'm no barcode expert but one I tried looked fine to me.
Have you zoomed in on the barcode in the pdf document. If you view it 
normally the viewer may approximate the lines and therefore distort it.

If there is still a problem maybe you could send a small fo and pdf to 
demonstrate the problem.

An alternative may be to make the whole barcode larger, multiply by a 
factor of ten say. Then place the barcode in an svg transform. This way 
the values in pdf are less likely to be round off and the image will be 
scaled.

On 2002.02.06 16:50 Irina Grigorieva wrote:
Hi,
I faced a problem. I need to generate barcodes (it is not a problem) and
draw it into PDF.
That is, to draw several rectangles...
The FO document looks like:
?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:fox=http://xml.apache.org/fop/extensions
...
svg:svg xmlns:svg=http://www.w3.org/2000/svg; width=300 height=300
...
svg:rect x=0 y=0 stroke-width=0 stroke=none fill=black
height=50 width=1/
...
/svg:svg
/fo:root
When setting small _and_ fractional values to rectangle widths, they are
displayed incorrectly:
the rectangles that should be the same widths differs in real widths
about.. several times.
However, the value 1 is displayed correctly.
As far as I could understand, the problem is FOP precision is 72 dots per
inch, that's why
any fractional values like 0.5..1.5 produces huge distortions.
Am I right? Is it a feature of SVG, a feature of FOP? Can I use something
different than Batik for SVG?
Would generating images solve the problem of precision (if then place
these images into PDF with FOP)?
Please help.
BR, Irina.



Re: SimpleTranform xsl, xml to fo using Xalan

2002-02-06 Thread Keiron Liddle
On 2002.02.06 11:51 Pedro Barco Bernal wrote:
Hi all,
These sentences works perfectly at local machine (make the fo file)
but
when we run it at server write a fofile empty, and there aren't any error
or
exception...
¿Someone knows what could be the problem?
//Make transformation of xmlfile to fo-file using  xslfile
 TransformerFactory tFactory = TransformerFactory.newInstance();
 Transformer transformer = tFactory.newTransformer(new
StreamSource(xsl.xsl));
 transformer.transform(new StreamSource(xml.xml), new StreamResult(new
FileOutputStream(xml.fo)));
This simply writes to the streams. You should do a bit more handling such 
as flushing and closing the streams I think. You are probably exiting or 
reading the file before it is written out.


Re: CVS version

2002-01-10 Thread Keiron Liddle
see:
http://marc.theaimsgroup.com/?l=fop-devm=100374237103385w=2

On 2002.01.10 16:35 Carmelo Montanez wrote:
I get the same thing!!, anyone has a clue?
Carmelo
- Original Message -
From: Ludovic Maurillon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 10:29 AM
Subject: CVS version
 hi,

 I'm using the CVS code to run fop. when lauching it, that says CVS FOP
DOES
 NOT WORK - DO NOT EXPECT ANYTHING.
 Is my version correct? or should i stay with the binary distribution??

 regards,

 Ludovic Maurillon
 SAROS
 6 rue de la Trmoille
 75008 PARIS

 Tl: 01 53 23 02 20
 Fax: 01 53 23 02 21
 E-mail : [EMAIL PROTECTED]






Re: FOP, SVG and external-graphic Question

2001-08-22 Thread Keiron Liddle
Fred,

The xml markup between the svg:svg and /svg:svg must be valid svg
markup. The example you have is not valid.
eg. the markup should be able to work standalone as an svg document.

If you want to put a graphic inside svg then you need to use the svg:image
tag.


  I am having trouble combining external-graphics and SVG graphics in
 FOP.
  
  I would like to use SVG to open a viewport containing both svg graphics
  and external-graphics [gifs, jpgs, pngs] .  
  If I format the raster images in a typical manner, as
  fo:external-graphics, fop generates PDFs with rasters fine.
  
  If I format svg images in a typical manner fo:instream-foreign-object,
 fop
  generates PDF w/ svg fine.
  
  But if I try to combine them, FOP will not render the raster images. I
 am
  trying to use svg to create a line pointing from one raster image to
  another. I would like place several raster images and several SVG
 elements
  into one viewport so that I can position them reliably. Neither the svg
  examples nor the images examples shows how to combine svg and
  external-graphics. Can anybody help me with this?
  
  Here is the code of what I would LIKE to do:
  fo:block space-before.optimum=10pt
 space-after.optimum=30pt
  keep-with-previous=1
  !-- the next line, creating  raster image, works OK, but its
  position vis-a-vis the svg does not work in my situation --
   fo:external-graphic height=75px width=40px x=240
 y=240
  src=images/4.jpg/
   fo:instream-foreign-object xmlns:svg=http://www.w3.org/2000/svg;
   svg:svg width=1000 height=760
  !-- the next lines, creating  raster images, do not work --
 fo:external-graphic src=images\4.jpg x=240 y=240
  width=42px height=98px/
 fo:external-graphic src=images\Image1.gif x=320 y=240
  width=461px height=377px/
   !-- the next lines, creating svg image, works fine --
 svg:g style=fill:none; stroke:#ff; stroke-width:3px
  svg:line x1=280 y1=270 x2=400 y2=276/
 /svg:g
/svg:svg
   /fo:instream-foreign-object
  /fo:block