RE: Column / character width question

2003-05-08 Thread Scott Moore

>On page 2, look at the box labeled "Key Facts".  This is where I want
to 
>create a two column region.  Warning: it's a 3 MB PDF, but it is a demo

>of what FOP can do.

Is the text in "Key Facts" dynamic?  Why can't you use a 2 column table
in that region?  If the text is always the same, you should be able to
format it in such a way so that it looks like it flows from one column
to the other.

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



RE: Underlining words

2003-03-06 Thread Scott Moore
Thanks, that did it.

> use following attribute text-decoration="underline"
> border-... are not for inline blocks...
> 
> greez,
> 
> mark

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



Underlining words

2003-03-06 Thread Scott Moore
Is it possible to underline words in a paragraph?  I tried using this with
no results:

you are under no obligation to do so


no obligation is bold, but not underlined.  I'm using FOP 0.20.4

Thanks for any help,
Scott

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



RE: Pdf document is closing if I close another existing pdf.

2002-12-16 Thread Scott Moore
This issue has nothing to do with FOP.  It's actually a bug with Acrobat
Reader.  If you watch your process list, you'll see one instance of
AcroRd32.exe (Acrobat Reader), which is doing double-duty for displaying
both PDFs.

When you close the PDF outside of the browser, AcroRd32.exe dies, which
blanks the PDF in the browser.  AcroRd32.exe really shouldn't kill itself.
We had the same problem with Microsoft Word (imagine that).  That's what you
call poor AddRef()ing from the company who wrote COM rules.

Scott

> -Original Message-
> From: vikas waykole [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 16, 2002 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: Pdf document is closing if I close another existing pdf.
> 
> 
> Hi,
> 
> I am generating pdf through fop0.20.2 and opening that in new 
> IE window.
> What happens is If I have another pdf document open which is 
> not generated 
> through fop and I am opening my pdf through fop engine.If I 
> close that 
> another pdf document,my fop pdf document is becoming blank.
> Can anyone please tell me how to fix this issue.
> 
> Thanks in advance,
> 
> Vikas Waykole
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: fo:page-number-citation, right alignment bug in 20.5rc

2002-12-11 Thread Scott Moore
> Sorry, hadn't had time to fix this. While the fix is not all
> that hard in itself, it may have widespread consequences and
> therefore needs some extended testing.
>
> J.Pietschmann

If you could post the changes, I'd like to implement them in my local
version of FOP and see what happens.

Thanks,
Scott


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



fo:page-number-citation, right alignment bug in 20.5rc

2002-12-11 Thread Scott Moore



I just tested the latest RC 20.5 and the right 
alignment bug for fo:page-number-citation still exists.  Based on past 
postings, I was under the impression this was going to be fixed.
 
What gives?  Was it too hard to implement or 
just an oversight?
 
Thanks,
Scott


RE: SVG LinearGradient

2002-11-13 Thread Scott Moore
 
> Can you please elaborate that a little? Feel free to provide 
> small example 
> illustrating the problem.
> 
> -- 
> Oleg Tkachenko
> eXperanto team
> Multiconn Technologies, Israel
> 


It sounds a lot like an issue a had a while back that was never solved.
What follows is my email from 1/24/02


I'm trying to embed the following SVG into my XSL-FO and run it thru FOP.
Although the SVG looks fine using Adobe's SVG viewer, I get an error (below)
from FOP.  Apparently, it doesn't like the url() reference to the
.  How can I get this to work?
 
Thanks for any help,
Scott
 
 
http://www.w3.org/2000/svg"; preserveAspectRatio="none">
 
  
   


   
  
  
  
  D
 


 
An I/O error occured while processing the URI
'file:D:/Projects/Dev/#PurpleToWhite' specified on the element 
org.apache.batik.bridge.BridgeException: file:D:/Projects/Dev/:-1
An I/O error occured while processing the URI
'file:D:/Projects/Dev/#PurpleToWhite' specified on the element 
at
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown So
urce)
at org.apache.batik.bridge.PaintServer.convertURIPaint(Unknown
Source)
at org.apache.batik.bridge.PaintServer.convertPaint(Unknown Source)
at org.apache.batik.bridge.PaintServer.convertFillPaint(Unknown
Source)
at org.apache.batik.bridge.PaintServer.convertFillAndStroke(Unknown
Sour
ce)
at
org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unkn
own Source)
at
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unkno
wn Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.j
ava:413)
at
org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:
382)
at org.apache.fop.svg.SVGArea.render(SVGArea.java:58)
at
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRend
erer.java:366)
at
org.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectAr
ea.java:50)
at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRendere
r.java:223)
at org.apache.fop.layout.LineArea.render(LineArea.java:163)
at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRender
er.java:192)
at org.apache.fop.layout.BlockArea.render(BlockArea.java:82)
at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRe
nderer.java:158)
at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:735
)
at
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:700)
at
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:217)
 
