RE: add watermark to generated PDF using FOP

2004-04-16 Thread Koes, Derrick

I use a watermark for generated draft pdf documents.
I accomplished this with a background image, which isn't a true watermark,
but is adequate for the purpose.

Snip...

fo:simple-page-master master-name=formal xsl:use-attribute-sets=master
fo:region-body margin-top=2.8in margin-bottom=0.75in
xsl:if test=$status = 'draft'
xsl:attribute name=background-image
xsl:textdraft.jpg/xsl:text
/xsl:attribute
/xsl:if
/fo:region-body

If you need an overlay on the image itself, you'll like need to use svg.  We
did this to annotate images with shapes and text.

Derrick




-Original Message-
From: David Beck [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 16, 2004 1:07 PM
To: [EMAIL PROTECTED]
Subject: add watermark to generated PDF using FOP

Good Friday!

I have a problem with adding watermark. Hopefully someone can
help me with this.

I use FOP and xsl to display a tiff image with multipage in PDF
format in the browser. I have done this part. Now what I need is
that I want to add a watermark(say, COPY ONLY or SAMPLE) to each
generated PDF before I display them in the browser. So,when
users view those PDFs in browser, the watermark appears either
as foreground or background to protect those images from being
stolen.

Can I do something directly in XSL file? or I have to use FOP to
do this task? I searched our archives and haven't got an answer
yet. Does anyone have this experience? Any help will be
appreciated. Thanks a lot.

Dave 




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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: RE: add watermark to generated PDF using FOP

2004-04-16 Thread Koes, Derrick
We use the FOP driver class to accomplish pdf creation.  The Configuration
class allows us to set the baseDir property for external images.  Below is
another code snippet that shows how we do this.

The String baseDir would contain something like, C:/images;
If this directory had an image called draft.jpg in it, such as in my first
code snippet, the image would be rendered in the pdf.


myDriver = new Driver();

//  Tell the FOP Driver what logger to use.
//  This must be done in the order it is here.
Log4JLogger log4j = new Log4JLogger(dora);
MessageHandler.setScreenLogger(log4j);
myDriver.setLogger(log4j);

//  What other kinds can be rendered?
//  AWT, MIF, PCL, PDF, PRINT, PS, SVG, TXT, XML
myDriver.setRenderer(Driver.RENDER_PDF);

Configuration.put(baseDir, baseDir);
InputSource is = new InputSource(fo);
myDriver.setInputSource(is);
myDriver.setOutputStream(pdf);
myDriver.run();



/**
 * Contact information.
 */
public class INFO
{
static final String NAME = Derrick Koes;
String title = Senior Software Engineer;
String company = Smith  Nephew Endoscopy;
URL companyURL = new URL(
http://www.smith-nephew.com/index-flash.html;);
String aolIM = codeauthor2001;
String EMAIL = [EMAIL PROTECTED];
String PHONE = (978) 474-6302;
String FAX = (978) 749-1487;
String QUOTE = No, try not, do or do not, there is no try.
}
 

-Original Message-
From: David Beck [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 16, 2004 3:35 PM
To: Koes, Derrick
Subject: Re: RE: add watermark to generated PDF using FOP

Derrick,

Thanks for your info. I am quite new to XSL. So, just bear with
me. You use the element xsl:text to refer to an external
image. I do not know exactly how it works. Would you please tell
me how to refer to an external image using the following snip
codes given the image watermark_draft.gif which is stored int
the directory C:/image/ ? 

thanks,

Dave

fo:layout-master-set
fo:simple-page-master page-width=21cm
page-height=29.7cm master-name=left

fo:region-body margin-top=1cm margin-bottom=1cm
  xsl:attribute name=background-image   
xsl:textwatermark_draft.gif/xsl:text
/xsl:attribute
/fo:region-body

 /fo:simple-page-master
/fo:layout-master-set





 On Fri, 16 Apr 2004, Koes, Derrick
([EMAIL PROTECTED]) wrote:

 
 I use a watermark for generated draft pdf documents.
 I accomplished this with a background image, which isn't a
true watermark,
 but is adequate for the purpose.
 
 Snip...
 
 fo:simple-page-master master-name=formal
xsl:use-attribute-sets=master
 fo:region-body margin-top=2.8in margin-bottom=0.75in
 xsl:if test=$status = 'draft'
 xsl:attribute name=background-image
 xsl:textdraft.jpg/xsl:text
 /xsl:attribute
 /xsl:if
 /fo:region-body
 
 If you need an overlay on the image itself, you'll like need
to use svg.  We
 did this to annotate images with shapes and text.
 
 Derrick
 
 
 
 
 -Original Message-
 From: David Beck [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 16, 2004 1:07 PM
 To: [EMAIL PROTECTED]
 Subject: add watermark to generated PDF using FOP
 
 Good Friday!
 
 I have a problem with adding watermark. Hopefully someone can
 help me with this.
 
 I use FOP and xsl to display a tiff image with multipage in
PDF
 format in the browser. I have done this part. Now what I need
is
 that I want to add a watermark(say, COPY ONLY or SAMPLE) to
each
 generated PDF before I display them in the browser. So,when
 users view those PDFs in browser, the watermark appears either
 as foreground or background to protect those images from being
 stolen.
 
 Can I do something directly in XSL file? or I have to use FOP
to
 do this task? I searched our archives and haven't got an
answer
 yet. Does anyone have this experience? Any help will be
 appreciated. Thanks a lot.
 
 Dave 
 
 
 
 
 Get your own 800 number
 Voicemail, fax, email, and a lot more
 http://www.ureach.com/reg/tag
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 This electronic transmission is strictly confidential to Smith
 Nephew and
 intended solely for the addressee.  It may contain information
which is
 covered by legal, professional or other privilege.  If you are
not the
 intended addressee, or someone authorized by the intended
addressee to
 receive transmissions on behalf of the addressee, you must not
retain,
 disclose in any form, copy or take any action in reliance on
this
 transmission.  If you have received this transmission in
error, please
 notify the sender as soon as possible and destroy this
message.
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Page breaks keeps

2004-02-23 Thread Koes, Derrick
To keep items within a row together, I use keep-together=always on
table-row elements.  This seems to work reasonably well.  To keep rows
together, I use keep-with-next=always on table-row elements.  I've had
varying degrees of success with this, mostly I suspect due to cockpit error.


-Original Message-
From: Moore, Spring [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 1:25 PM
To: '[EMAIL PROTECTED]'
Subject: Page breaks  keeps

Greetings all.

I am having a basic formatting issue concerning page breaks.

The scenario:  I am calling several items of information to be displayed in
a single table row (which is set up as a template).  This call loops N
times, depending on how many rows of information there are in the XML.

Now, within a cell in this table row, I can have between 4  10 fo:blocks,
depending on whether or not these data elements are present in the XML.

I am trying to prevent a page break from happening within the middle of this
row when the fo is rendered into a PDF.

I have read the buglist as well as the W3C compliance list.  While the
compliance list states FOP supports keeps
(keep-together.within-page=always) for table rows, I can't see any
evidence of this working.  Page breaks will still occur between the
fo:blocks, despite my best efforts to prevent this. (Among techniques I have
tried is putting each fo:block into its own row and placing keep attributes
on each of these rows within a child table of the parent cell.  No change in
display.  Using page-break causes each row to be on its own page, which is
not an acceptable result.  I have tried some other methods as well, to no
avail.)

Does anyone have any suggestions?  I can provide a current code snippet if
necessary.

Many thanks.

Spring Moore
Technical Producer
ICG Commerce
Office: 215.649.1446
[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the mail administrator at [EMAIL PROTECTED]

www.icgcommerce.com

**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



alignment question

2004-02-02 Thread Koes, Derrick








If my image is centered, how do I get the next line (of
text) to start at the left edge of the image?



Thanks,

Derrick









This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


Opacity in SVG graphics on PDF documents.

2003-10-31 Thread Koes, Derrick








I know that opacity is a problem as evidenced known problem
6.



http://xml.apache.org/fop/graphics.html#svg-problems



However, does anyone know why?
I attempted to work around this issue by converting the image first to png (tried tiff and jpeg too). The opacity is there with png, but any text is choppy, pixilated, especially when
printing.

Text is much better if I leave the svg
graphic as it is, but of course, everything is opaque.



Thanks for any help,

Derrick







This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


RE: Opacity in SVG graphics on PDF documents.

2003-10-31 Thread Koes, Derrick









Ah, opacity is not a problem with
jpegs. However, svg
graphics such as text appear less crisp than the original SVG, especially when
printing.





-Original Message-
From: Chris Faulkner
[mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 8:36 AM
To: [EMAIL PROTECTED]
Subject: RE: Opacity in SVG
graphics on PDF documents.





Hello











Not sure why this is a
problem. I use batik to create JPGs with transparency from SVG input. I then
embed these with FOP. Have you tried rasterising your SVG separately ?











Chrus





-Original Message-
From: Koes, Derrick
[mailto:[EMAIL PROTECTED]
Sent: 31 October 2003 13:26
To: '[EMAIL PROTECTED]'
Subject: Opacity in SVG graphics
on PDF documents.

I know that opacity is a problem as
evidenced known problem 6.



http://xml.apache.org/fop/graphics.html#svg-problems



However, does anyone know why? I attempted to work around this issue by
converting the image first to png (tried tiff and jpeg too). The opacity is there with png, but any text
is choppy, pixilated, especially when printing.

Text is much better if I leave the svg graphic as it
is, but of course, everything is opaque.



Thanks for any help,

Derrick

This electronic transmission is strictly confidential
to Smith  Nephew and intended solely for the addressee. It may contain
information which is covered by legal, professional or other privilege. If you
are not the intended addressee, or someone authorized by the intended addressee
to receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this transmission.
If you have received this transmission in error, please notify the sender as
soon as possible and destroy this message.









This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


image scaling

2003-08-04 Thread Koes, Derrick








What is the correct way to do image scaling?



I want to fit a 3inX6in image into a 3inX3in block.

This means that the 6in should become 3in and the 3in should
be 1.5in.



Thanks,

Derrick













This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


RE: image scaling

2003-08-04 Thread Koes, Derrick









So,

fo:block height="3in" width="3in"

 fo:external-graphic height="100%"
width="3in"

/fo:block



Yes?



-Original Message-
From: Teator, Michael
[mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 4:13 PM
To: '[EMAIL PROTECTED]'
Subject: RE: image scaling





use 100% for the side you
want to scale. In the below example, set the 6 dimension to
3inches, and the other dimension to 100%











(This works in Fop
0.20.5, but I don't believe it did in 0.20.4)





-Original Message-
From: Koes, Derrick
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 4:06 PM
To: '[EMAIL PROTECTED]'
Subject: image scaling

What is the correct way to do image
scaling?



I want to fit a 3inX6in image into a
3inX3in block.

This means that the 6in should
become 3in and the 3in should be 1.5in.



Thanks,

Derrick







This electronic transmission is strictly confidential
to Smith  Nephew and intended solely for the addressee. It may contain
information which is covered by legal, professional or other privilege. If you
are not the intended addressee, or someone authorized by the intended addressee
to receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this transmission.
If you have received this transmission in error, please notify the sender as
soon as possible and destroy this message.









This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


RE: image scaling

2003-08-04 Thread Koes, Derrick

I apologize.  I used a concrete example to describe an abstract problem.
I actually do not know the size of the image.  Why I do want is for it to
maintain its scale inside a 3inX3in block.

Thanks,
Derrick


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 4:14 PM
To: [EMAIL PROTECTED]
Subject: Re: image scaling

Koes, Derrick wrote:

 What is the correct way to do image scaling?
  
 I want to fit a 3inX6in image into a 3inX3in block.
 This means that the 6in should become 3in and the 3in should be 1.5in.

You probably don't have to do anything special, FOP should
automatically fit the image (bitmap images). SVG is a bit
more interesting, you are better off declaring it to have
3x1.5 measurements right from the start.

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Adobe Reader 6.0 problem

2003-07-11 Thread Koes, Derrick








I've already posted this to the Adobe forum, but I
thought it couldn't hurt posting it here too.



Adobe Reader 6.0 causes Internet Explorer to encounter
a problem opening a pdf (streamed from a servlet) on some occasions. Changing the preference setting to open
in an acrobat window will allow the pdf (streamed
from a servlet) to open without a problem.



This problem DID NOT exist in Acrobat Reader 5.1.



The details of the error message are as follows:



Error signature

AppName:
iexplore.exe

AppVer:
6.0.2800.1106

ModName: pdf.ocx

ModVer: 6.0.0.878

Offset: 001f196



Any help is very much appreciated.

Since the data can be opened in an acrobat window, but not
in the browser, I believe that the pdf I created is
OK but the activeX plug-in for Adobe Reader 6.0
and/or Internet Explorer is broken.



As I stated earlier, this only happens on occasion. The one common trait that these
exhibitions contain is a long URL. If the URL is short, the pdf opens without problem.



Has anyone else experienced this problem?



Derrick













This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


RE: Adobe Reader 6.0 problem

2003-07-11 Thread Koes, Derrick









Thanks Claudio and Celine.

I think neither of these are my problem.

My servlet is quite similar to the
FopServlet.java that comes with the binary distribution examples.



Content type is set to application/pdf and
the content length is set (which HTTPServlet will interpret as a Keep-Alive
connection). However, that's
all that is set in the response header.



Derrick





-Original Message-
From: Claudio De Bernardi
[mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:08
PM
To: [EMAIL PROTECTED]
Subject: Re: Adobe Reader 6.0
problem



I don't if the problem is similar to that I
experienced some time ago. I had problem with Adobe Acrobat Plugin and Explorer
(note that Netscape plugin and Acrobat window didn't have any problem).
With some pdf file (not all) streamed from servlet the only result I get was a
blank page. Sniffing the tcp packet I discovered that Explorer was waiting for
data while server terminated the connection. I had that problem only on a
JBoss/Linux platform, the same code running on Weblogic/Solaris worked fine ( I
think the actual difference was the XML parser ).
I noticed that the strange behaviour was related in some way to the
file size. I fixed it by adding a white background image with size
greater than 5K to the pdf page.
HTH
Claudio


Celine Murphy wrote:





Hi Derrick,











I was having a similar
problem recently and i fixed it my changing my header settings in the response.
They were Pragma, no-cache and Cache Control, no-cache. I changed them to use
an expiry date instead.





I hope this helps.











Celine



-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: 11 July 2003 16:06
To: '[EMAIL PROTECTED]'
Subject: Adobe Reader 6.0 problem

I've already posted this to the
Adobe forum, but I thought it couldn't hurt posting it here too.



Adobe Reader 6.0 causes Internet
Explorer to encounter a problem opening a pdf (streamed from a
servlet) on some occasions. Changing the preference setting to open in an
acrobat window will allow the pdf (streamed from a servlet) to open without a
problem.



This problem DID NOT exist in Acrobat
Reader 5.1.



The details of the error message are
as follows:



Error signature

AppName: iexplore.exe

AppVer: 6.0.2800.1106

ModName: pdf.ocx

ModVer: 6.0.0.878

Offset: 001f196



Any help is very much appreciated.

Since the data can be opened in an acrobat
window, but not in the browser, I believe that the pdf I created is OK but the
activeX plug-in for Adobe Reader 6.0 and/or Internet Explorer is broken.



As I stated earlier, this only
happens on occasion. The one common trait that these exhibitions contain
is a long URL. If the URL is short, the pdf opens without
problem.



Has anyone else experienced this
problem?



Derrick







This electronic transmission is strictly confidential
to Smith  Nephew and intended solely for the addressee. It may contain
information which is covered by legal, professional or other privilege. If you
are not the intended addressee, or someone authorized by the intended addressee
to receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this transmission.
If you have received this transmission in error, please notify the sender as
soon as possible and destroy this message.


_
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning
Services - powered by MessageLabs. For further information visit http://www.mci.com

This e-mail and any files transmitted with it are
confidential and intended solely for the use of the individual or entity to
whom they are addressed. If you are not the intended recipient, you should not
copy, retransmit or use the e-mail and/or files transmitted with it and should
not disclose their contents. In such a case, please notify [EMAIL PROTECTED] and
delete the message from your own system. Any opinions expressed in this e-mail
and/or files transmitted with it that do not relate to the official business of
this company are those solely of the author and should not be interpreted as
being endorsed by this company.









This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


dicom images

2003-06-05 Thread Koes, Derrick

Has anyone been able to include dicom images in a pdf generated with fo?




This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: dicom images

2003-06-05 Thread Koes, Derrick

Right, as in Digital Imaging and Communications in Medicine.
Yes, I've seen some folks on the JAI-interest list (Java Advanced Imaging)
state they have done exactly that--convert them to jpeg on png.

Thanks,
Derrick

-Original Message-
From: Konstantin Priblouda [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2003 11:58 AM
To: [EMAIL PROTECTED]
Subject: Re: dicom images


--- Koes, Derrick [EMAIL PROTECTED]
wrote:
 
 Has anyone been able to include dicom images in a
 pdf generated with fo?

You mean DICOM? Medical imaging? Which modality?
I think you will have to extract them and convert
image data to some sane format befire includeing
them into pdf. 

regards,

=
[ Konstantin Pribluda ( ko5tik ) ]
Zu Verstärkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] für die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
[ http://www.pribluda.de ]

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Page number

2003-04-08 Thread Koes, Derrick


Remove child fo:block id=last-page/ from the fo:static-content parent.
Add fo:block id=last-page to parent fo:flow as the one and only child
(encompasses every other child that is currently in fo:flow).  Add the end
tag for the fo:block just before the /fo:flow.

BTW, this is an FAQ.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 08, 2003 1:29 PM
To: [EMAIL PROTECTED]
Subject: RE: Page number


Here is the error

org.apache.fop.apps.FOPException: The id last-page already exists in this
document
  at
org.apache.fop.datatypes.IDReferences.createID(IDReferences.java:77)
  at org.apache.fop.fo.flow.Block.layout(Block.java:148)
  at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:73)
  at
org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSequence.j
ava:428)
  at
org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.j
ava:392)
  at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:358)
  at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
  at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
  at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
  at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown

Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.fop.apps.Driver.render(Driver.java:457)

Here is the style sheet
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.1 xmlns:xsl
=http://www.w3.org/1999/XSL/Transform; xmlns:fo
=http://www.w3.org/1999/XSL/Format; exclude-result-prefixes=fo
  xsl:output method=xml version=1.0 omit-xml-declaration=no indent
=yes/
  !-- = --
  !-- root element: projectteam --
  !-- = --
  xsl:template match=Report
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set

 fo:simple-page-master master-name=simpleA4 page-height=21cm
page-width=29.7cm margin-top=2cm margin-bottom=2cm margin-left=1cm
margin-right=1cm
 writing-mode=tb-rl
fo:region-before extent=4cm/
   fo:region-after extent=1cm/
  fo:region-body margin-top=2cm margin-bottom=2cm/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence initial-page-number=1 language=en country=us
master-reference=simpleA4

  fo:static-content  flow-name=xsl-region-before
 fo:block font-size=16pt   space-after=2mmxsl:value-of select
=projectname/
/fo:block
 fo:block font-size=10pt  color=red  font-style=italic  space-after
=5mmxsl:value-of select=reportInfo/
/fo:block
/fo:static-content 
fo:static-content flow-name=xsl-region-after
  fo:block text-align=centerpage
fo:page-number/fo:page-nuber-citation ref-id=last-page/ of/fo:block

fo:block id=last-page/
/fo:static-content

fo:flow flow-name=xsl-region-body



 fo:block font-size=8pt  space-after=2mm
fo:table table-layout=auto  text-align=center
xsl:variable name=reportNamexsl:value-of select
=reportname//xsl:variable
 xsl:choose
xsl:when test=$reportName='RPT_USER_ACCESS'xsl:call-template name
=RPT_USER_ACCESS//xsl:when
 xsl:when test=$reportName='RPT_TECH_ACCESS'xsl:call-template name
=RPT_TECH_ACCESS//xsl:when
 xsl:when test=$reportName='RPT_NB_BY_DISPCDE'xsl:call-template name
=RPT_NB_BY_DISPCDE//xsl:when
xsl:when test=$reportName='RPT_NB_BY_NR'xsl:call-template name
=RPT_NB_BY_NR//xsl:when
xsl:when test=$reportName='RPT_FOR_TOTAL'xsl:call-template name
=RPT_FOR_TOTAL//xsl:when
/xsl:choose


   fo:table-header reference-orientation=90 
 fo:table-row text-align=center background-color=#A1A1A1
xsl:for-each select=ColumnHeader
fo:table-cell border-style=solid border-width=0.2mm padding =1.5mm

  fo:blockxsl:value-of select=text()//fo:block
  /fo:table-cell
 /xsl:for-each
 /fo:table-row
/fo:table-header
   fo:table-body reference-orientation=90  
xsl:apply-templates select=Row/
  /fo:table-body
/fo:table
  /fo:block

/fo:flow

  /fo:page-sequence
/fo:root
  /xsl:template
  !-- = --
  !-- child element: member --
  !-- = --
  xsl:template match=Row
fo:table-row
xsl:for-each select=Column
  fo:table-cell border-style=solid   border-width=0.2mm padding
=1.5mm
fo:block
  xsl:value-of select=text()/
/fo:block
  /fo:table-cell
  

RE: Page number--Correction

2003-04-08 Thread Koes, Derrick

Correction:

Add fo:block id=last-page/ as the LAST child of fo:flow, don't wrap
everything.  My apologies.



-Original Message-
From: Koes, Derrick 
Sent: Tuesday, April 08, 2003 1:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Page number



Remove child fo:block id=last-page/ from the fo:static-content parent.
Add fo:block id=last-page to parent fo:flow as the one and only child
(encompasses every other child that is currently in fo:flow).  Add the end
tag for the fo:block just before the /fo:flow.

BTW, this is an FAQ.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 08, 2003 1:29 PM
To: [EMAIL PROTECTED]
Subject: RE: Page number


Here is the error

org.apache.fop.apps.FOPException: The id last-page already exists in this
document
  at
org.apache.fop.datatypes.IDReferences.createID(IDReferences.java:77)
  at org.apache.fop.fo.flow.Block.layout(Block.java:148)
  at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:73)
  at
org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSequence.j
ava:428)
  at
org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.j
ava:392)
  at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:358)
  at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
  at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
  at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
  at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown

Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.fop.apps.Driver.render(Driver.java:457)

Here is the style sheet
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.1 xmlns:xsl
=http://www.w3.org/1999/XSL/Transform; xmlns:fo
=http://www.w3.org/1999/XSL/Format; exclude-result-prefixes=fo
  xsl:output method=xml version=1.0 omit-xml-declaration=no indent
=yes/
  !-- = --
  !-- root element: projectteam --
  !-- = --
  xsl:template match=Report
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set

 fo:simple-page-master master-name=simpleA4 page-height=21cm
page-width=29.7cm margin-top=2cm margin-bottom=2cm margin-left=1cm
margin-right=1cm
 writing-mode=tb-rl
fo:region-before extent=4cm/
   fo:region-after extent=1cm/
  fo:region-body margin-top=2cm margin-bottom=2cm/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence initial-page-number=1 language=en country=us
master-reference=simpleA4

  fo:static-content  flow-name=xsl-region-before
 fo:block font-size=16pt   space-after=2mmxsl:value-of select
=projectname/
/fo:block
 fo:block font-size=10pt  color=red  font-style=italic  space-after
=5mmxsl:value-of select=reportInfo/
/fo:block
/fo:static-content 
fo:static-content flow-name=xsl-region-after
  fo:block text-align=centerpage
fo:page-number/fo:page-nuber-citation ref-id=last-page/ of/fo:block

fo:block id=last-page/
/fo:static-content

fo:flow flow-name=xsl-region-body



 fo:block font-size=8pt  space-after=2mm
fo:table table-layout=auto  text-align=center
xsl:variable name=reportNamexsl:value-of select
=reportname//xsl:variable
 xsl:choose
xsl:when test=$reportName='RPT_USER_ACCESS'xsl:call-template name
=RPT_USER_ACCESS//xsl:when
 xsl:when test=$reportName='RPT_TECH_ACCESS'xsl:call-template name
=RPT_TECH_ACCESS//xsl:when
 xsl:when test=$reportName='RPT_NB_BY_DISPCDE'xsl:call-template name
=RPT_NB_BY_DISPCDE//xsl:when
xsl:when test=$reportName='RPT_NB_BY_NR'xsl:call-template name
=RPT_NB_BY_NR//xsl:when
xsl:when test=$reportName='RPT_FOR_TOTAL'xsl:call-template name
=RPT_FOR_TOTAL//xsl:when
/xsl:choose


   fo:table-header reference-orientation=90 
 fo:table-row text-align=center background-color=#A1A1A1
xsl:for-each select=ColumnHeader
fo:table-cell border-style=solid border-width=0.2mm padding =1.5mm

  fo:blockxsl:value-of select=text()//fo:block
  /fo:table-cell
 /xsl:for-each
 /fo:table-row
/fo:table-header
   fo:table-body reference-orientation=90  
xsl:apply-templates select=Row/
  /fo:table-body
/fo:table
  /fo:block

/fo:flow

  /fo:page-sequence
/fo:root
  /xsl:template
  !-- = --
  !-- child element: member

RE: font color

2003-04-07 Thread Koes, Derrick

color

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, April 07, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: font color

Hai,
I need to add color to the text,is there any attribute like font-color,if
not could anyone tell me how to do it.

Thanks
vikram



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Total memory used negative

2003-03-20 Thread Koes, Derrick

What does it mean if my debug log shows total memory used as negative?
Overflow?  Can I change the memory parameters for FOP specifically if I'm
running embedded?

Thanks,
Derrick




This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: java.lang.NoClassDefFoundError: org/apache/avalon/framework/l ogger/Logger

2003-03-20 Thread Koes, Derrick








Does the org.apache.avalon.framework.logger.Logger
class exist in the Avalon jar? Unjar it and check.



-Original Message-
From: Tammy Feichtel
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March
 20, 2003 11:34 AM
To: [EMAIL PROTECTED]
Subject:
java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger



I need some help here.



I am trying to write a java app
which uses the FOP libraries. The classpath contains the following:



C:\j2sdk1.4.1\bin\javaw.exe
-classpath
C:\Centocor\java\classes;C:\j2sdk1.4.1\jre\lib\charsets.jar;C:\j2sdk1.4.1\jre\lib\jaws.jar;C:\j2sdk1.4.1\jre\lib\jce.jar;C:\j2sdk1.4.1\jre\lib\jsse.jar;C:\j2sdk1.4.1\jre\lib\rt.jar;C:\j2sdk1.4.1\jre\lib\sunrsasign.jar;C:\j2sdk1.4.1\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.1\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.1\jre\lib\ext\localedata.jar;C:\j2sdk1.4.1\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.1\jre\lib\ext\classes12.zip;C:\Jakarta\FOP\fop-0.20.4\lib\avalon.jar;C:\Jakarta\FOP\fop-0.20.4\lib\batik.jar;C:\Jakarta\FOP\fop-0.20.4\lib\xml-apis.jar;C:\Jakarta\FOP\fop-0.20.4\build\fop.jar;C:\Jakarta\FOP\fop-0.20.4\lib\xercesImpl-2.0.1.jar;C:\Jakarta\FOP\fop-0.20.4\lib\xalan-2.3.1.jar
CLStudyTest



However, when I try to create an instance
of Driver or user the MessageHandler.setScreenLogger() function I get a 

java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger error at runtime. The code is
compiling fine which means I have to have my classpath set correctly.



Any idea why I am getting this error
at runtime? 



I am using FOP 0.20.4 and Java 1.4.1
(as you can see in the classpath). 



P.S. Avalon.jar was renamed in one
attempt to make sure the long filename was not an issue since I am running in
Windows.



Thanks!



Tammy













This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


RE: java.lang.NoClassDefFoundError: org/apache/avalon/framework/l ogger/Logger

2003-03-20 Thread Koes, Derrick











Are you doing something like:



Log4JLogger log4j = new Log4JLogger(logger);

MessageHandler.setScreenLogger(log4j);





-Original Message-
From: Tammy Feichtel
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2003
12:05 PM
To: [EMAIL PROTECTED]
Subject: RE:
java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger



I went ahead and upgrated
to 0.20.5rc2 and believe it or not am STILL getting the same error.



Here is my new classpath:

C:\j2sdk1.4.1\bin\javaw.exe
-classpath C:\Centocor\java\classes;C:\j2sdk1.4.1\jre\lib\charsets.jar;C:\j2sdk1.4.1\jre\lib\jaws.jar;C:\j2sdk1.4.1\jre\lib\jce.jar;C:\j2sdk1.4.1\jre\lib\jsse.jar;C:\j2sdk1.4.1\jre\lib\rt.jar;C:\j2sdk1.4.1\jre\lib\sunrsasign.jar;C:\j2sdk1.4.1\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.1\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.1\jre\lib\ext\localedata.jar;C:\j2sdk1.4.1\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.1\jre\lib\ext\classes12.zip;C:\Jakarta\FOP\fop-0.20.5rc2\build\fop.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\ant-1.5.1.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\avalon-framework-cvs-20020806.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\batik.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\xalan-2.4.1.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\xercesImpl-2.2.1.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\xml-apis.jar
CLStudyTest





This makes no
sense! Ideas anyone?



Tammy





-Original Message-
From: Adam Shelley
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March
 20, 2003 11:34 AM
To: [EMAIL PROTECTED]
Subject: RE:
java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger





Hello,











I just spend a
bunch of time trying to get 0.20.4 up and running. Save yourself some
greif and upgrade to 0.20.5rc2. Its package is more complete and it works
pretty much out of the box. 











i think 0.20.4
needs to be recompiled to include the avalon logging mechanism (i could be
wrong). but ne ways, yeah upgrade.











-Adam





-Original
Message-
From: Tammy Feichtel
[mailto:[EMAIL PROTECTED]
Sent: March 20, 2003 8:34 AM
To: [EMAIL PROTECTED]
Subject:
java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

I need some help here.



I am trying to write a java app
which uses the FOP libraries. The classpath contains the following:



C:\j2sdk1.4.1\bin\javaw.exe
-classpath C:\Centocor\java\classes;C:\j2sdk1.4.1\jre\lib\charsets.jar;C:\j2sdk1.4.1\jre\lib\jaws.jar;C:\j2sdk1.4.1\jre\lib\jce.jar;C:\j2sdk1.4.1\jre\lib\jsse.jar;C:\j2sdk1.4.1\jre\lib\rt.jar;C:\j2sdk1.4.1\jre\lib\sunrsasign.jar;C:\j2sdk1.4.1\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.1\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.1\jre\lib\ext\localedata.jar;C:\j2sdk1.4.1\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.1\jre\lib\ext\classes12.zip;C:\Jakarta\FOP\fop-0.20.4\lib\avalon.jar;C:\Jakarta\FOP\fop-0.20.4\lib\batik.jar;C:\Jakarta\FOP\fop-0.20.4\lib\xml-apis.jar;C:\Jakarta\FOP\fop-0.20.4\build\fop.jar;C:\Jakarta\FOP\fop-0.20.4\lib\xercesImpl-2.0.1.jar;C:\Jakarta\FOP\fop-0.20.4\lib\xalan-2.3.1.jar
CLStudyTest



However, when I try to create an
instance of Driver or user the MessageHandler.setScreenLogger() function I get
a 

java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger error at runtime. The code is
compiling fine which means I have to have my classpath set correctly.



Any idea why I am getting this error
at runtime? 



I am using FOP 0.20.4 and Java 1.4.1
(as you can see in the classpath). 



P.S. Avalon.jar was renamed in one
attempt to make sure the long filename was not an issue since I am running in
Windows.



Thanks!



Tammy















This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


RE: Where is BufferManager

2003-03-20 Thread Koes, Derrick










Successfully using 0.20.5rc2 embedded with
J2SDK 1.4.1_01 from Sun.



-Original Message-
From: Tammy Feichtel
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March
 20, 2003 1:59 PM
To: [EMAIL PROTECTED]
Subject: Where is BufferManager



Hi all!



I have just upgrated to FOP
0.20.5rc2 and when I try to create an instance of the Driver class in my java
app I get the following runtime error:



java.lang.NoClassDefFoundError:
org/apache/fop/system/BufferManager

 at
org.apache.fop.apps.Driver.init(Driver.java:194)



The fop.jar for this release does
not contain a system/BufferManager class file. It doesn't even contain a
system folder! 

I've searched through the fop
source code and can find no reference to BufferManager. I'm very
confused...



Is anyone currently using 0.20.4rc2 with java 1.4.1?
Does this stuff actually work???



I'm getting really frustrated and wonder it I
should abandon ship at this point!



Any help would be greatly appreciated.



Tammy











This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


RE: Where is BufferManager

2003-03-20 Thread Koes, Derrick

Post the code snippet.

-Original Message-
From: Tammy Feichtel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2003 2:17 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Where is BufferManager

I don't even have an old release on my system!  The only other version I
had installed was 0.20.4 and I removed the entire directory.  Here is
the class path I am using:

C:\j2sdk1.4.1\bin\javaw.exe -classpath
C:\Centocor\java\classes;C:\j2sdk1.4.1\jre\lib\charsets.jar;C:\j2sdk1.4.
1\jre\lib\jaws.jar;C:\j2sdk1.4.1\jre\lib\jce.jar;C:\j2sdk1.4.1\jre\lib\j
sse.jar;C:\j2sdk1.4.1\jre\lib\rt.jar;C:\j2sdk1.4.1\jre\lib\sunrsasign.ja
r;C:\j2sdk1.4.1\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.1\jre\lib\ext\ldapsec.
jar;C:\j2sdk1.4.1\jre\lib\ext\localedata.jar;C:\j2sdk1.4.1\jre\lib\ext\s
unjce_provider.jar;C:\j2sdk1.4.1\jre\lib\ext\classes12.zip;C:\Jakarta\FO
P\fop-0.20.5rc2\build\fop.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\ant-1.5.1
.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\avalon-framework-cvs-20020806.jar;
C:\Jakarta\FOP\fop-0.20.5rc2\lib\batik.jar;C:\Jakarta\FOP\fop-0.20.5rc2\
lib\xalan-2.4.1.jar;C:\Jakarta\FOP\fop-0.20.5rc2\lib\xercesImpl-2.2.1.ja
r;C:\Jakarta\FOP\fop-0.20.5rc2\lib\xml-apis.jar CLStudyTest

Tammy 
 
 

-Original Message-
From: Victor Mote [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Where is BufferManager

Tammy Feichtel wrote:

-- Start --
I have just upgrated to FOP 0.20.5rc2 and when I try to create an
instance
of the Driver class in my java app I get the following runtime error:

java.lang.NoClassDefFoundError: org/apache/fop/system/BufferManager
at org.apache.fop.apps.Driver.init(Driver.java:194)

The fop.jar for this release does not contain a system/BufferManager
class
file.  It doesn't even contain a system folder!
I've searched through the fop source code and can find no reference to
BufferManager.  I'm very confused.

-- End --

system/BufferManager is from an old release of FOP. Check your
environment
to see if you have an old version in your classpath.

Victor Mote


-
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]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
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 Koes, Derrick

Version 0.20.5rc2

I suspected as much about the thread safety, the class containing the driver
code was a singleton.  I'm changing that now.

Thanks,
Derrick

-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 2:52 AM
To: [EMAIL PROTECTED]
Subject: Re: org.apache.fop.apps.FOPException: root must be root element

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]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Installing to FOP / Tomcat

2003-03-12 Thread Koes, Derrick

The web.xml in the web app does not adhere to the DTD.

Look at the servlet-mapping element in the web.xml.  Is it and its children
in the correct place according to the DTD?



-Original Message-
From: Adam Shelley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 3:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Installing to FOP / Tomcat

Hello, thanks for  the reply Phillip

I just reinstalled tomcat (to start from scratch) and placed the war file in
the webapps dir. This seemed to get processed right away then I copied the
supporting .jar files into the web-inf/lib directory.

This is from the log file.

2003-03-12 12:21:05 StandardHost[localhost]: Installing web application at
context path /fop from URL file:C:/Program Files/Apache Group/Tomcat
4.1/webapps/fop
2003-03-12 12:21:05 WebappLoader[/fop]: Deploying class repositories to work
directory C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\fop
2003-03-12 12:21:05 WebappLoader[/fop]: Deploy class files /WEB-INF/classes
to C:\Program Files\Apache Group\Tomcat 4.1\webapps\fop\WEB-INF\classes
2003-03-12 12:21:05 StandardManager[/fop]: Seeding random number generator
class java.security.SecureRandom
2003-03-12 12:21:05 StandardManager[/fop]: Seeding of random number
generator has been completed
2003-03-12 12:21:05 StandardWrapper[/fop:default]: Loading container servlet
default
2003-03-12 12:21:05 StandardWrapper[/fop:invoker]: Loading container servlet
invoker
2003-03-12 12:21:54 HTMLManager: list: Listing contexts for virtual host
'localhost'


This is from stderr.txt

INFO: Jk running ID=0 time=0/120  config=C:\Program Files\Apache
Group\Tomcat 4.1\conf\jk2.properties
Mar 12, 2003 12:21:05 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 26 column 23: The content of element type
servlet-mapping must match (servlet-name,url-pattern).
org.xml.sax.SAXParseException: The content of element type servlet-mapping
must match (servlet-name,url-pattern).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
3)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37
1)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30
5)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:1918)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8
51)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:1008)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
at org.apache.catalina.startup.HostConfig.run(HostConfig.java:1012)
at java.lang.Thread.run(Thread.java:536)

