out of memory error

2006-08-03 Thread Madala, Leena \(GE Healthcare, consultant\)








Hello team,



Im facing similar issue. Im
getting out of memory error, when trying to generate a report.

I have checked FAQ and tried all the
options provided there



I tried increasing Java virtual memory to
1024M and also removed page citation in the report generated. I also tried with
new beta version of fop.jar.

It didnt help.



Report which is to be generated will
generate approximately 70 pages for 40 records in database. It works fine for
40 records.

We have to generate a similar report for
700 records. Report doesnt contain any images. It has table for every 2
pages.

Please help me resolve the issue.



Thanks for your time



Thanks  Regards,
Leena Madala












Re: Problem with java virtual machine from ibm

2006-08-03 Thread Danelaw

it is, the question is that i dont want (i can not :S) change anything
in the lib of jre, can i change de version of xalan or xerces by code?

with this it does NOT works:
# BEGIN writeEnvironmentReport(Revision: 1.31): Useful stuff
found:  version.DOM.draftlevel=2.0fd
java.class.path=/home/oscar/fop/fop-0.20.5/build/fop.jar:/home/oscar/fop/fop-0.20.5/lib/xercesImpl-2.2.1.jar:/home/oscar/fop/fop-0.20.5/lib/xalan-2.4.1.jar
version.JAXP=1.1 or higher
java.ext.dirs=/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ext
# BEGIN Listing XML-related jars in: foundclasses.sun.boot.class.path 
xml.jar-apparent.version=xml.jar present-unknown-version
xml.jar-path=/home/oscar/sources/IBMJava2-142/bin/../jre/lib/xml.jar
#- END Listing XML-related jars in: foundclasses.sun.boot.class.path -
version.xerces2=XML4J 4.3.3
version.b2bxml=1.2.1
version.xerces1=not-present
version.xalan2_2=XSLT4J Java 2.6.3
version.xalan1=not-present
version.ant=not-present
java.version=1.4.2
version.DOM=2.0
version.crimson=not-present
sun.boot.class.path=/home/oscar/sources/IBMJava2-142/bin/../jre/lib/core.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/graphics.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/security.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/server.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/xml.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/charsets.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmorbapi.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmorb.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjsseprovider.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjssefips.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmcertpathprovider.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjcefw.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjgssprovider.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmpkcs.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjaaslm.jar
version.SAX=2.0
version.xalan2x=XSLT4J Java 2.6.3
#- END writeEnvironmentReport: Useful properties found: -
# YAHOO! Your environment seems to be OK.

with this it works:


# BEGIN writeEnvironmentReport($Revision: 1.14 $): Useful stuff found: 
version.DOM.draftlevel=2.0fd
java.class.path=/home/oscar/fop/fop-0.20.5/build/fop.jar:/home/oscar/fop/fop-0.20.5/lib/xercesImpl-2.2.1.jar:/home/oscar/fop/fop-0.20.5/lib/xalan-2.4.1.jar
version.JAXP=1.1
java.ext.dirs=/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ext
# BEGIN Listing XML-related jars in: foundclasses.sun.boot.class.path 
xml.jar-apparent.version=not-present
xml.jar-path=WARNING. Classpath entry:
/home/oscar/sources/IBMJava2-142/bin/../jre/lib/xml.jar does not exist
#- END Listing XML-related jars in: foundclasses.sun.boot.class.path -
version.xerces2=Xerces-J 2.2.1
version.xerces1=not-present
version.xalan2_2=Xalan Java 2.4.1
version.xalan1=not-present
version.ant=not-present
java.version=1.4.2
version.DOM=2.0
version.crimson=not-present
sun.boot.class.path=/home/oscar/sources/IBMJava2-142/bin/../jre/lib/core.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/graphics.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/security.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/server.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/xml.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/charsets.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmorbapi.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmorb.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjsseprovider.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjssefips.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmcertpathprovider.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjcefw.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjgssprovider.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmpkcs.jar:/home/oscar/sources/IBMJava2-142/bin/../jre/lib/ibmjaaslm.jar
version.SAX=2.0
version.xalan2x=Xalan Java 2.4.1
#- END writeEnvironmentReport: Useful properties found: -
# YAHOO! Your environment seems to be OK.