at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)
at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:30
7)
at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
at
org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:463)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.Driver.render(Driver.java:501)
at org.apache.fop.apps.Driver.run(Driver.java:552)
 


page-position=first

2002-11-11 Thread Scott Moore
As mentioned, page-position=last does not work.

But does page-position=first?

Scott


RE: Why changes encoding of Symbol font ?

2002-06-24 Thread Scott Moore
>Could somone tell why does Fop v.0.23 change the encoding of the Symbol
Font

Apparently there was a bug in previous versions which is fixed in 0.23.  The
character positions in the font have changed as a result.  Your symbol
characters are still there, you just need to look up the proper character
reference number.

Scott


RE: Going nuts centering a table

2002-06-11 Thread Scott Moore


> -Original Message-
> From: Neil Cooper [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 11, 2002 12:33 AM
> To: [EMAIL PROTECTED]
> Subject: Going nuts centering a table
> 
> 
> Hi,
> 
> After going nuts for a day and a half and also trawling the 
> archives of
> fop-dev and fop-user and the FAQs, can anyone please enlighten me to
> a) why the following code doesn't center the table and
> b) how to do it !.

I took your code and centered the table both vertically and horizontally
with the code below.

HTH,
Scott




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

































Description





0





















RE: Keeping whites space in blocks

2002-05-23 Thread Scott Moore


> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 23, 2002 6:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Keeping whites space in blocks
> 
> 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.

I noticed some different behavior from RenderX's XEP.  While FOP will keep
all spaces, when words wrap to the next line, the words are left justified.
However, XEP will wrap the word to the next line and indent it one space.
It looks horrible.  Which product is correct in their interpretation of the
spec?


FOP:

This is a sample  sentence
that keeps  all  spaces.


XEP:

This is a sample  sentence
 that keeps  all  spaces.



RE: FOP Helvetica - is it really Arial?

2002-05-23 Thread Scott Moore
Thanks for all the responses.  I'm gonna go with the assumption that
Helvetica = Arial and not embed the Arial.TTF file, which bloats the PDF.

Thanks,
Scott


> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 22, 2002 1:56 AM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP Helvetica - is it really Arial?
> 
> 
> AFAIK the standard fonts specified in the PDF spec match the base 14
> fontset of PostScript which includes Helvetica, Times, Courier, Symbol
> and ZapfDingbats. Acrobat 3.x, I think, used Helvetica and Times.
> Current versions include Arial. Helvetica is then replaced by ArialMT.
> Furthermore, I've read (and experienced myself) that Arial 
> (by Microsoft)
> is not the same as Helvetica. Don't know about ArialMT (by Adobe).
> > 


FOP Helvetica - is it really Arial?

2002-05-21 Thread Scott Moore
Font Gurus,

There's a debate raging in our company right now about the use of Arial and
Helvetica in FOP produced PDF.  After careful examination of both fonts, I
can see absolutely no difference, even though Helvetica has minor but
distinguishable differences from Arial.

I'm using the information on this website to distinguish between the two
fonts: http://www.ms-studio.com/articlesarialsid.html

It appears to me that Helvetica is actually Arial in the PDF.  Even when I
have Acrobat Reader 5.0 list the fonts, it says Helvetica maps to ArialMT.