I couldn't find any reference to this in my mail list archives, bugzilla, or
the faq.  I know that its something that this is probably something to do
with an incomplete setup.  I have read that tomcat comes with detailed
instructions on howto install fop but i'm unable to locate this.

Any help would be appreciated.
oh yeah, right now i'm using fop-0.20.4

-Adam






-
To unsubscribe, 

last page, full page

2003-03-07 Thread Koes, Derrick

1.  Is there anyway to ensure the last page of my rendered PDF document is a
full page so that my background-image is seen in its entirety?

2.  Is there anyway I can guarantee a block is the next item, moving up the
page, from the footer, even if it means it will be on a page by itself?

Thanks,
Derrick


This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



hyphenation pattern

2003-02-27 Thread Koes, Derrick

I'm using 0.20.5rc2.  I'm getting:

Couldn't find hyphenation pattern en_US
Error building hyphenation tree for language en

I didn't get this with version 0.20.4.
Can anyone help?

Thanks,
Derrick





This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



specify a base URL for images

2003-01-28 Thread Koes, Derrick

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.

Any info regarding this would be appreciated.

Thanks,
Derrick
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



background-image question

2003-01-28 Thread Koes, Derrick

Interestingly enough, putting the background-image attribute as a real
attribute of fo:block in the transform produces the desired result.
However, adding it with an xsl:attribute element does not produce the
desired result.
I think I need to use xsl:attribute because I want to add/set the attribute
conditionally.