On 8/2/06, Chris Bowditch [EMAIL PROTECTED] wrote:

Danelaw wrote:

 the fo files generated with xalan are different, but i dont know why
 they are different :S

Most likely because the JDK comes bundled with xerces and xalan. Sun
bundles a different version to IBM. Probably best to place the version
of xalan and xerces shipped with FOP and copy them to the lib/endorsed
folder of your JDK/JRE.

Chris

snip/




-
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: latest build

2006-08-03 Thread Rick Roen
Yes Jeremias, I did get the FOP extension for Barcode4j working in my test
environment.

I hope to deploy it next week, but so far it is much easier to use when
embedded into the XSLT.

I'd be happy to send the extension to anyone who needs it (assuming it is
the only change they need to embed the bar codes).

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 02, 2006 9:53 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: latest build

Should be fixed now: http://svn.apache.org/viewvc?rev=428037view=rev

I hope you managed to compile Barcode4J in the meantime, so you can use
the FOP extension instead of working with pregenerated PNG images. That
will be much more efficient.

On 27.07.2006 15:59:06 Rick Roen wrote:
 I downloaded and built FOP from the SVN yesterday (26-07-2006).
  
 The build appeared successful and I copied all the files into my working
 folder.
  
 Now when I do a PDF that contains png graphics (barcodes generated from
 BarCode4j) they turn out as fuzzy unreadable images.
  
 I have attached a pdf and a png to demonstrate.
  
 Did something break with rendering png images in this build, I was using a
 build from 02-06-2006 before this.
  
 I am viewing with Adobe Reader 7.0 on an XP pro SP2 box.
  
 Thanks,
  
 Rick



Jeremias Maerki


-
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: Allow commenting in Adobe reader

2006-08-03 Thread Steinar Bang
[Revisiting a thread from April, quoting everything because of gmane
 expiration of this list, new stuff at the end]

 Steinar Bang [EMAIL PROTECTED]:

 Jeremias Maerki [EMAIL PROTECTED]:
 As far as I know Acrobat Reader does not allow highlighting and adding
 notes. You need at least Acrobat Standard for that:
 http://www.adobe.com/products/acrobat/matrix.html

 See the second FAQ here:
  http://www.adobe.com/products/acrobat/acrrfaq.html

 Also the online help of Adobe Reader 7 indicates that it has a comment
 toolbar that will be visible if the PDF allows it.  It looks like
 Adobe Acrobat is the only piece of software that is able to make a PDF
 file allow it (see below).

 By default, FOP does not prohibit annotation for the PDF it creates.
 Only if you encrypt the PDF and set the right switches will this
 functionality be disabled.

 Yes, that's what I figured out during last night's googling.

 See http://www.renderx.net/lists/xep-support/4108.html

 It looks like Adobe disabled the annotation/commenting feature of
 Adobe Reader when going from version 5 to version 6.  And the only
 thing that can make Adobe Reader 6 and 7 show this feature, is someone
 applying a digital signature on the PDF file.

Now I've installed Adobe Acrobat Professional 7.08.

When I open a PDF file created by FOP in Acrobat Professional, and
enable commenting, and then save it back, and then try opening it in
Adobe Reader 7, I get a dialog with the following warning:
   This document contained certain rights to enable special
features in Adobe Reader.  The document has been
changed since it was created and these rights are no
longer valid.  Please contact the author for the original
version of this document.

And except that Adobe Reader says that You can attach files to this
documents, I haven't been able to find any commenting facilities.

I have tried saving back to the original file, and I have tried saving
to a new file.

Does anyone know what I'm doing wrong?  Is there a workaround?

Thanx!


- Steinar


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



Commercial Documents

2006-08-03 Thread andyrob_24_7
Are people using FOP to generate pdf documents for commercial purposes? How 
successful has this been. What are the cost savings of this route?

thanks

Andy

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/topic.html

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



Re: out of memory error

2006-08-03 Thread Jeremias Maerki
Leena,

you don't say what FOP version you're using, but would you please get
the latest code (FOP Trunk) from SVN and recheck if you get any
improvements? I've just committed a fix for a memory-leak which might
improve your situation. Please report back on the results.