So, my question is: is this a problem with FOP or Acrobat Reader?  Is
Helvetica something that Acrobat Reader renders or did FOP use Arial for the
Helvetica font?  I'm not exactly sure how fonts work in PDF, but I've read
Helvetica comes standard with PDF.  I find it strange that Helvetica is
mapping to Arial though.

I'd appreciate any background information you could give me on this subject!
Actually, what it boils down to is this: why bloat the PDF with embedded
Arial, when Helvetica is exactly the same font IMHO?

Thanks,
Scott



Adding Garamond font to FOP

2002-05-21 Thread Scott Moore
I've tried adding the Garamond font to FOP, and everything works fine except
when I need a bold italic font.  I never did find a TTF file for Garamond
Bold Italic, just bold and italic separate.

Is there a way to get garamond in bold and italic?  MS-Word seems to be able
to do it without a problem, but FOP gives a warning that it can't find it.
Is there something special I need to do for this case?

Thanks,
Scott



EPS Images

2002-05-20 Thread Scott Moore



I'm trying to insert 
an EPS image into my PDF with FOP.  Looking thru the archives, I see that 
EPS is supposed to work, but only displays when the PDF is printed.  So 
far, that seems to ring true.
 
However, I have FOP 
embedded in a servlet, and the second time I try to create the same PDF with the 
EPS image, I get this error:
 
INFO    10219   [fop ] 
(): 
[1]java.lang.NullPointerException    
at 
org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:124)    
at 
org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:1202)    
at 
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:708)    
at 
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:217)
 
    at 
org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)    
at 
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:307)    
at 
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)    
at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)    
at 
org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:463)    
at 
org.apache.fop.apps.Driver.render(Driver.java:481)    
at 
org.apache.fop.apps.Driver.render(Driver.java:501)    
at org.apache.fop.apps.Driver.run(Driver.java:552)
 
 
Anybody know 
why?
 
Also, I noticed that 
I'm getting line numbers on all the FOP code, which means a debug compile.  
I rebuilt FOP with jimi, so maybe this is my fault.  Is there some way to 
get an optimized build that I missed?
 
 
Thanks,
Scott


RE: Adding Fonts - Must I use absolute paths in fopconfig.xml?

2002-05-02 Thread Scott Moore


> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 02, 2002 4:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Adding Fonts - Must I use absolute paths in 
> fopconfig.xml?
> 
> 
> 
> This is a bug. The base is ignored when reading font information.
> 

Thanks for the info.  I've figured out a workaround, which is to read in
fopconfig.xml into a DOM and add the necessary base directory path of my
servlet to the DOM, save it to a temporary file and then load that temporary
fopconfig.xml into FOP.   Not the ideal situation, but you gotta do what you
gotta do...


Adding Fonts - Must I use absolute paths in fopconfig.xml?

2002-05-01 Thread Scott Moore
I've got my own servlet with FOP which reads a fopconfig.xml file that I
deploy with the servlet.  So far, so good.

However, when I added fonts to fopconfig.xml, I had a bunch of problems
until I hardcoded the path to the font under my servlet.  Obviously, this is
a problem because my servlet (supposedly) can be deployed anywhere and I
need to use a relative path for the font files.

I set the baseDir beforehand, but that doesn't seem to help.

This works:



This doesn't:




Am I doing something wrong, or is this a bug?

Thanks for any help,
Scott



Re: Why is FO(P) a superior model than what most proprietary tool s propose

2002-05-01 Thread Scott Moore
I just keep track of it myself.  Declare a member variable of type int and
increment it everytime a request comes in and decrement it after the request
is serviced (in a finally{} block, watch out for exceptions messing up your
counter).

Make sure you synchronize access to it and it should work just fine.

private synchronized int addThreadCount(int add)
{
  return (count += add);
}

... doGet(...)
{
int reportsRunning = addThreadCount(1);
if (reportsRunning > MAX_THREADS)
{
// Sleep thread until ready
}

try
{
// generate report
}
catch (Exception e)
{
// handle exception
}
finally
{
addThreadCount(-1);
}
}


HTH,
Scott


- Original Message -
From: "Carter, Will" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 30, 2002 5:50 PM
Subject: RE: Why is FO(P) a superior model than what most proprietary tool s
propose