1.  works:

fo:block background-image=draft.jpg


2.  does not work:

fo:block
xsl:attribute name=background-image
  xsl:value-of select=draft.jpg/
/xsl:attribute

Any help is appreciated.
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



fo:inline question follow-up

2003-01-22 Thread Koes, Derrick

I see the example at http://www.zvon.org/HowTo/Output/howto_jj_fo_13.html
works as expected.  Also, I've created a small example that works as
expected (see small_example.zip).  However, in the production code, the
text in the inline gets the correct attributes (color and so on), but always
indents and starts a new line.  I cannot figure out why this is happening.
The large example uses FOP embedded through the Driver class.  I've included
XML and the two stylesheets in large_example.zip.
I can't figure out why this example differs.  It uses the same
substitute.xsl as the small example.

Any help would be appreciated.


Thanks,
Derrick
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


attachment: small_example.ZIP
attachment: large_example.ZIP
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Error using images served by tomcat through apache HTTP server

2003-01-22 Thread Koes, Derrick

I'm running Tomcat 4.1.18 with Apache HTTP 2.0.43 and FOP 0.20.4.

In a browser I can get to http://koes/dora/images/draft.jpg (after
authenticating).  However, if I authenticate to my web application and try
to render an fo to pdf using this url for a background-image, I get the
following error.