On 03.08.2006 09:06:34 Madala, Leena \(GE Healthcare, consultant\) wrote:
 Hello team,
  
 I'm facing similar issue. I'm getting out of memory error, when trying
 to generate a report.
 I have checked FAQ and tried all the options provided there...
  
 I tried increasing Java virtual memory to 1024M and also removed page
 citation in the report generated. I also tried with new beta version of
 fop.jar.
 It didn't help.
  
 Report which is to be generated will generate approximately 70 pages for
 40 records in database. It works fine for 40 records.
 We have to generate a similar report for 700 records. Report doesn't
 contain any images. It has table for every 2 pages.
 Please help me resolve the issue.
  
 Thanks for your time
  
 Thanks  Regards,
 Leena Madala


Jeremias Maerki


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



Re: Commercial Documents

2006-08-03 Thread Jay Bryant
Yessir. I help my clients create systems that use FOP for commercial output.

We've been hugely successful, producing books as large as 2,000 pages. My
clients and their customers are very satisfied with FOP (though many of them
don't even know FOP exists, since it works behind the scenes from their
point of view).

The cost of any software package is trivial next to the cost of development
time (both writing and programming), so I can't say that using an
open-source processor like FOP saves a lot of money. However, I can't
sufficiently emphasize the value of the FOP community. I've never yet had an
issue for which I didn't get help in a hurry. Generally, if I have a
question, I post and get more than one helpful message within 24 hours
(often much less). I never get that kind of support from any company, even
though I paid for their product.

Jay Bryant
Bryant Communication Services

- Original Message - 
From: [EMAIL PROTECTED]
To: fop-users@xmlgraphics.apache.org
Sent: Thursday, August 03, 2006 11:33 AM
Subject: Commercial Documents


 Are people using FOP to generate pdf documents for commercial purposes?
How successful has this been. What are the cost savings of this route?

 thanks

 Andy

 --
 This message was sent on behalf of [EMAIL PROTECTED] at
openSubscriber.com

http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/topic.html

 -
 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: Commercial Documents

2006-08-03 Thread Rick Roen
Yes, I am using it in a product for occasional reports, but mostly for sales
documents.  

I used to do them in HTML, but the inconsistencies between one browser and
another drove me nuts!  PDF may not be exactly the same everywhere, but it
is a huge improvement.

I like the pdf format because I can email, fax or print from within the
program and all customers can read it.

So far, creating the documents is rather slow (up to 10 seconds/doc), but I
am doing this on a Windows network using a batch file.  As I get a bit
deeper into Java I can probably speed things up, but I'm a complete novice
now.

The support on this NG is VERY good.

The advantage for my client is to be able to email invoices rather than send
by mail.  In the US, and probably everywhere, postage is becoming a major
expense.

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 03, 2006 10:33 AM
To: fop-users@xmlgraphics.apache.org
Subject: Commercial Documents

Are people using FOP to generate pdf documents for commercial purposes? How
successful has this been. What are the cost savings of this route?

thanks

Andy

--


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



Re: line breaks in TOC in latest FOP 0.92

2006-08-03 Thread J.Pietschmann

Daniel Naber wrote:
Or is it actually the same problem as the 
page-number-citation bug that makes the numbers not aligne nicely?


Chances are it is the same problem.  Check with a document which
generates three digit page numbers (perhaps more digits), for example.
by adding another page sequence with a high initial page number.

The fix in 0.20.5 involves a calling layout routines from the renderer,
which is difficult to implement the same way in the 0.9x architecture.
Perhaps someone will come up with a clever solution to the problem.

Meanwhile, all you can do is implementing a two stage process: render
to the XML area format, grab somehow the resolved page numbers, then
render again to the intended target format using the resolved page
numbers instead of the page number citations.

J.Pietschmann

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



Font Metrics for Adobe Acrobat Asian Font Pack

2006-08-03 Thread David Nesbitt
Title: Font Metrics for Adobe Acrobat Asian Font Pack






Does anyone know how to create FOP font metrics for the Adobe Acrobat Asian font pack? I would like to support Japanese documents without having to embed the Microsoft TrueType fonts in the PDF file.

Alternatively, does anyone have a font metrics file they can send to me?

Thanks in advance.

Regards,
Dave