> this is interesting...
> can the servlet report how many threads it has at any given time?  Do you
> know of any code examples of how this is done?
>
> thanks for the good idea...
> will



RE: Why is FO(P) a superior model than what most proprietary tool s propose

2002-04-30 Thread Scott Moore
Each request comes into the servlet on a separate Java Thread.  I keep track
of the number of reports currently being generated and Thread.sleep(1000)
the queued threads.  Every second or so the threads wake up, check to see if
they should run (next in line and # reports running < MAX) otherwise they go
back to sleep for another second.

It's a little more complicated than that, but that's the general gist.

Scott

> -Original Message-
> From: Savino, Matt C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 30, 2002 5:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Why is FO(P) a superior model than what most proprietary
> tool s propose
> 
> 
> Thanks Scott. Can you share a little more detail on how you queue the
> reports?
> 
> Matt Savino
> 
 


RE: Why is FO(P) a superior model than what most proprietary tool s propose

2002-04-30 Thread Scott Moore
The short answer is you can't expect a large number of users to ask for
reports at the same time and not run into memory problems.  Believe me, I've
stress tested my report server and hit this wall quickly.

However, if you write your server to only run X number of reports at once
and queue any other requests until other reports are finished, you can avoid
those problems and achieve a robust and stable FOP server.  At that point,
adding more servers can get you better scalability.

So far, this has worked well for me.


> -Original Message-
> From: Carter, Will [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 30, 2002 5:29 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Why is FO(P) a superior model than what most proprietary
> tool s propose
> 
> 
> This one has got me scared...
> 
> I am in the process of working out an embedded (servlet) FOP 
> solution for
> some financial reporting.  The generated pdfs are probably 
> around 20 pages..
> does anyone have any info about memory requirements or 
> problems I will run
> into with multiple concurrent users?
> >  
> 


RE: table-footer at foot of table problem

2002-04-30 Thread Scott Moore
My guess is table-footer is working exactly as intended.

Are you sure you don't want to use a page footer?  Something that always
gets placed at the bottom of a page?  If so, look into using
xsl-region-after


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











Footer


.

HTH,
Scott


> -Original Message-
> From: Steve Pitchford [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 30, 2002 1:12 PM
> To: [EMAIL PROTECTED]
> Subject: table-footer at foot of table problem
> 
> 
> Hello.
> 
> Please excuse me if this has already been asked - I've trawled through
> the archives and read the FAQ to try to find an answer, but 
> to no avail.
> 
> I am using a table with a fixed height, and a table-footer element.
> I may be missing something, but I would like to have the footer at
> The bottom of the table, rather than after the last table row in the
> body section. Does anyone know how I can achieve this?


What happened to ZapfDingbats?

2002-04-26 Thread Scott Moore
I've been using the following construct to create a "bullet" in PDF:

l

It's worked in 0.20.1, 0.20.2, 0.20.3rc but it doesn't work in FOP 0.20.3.
Instead I get a pair of scissors.  As a matter of fact, it looks like the
whole font (or at least every character I tested) is a pair of scissors.

What's the fix for this?

Thanks,
Scott


Re: SVG/Graphing->PDF

2002-04-18 Thread Scott Moore
I use the NetCharts Beans graphing product from www.visualmining.com

Their charts are extremely good and the product is competitively priced
(better than most actually).  I don't work for them, just use their product.


> Any body else using something else that is low cost and provides 2D/3D
> charts in many different styles?
>
> Patrick Lanphier
> The Artemis Group
> http://www.artemisgroup.com
> phone: 814-235-0444
>   fax: 800-582-9710
>



RE: SVG Font Problem

2002-04-17 Thread Scott Moore
> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 17, 2002 7:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: SVG Font Problem
> 
> 
> 
> Which version are you using? Are the characters being stroked?

I'm setting strokeSVGText to false.  I just tested it with the value true
and the problem goes away.  Too bad the font is so hard to read in the PDF.

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

Thanks,
Scott


SVG Font Problem

2002-04-17 Thread Scott Moore
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: possible to specify required spaces?

2002-04-01 Thread Scott Moore
I use  which preserves spaces and
works great with FOP.

Scott


-Original Message-
From: Buonincontri, Steve (CAP, MMF, ITSS)
[mailto:[EMAIL PROTECTED]
Sent: Monday, April 01, 2002 5:51 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: possible to specify required spaces?



This is a great subject. I recently struggled quite a bit with this problem.

RTF2FO and FO to FOP gave me loads of problems with whitespaces. I am ready
to give up.

- sb

-Original Message-
From: Craeg K Strong [mailto:[EMAIL PROTECTED]
Sent: Friday, March 22, 2002 1:45 PM
To: [EMAIL PROTECTED]
Subject: Re: possible to specify required spaces?


Can you use fo:leader?

Check out  http://www.renderx.com/Tests/leader.fo

HTH,

--Craeg

[EMAIL PROTECTED] wrote:

>Does anyone know a way to pass required spaces through FOP from XML to a
>PDF?
>
>The normal processing of x'20' spaces collapses adjacent spaces to
>eliminate extra white space, which is normally good but not in all cases,
>and 'white-space-treatment="pre"' (which would preserve these) isn't
>implemented yet.
>
>Does anyone know, for example, of another way to preserve these or else
>another blank non-printing character that we could use in the  XML file for
>spaces we want to preserve?
>
>Thanks for any advice!
>
>
>

-- 
Craeg K Strong, General Partner
Ariel Partners LLC
http://www.arielpartners.com
voice 781-647-2425
fax   781-647-9690

NOTICE: This message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any review,
retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than
the intended recipient is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies -- including electronic copies -- of the original message.



RE: Keeping it together

2002-02-19 Thread Scott Moore
You can get the debugging output back by asking for DEBUG output in the
logging code.

Scott

-Original Message-
From: Savino, Matt C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 19, 2002 11:46 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Keeping it together


Supposedly in .20.3,  works. In
previous versions it went into an endless loop if the rows went beyond the
end of the page. 

Has anyone used .20.3? I didn't like the the logging errors and two new jar
files I was supposed to use. And I missed my benchmarking output (the time
not the memory). I posted on fop-dev to ask if there was any way around
these issues but no one replied.

-Matt

> -Original Message-
> From: Jozef Chocholacek [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 18, 2002 11:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Keeping it together
> 
> 
> Lars Karschen wrote:
>  > ...
> > I tried to connect them via keep-with-next.within-page="always",
> > but there's no change on the output, maybe i overlooked something,
> > since i'm not sure if i understand the definition on the W3C-Page ;)
> 
>You understand it good, but FOP has no or just a symbolic 
> implementation of this property(-ies). Keeps doesn't work in 
> FOP :( It 
> is the most important feature to be implemented, from my 
> point of view, 
> anything else works good enough for my purposes.
> 
> 
>Regards,
> 
> J.Ch.
> -- 
> Ing. Jozef Chocholacek  Qbizm Technologies, Inc.
> Chief Project Analyst   ... the art of internet.
> 
> Kralovopolska 139  tel: +420 5 4124 2414
> 601 12 Brno, CZ  http://www.qbizm.com  fax: +420 5 4121 2696
> 
> 


RE: ClassDefNotFoundError

2002-02-08 Thread Scott Moore
Make sure you use the batik.jar that comes with FOP and not the latest
release of Batik.

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Friday, February 08, 2002 12:01 PM
To: [EMAIL PROTECTED]
Subject: Re: ClassDefNotFoundError


> When I try to transfrom a fo file to a pdf  file, I get the following
> error:
> 
> Exception in thread "main"  java.lang.NoClassDefFoundError:
> org/apache/batik/dom/svg/SVGContext
>      at
>
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:21)
>      at  org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
>      at  org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
>      at
> org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:253)
>      at  org.apache.fop.apps.Driver.(Driver.java:189)
>      at
> org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:55)
>      at org.apache.fop.apps.Fop.main(Fop.java:19)
> 
> I checked all the jar files included in the  release and they're all in
> their proper directories.
> 
> Can anybody help?

But obviously there is a problem with batik.jar. Check your classpath
again. Good luck.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

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


Re: XML, XSL a real problem

2002-02-01 Thread Scott Moore
Yes, at least the XML part.  The XSLT is on the server so the client doesn't
send it, but I could get it exactly the same way I get the XML.

What exactly are you having problems with?  Writing the servlet code to
retrieve an XML document from a POST?

Scott

- Original Message -
From: "Zahigian, Mike" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 12:03 PM
Subject: XML, XSL a real problem


> Has anybody managed to get a Java Servlet to accept xml, xsl stylesheet
> including fo and render to pdf?  I've been struggling for days and am
> running out of time before I have to abandon FOP for this project.  If
> possible, include your xml, xsl, and servlet code so I can work from
there.
> Thanks in advance for any help.
>
> Mike Zahigian
> Business Information Systems
> x72819
>



RE: SVG Problem with FOP

2002-01-31 Thread Scott Moore
Title: Re: SVG Problem with FOP



Thanks 
for the reply.
 
The 
file does not exist, except in memory.  I create the XSL-FO from a 
transformation and then directly feed that Document to FOP in my servlet (I'm 
not using the command-line version of FOP).  The SVG is contained in the 
document and the url reference is local to the document.
 
Scott
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, January 30, 2002 
  8:01 PMTo: [EMAIL PROTECTED]Subject: Re: SVG 
  Problem with FOP
  At 10:43 am -0500 25/1/02, Scott Moore wrote:
  I'm trying to embed the following SVG into my 
XSL-FO and run it thruFOP (0.20.3rc).  Although the SVG looks fine 
using Adobe's SVG viewer and Batik's viewer, I get anerror (below) from 
FOP.  Apparently, it doesn't like the url() referenceto the 
.  How can I get this to 
work? Thanks for any 
help,Scott  http://www.w3.org/2000/svg <http://www.w3.org/2000/svg> 
"preserveAspectRatio="none">   
   cx=".5" cy=".5" 
r=".5">           
    height="200"/>    fill="white">D  An 
I/O error occured while processing the URI
  'file:D:/Projects/Dev/#PurpleToWhite' specified 
on the element 
  
  Are you sure that file that you have requested exists? You might be
  able to step through the code in a debugger and get a clearer idea
  of exactly what I/O error occured. Also check the bug lists as it 
is
  possible that FOP has special requirements for specifying URIs.
  
  Ben.


RE: Whitespace

2002-01-29 Thread Scott Moore
Okay, figured it out.  Sorry about the post.



Glad to see FOP supports that attribute!

Scott


-Original Message-
From: Scott Moore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 4:18 PM
To: Fop User (E-mail)
Subject: Whitespace


Using 0.20.3rc, is there a way to preserve two spaces in a ?
Right now, it seems to be normalizing all my whitespace so my sentences run
together with only one space between the punctuation and the next sentence.


Whitespace

2002-01-29 Thread Scott Moore



Using 0.20.3rc, is 
there a way to preserve two spaces in a ?  Right now, it 
seems to be normalizing all my whitespace so my sentences run together with only 
one space between the punctuation and the next sentence.
 
 
Scott Moore
Senior Developer
netDecide - http://www.netdecide.com/
7600 Leesburg Pike, West Building - Suite 
100
Falls Church, Virginia  22043
(571) 633-6134 (Work)
(571) 633-6003 (Fax)
 


Re: Images in region-start

2002-01-25 Thread Scott Moore



content-height seems to be ignored.  No matter 
what I set it to, the image stays the same height.

  - Original Message - 
  From: 
  Carmelo Montanez 
  
  To: [EMAIL PROTECTED] 
  Sent: Friday, January 25, 2002 4:40 
  PM
  Subject: Re: Images in region-start
  
  Hi Scott:
   
  Have you tried the "content-height"  and 
  "content-width" properties?
   
  Carmelo
  
- Original Message ----- 
    From: 
Scott Moore 
To: FOP User 
Sent: Friday, January 25, 2002 4:31 
PM
Subject: Images in region-start

I'm trying to place an image (JPEG) on the 
left side of my page that runs the whole length of the page inside the 
xsl-region-start.  But, for the life of me the best it will ever do is 
approx. 3/4 of the length of the page (8.5inx11in).
 
I've tried everything, including resizing the 
image until I'm about to scream.  It doesn't make any difference.  
Even if I stretch the image vertically, but not horizontally, it still is 
exactly the same height in the PDF!  I've tried using the width 
attribute, but it doesn't seem to increase the height, no matter if I shrink 
or expand the width.  The height attribute seems worthless.  By 
placing the "space-before" attribute on the block enclosing the image, I can 
move the image up or down the page, but I can never get the image to fill 
the whole page.
 
This is in FOP 0.30.3rc.  Has anyone 
successfully ran an image along the whole left side of a page?  What's 
the secret??  Thanks for any help!
 
Scott


Images in region-start

2002-01-25 Thread Scott Moore



I'm trying to place an image (JPEG) on the 
left side of my page that runs the whole length of the page inside the 
xsl-region-start.  But, for the life of me the best it will ever do is 
approx. 3/4 of the length of the page (8.5inx11in).
 
I've tried everything, including resizing the image 
until I'm about to scream.  It doesn't make any difference.  Even if I 
stretch the image vertically, but not horizontally, it still is exactly the same 
height in the PDF!  I've tried using the width attribute, but it doesn't 
seem to increase the height, no matter if I shrink or expand the width.  
The height attribute seems worthless.  By placing the "space-before" 
attribute on the block enclosing the image, I can move the image up or down the 
page, but I can never get the image to fill the whole page.
 
This is in FOP 0.30.3rc.  Has anyone 
successfully ran an image along the whole left side of a page?  What's the 
secret??  Thanks for any help!
 
Scott


SVG Problem with FOP

2002-01-25 Thread Scott Moore



I'm trying to 
embed the following SVG into my XSL-FO and run it thruFOP (0.20.3rc).  
Although the SVG looks fine using Adobe's SVG viewer and Batik's viewer, I get 
anerror (below) from FOP.  Apparently, it doesn't like the url() 
referenceto the .  How can I get this to 
work? Thanks for any help,Scott  http://www.w3.org/2000/svg 
 "preserveAspectRatio="none">   
   cx=".5" cy=".5" 
r=".5">           
    height="200"/>    fill="white">D  An 
I/O error occured while processing the 
URI'file:D:/Projects/Dev/#PurpleToWhite' specified on the element 
org.apache.batik.bridge.BridgeException: 
file:D:/Projects/Dev/:-1An I/O error occured while processing the 
URI'file:D:/Projects/Dev/#PurpleToWhite' specified on the element 
    
atorg.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown 
Source)    at 
org.apache.batik.bridge.PaintServer.convertURIPaint(UnknownSource)    
at 
org.apache.batik.bridge.PaintServer.convertPaint(UnknownSource)    
at 
org.apache.batik.bridge.PaintServer.convertFillPaint(UnknownSource)    
atorg.apache.batik.bridge.PaintServer.convertFillAndStroke(Unknown 
Source)    
atorg.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unknown 
Source)    
atorg.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)    at 
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(UnknownSource)    
at 
org.apache.batik.bridge.GVTBuilder.buildComposite(UnknownSource)    
at 
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(UnknownSource)    
at 
org.apache.batik.bridge.GVTBuilder.buildComposite(UnknownSource)    
at org.apache.batik.bridge.GVTBuilder.build(Unknown 
Source)    
atorg.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java:413)    
atorg.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:382)    
at 
org.apache.fop.svg.SVGArea.render(SVGArea.java:58)    
atorg.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRenderer.java:366)    
atorg.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectArea.java:50)    
atorg.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:223)    
at 
org.apache.fop.layout.LineArea.render(LineArea.java:163)    
atorg.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.java:192)    
at 
org.apache.fop.layout.BlockArea.render(BlockArea.java:82)    
atorg.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRenderer.java:158)    
atorg.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:735)    
atorg.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:700)    
atorg.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:217) 
at 
org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)    
atorg.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:307)    
atorg.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)    
atorg.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)    
atorg.apache.fop.tools.DocumentReader.parse(DocumentReader.java:463)    
at 
org.apache.fop.apps.Driver.render(Driver.java:481)    
at 
org.apache.fop.apps.Driver.render(Driver.java:501)    
at 
org.apache.fop.apps.Driver.run(Driver.java:552)