Error creating background image: No ImageReader for this type of image
(http://koes/dora/images/draft.jpg)+

If I simply serve the file through Apache HTTP (i.e. don't include it in my
web application), everything works fine.

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?

Thanks,
Derrick

This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



fo:inline question

2003-01-21 Thread Koes, Derrick

The fop processor puts content in fo:inline elements on a new line (also
indents). Shouldn't the purpose of this tag be to actually put something in
line with something else?
I don't think I understand the purpose of fo:inline.   Can someone explain?
Also, can someone explain how to actually put text inline?

Thanks,
Derrick

This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



FOPException 921600

2002-11-22 Thread Koes, Derrick

Does anyone know what this exception is or how it is caused?

Thanks,
Derrick




/**
 * Contact information.
 */
public class INFO
{
static final String NAME = Derrick Koes;
String title = Senior Software Engineer;
String company = Smith + Nephew Endoscopy;
URL companyURL = new URL(
http://www.smith-nephew.com/index-flash.html;);
String aolIM = codeauthor2001;
String EMAIL = [EMAIL PROTECTED];
String PHONE = (978) 749-1288;
String FAX = (978) 749-1487;
}

This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: FOPException 921600

2002-11-22 Thread Koes, Derrick

Poor mime typing was the cause for this error.
Perhaps the PDF renderer could handle illegal mime types a little better.

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 22, 2002 2:13 AM
To: [EMAIL PROTECTED]
Subject: RE: FOPException 921600

On Fri, 2002-11-22 at 02:21, Koes, Derrick wrote:
 
 Oh yeah, here's the stack trace.  Looks like ArrayIndexOutOfBounds, but
I've
 been running this same code for weeks.  Hmmm...

This looks like a threading problem with image loading.
I believe this is fixed and will be solved in the next release.

Please only show the Fop relevant part of the stacktrace, the rest is
useless information.
ie.

 java.lang.ArrayIndexOutOfBoundsException: 921600
   at org.apache.fop.image.BmpImage.loadImage(Unknown Source)
   at org.apache.fop.image.AbstractFopImage.getBitmaps(Unknown Source)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Repeating table headers accross pages

2002-11-06 Thread Koes, Derrick

Set table attribute table-omit-header-at-break=false.

-Original Message-
From: Evraire, Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 06, 2002 1:55 PM
To: '[EMAIL PROTECTED]'
Subject: Repeating table headers accross pages

Hi,
  how would I get table headers to repeat across pages using FOP?

  Thanks!

  Jonathan Evraire
  jonevrai at justice.gc.ca
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


RE: breaking paragraphs and lines

2002-11-05 Thread Koes, Derrick
You may want to try white-space-collapse=false as an attribute on your
fo:block.  There are also other white space attributes that may be useful.
I'm not sure if all are supported in fop 0.20.4.


-Original Message-
From: Stephen Haberman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 05, 2002 1:00 AM
To: [EMAIL PROTECTED]
Subject: breaking paragraphs and lines

Hi,

After much debate between whether I'd pick up LaTeX or XML-FO as my
preferred environment for writing reports and the like, I went with
XML-FO, FOP specifically, and have been enjoying it so far (ah, clean
separate of data and presentation).

However, I've run into a small problem I thought some others might be
able to shed some light on.

One of the things I liked about LaTeX was that two newlines were taken
to mean separate paragraphs. As far as reproducing this before with FOP
using XML/XSLT is that I'd probably have to:

1) Use Xalan to stitch XML/XSLT together. All text blocks would be in
generic fo:blocks, e.g.:

fo:block color=grey
  fo:block
text

text
  /fo:block
/fo:block

2) Run this result through a text manipulation program to replace all of
the \n\n with /fo:blockfo:block to simulate a paragraph break.

3) Run this result through FOP.

I'm thinking this will work once I get some scripts setup for it, but
I'm just wondering if there is a better, within-FO/FOP way?

Also, a subset of this problem is that I was wanting to have a little
bit of control over breaking from the XML file, e.g. force a line break.
E.g.:

content
   This is a long line that I want brokenbr/here.
/content

So I was going to use the same approach of a double fo:block to put
the text in, but then have a match against br and insert an artificial
block/inline-container type thing. The problem is that the match against
br has to look like:

xsl:template match=br
  xsl:text disable-output-escaping=yes
lt;/fo:blockgt;
lt;fo:blockgt;
  /xsl:text
/xsl:template

With straight Xalan, the result is exactly what I want... the closing,
opening fo:block comes out in XML just like the previous opening
fo:block. However, FOP seems to ignore this
disable-output-escaping=yes attribute and I see the literal
/fo:blockfo:block text in the PDF instead of it being interpreted
it as FO commands. If I run the result of Xalan on the same XML/XSLT
file through FOP via -fo, then it works great.

Any insight into either of the two issues I'm pondering would be greatly
appreciated. This is fun stuff.

Thanks,
Stephen
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.