RE: FOP Javadoc
At http://xml.apache.org/fop/dist/ in any file (just unzip it). Zdenek -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 4:56 PM To: [EMAIL PROTECTED] Subject: Re: FOP Javadoc To clarify...I'm looking for javadoc on the 'org.apache.fop.apps' package as used by the provided servlet example. - Original Message - From: "John M. Corro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 14, 2001 7:52 AM Subject: FOP Javadoc > Is there a Javadoc for the FOP classes? Looked around in the distro and > online and did find documentation, but was wondering if there was a nice > standard Javadoc anywhere. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: launch Acrobat Reader invisible
We selected PDF as the target document format I thought that only AcrobatReader can be used to print. Are there also other options without changing the current XSL stylesheets (that define the fo xml)? thanks Zdenek -Original Message- From: Alistair Hopkins [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: RE: launch Acrobat Reader invisible I think that all this system calling is a bit dodgy if you don't control the target environment: I looked at it for a while but felt that I couldn't prevent things going badly confusing for the user if they had any deviance in their setup. And it obviously throws away the cross-platform nature of things. Nobody interested in the AWTRenderer / PrinterJob pure java approach? Even lets you do the print dialog thing... Al -Original Message- From: Ralph LaChance [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: Re: launch Acrobat Reader invisible At 10:46 AM 12/13/01 +0100, you wrote: >this document is "C:\Programfiler\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" >/p /h "%1". Hmmm, my installation is set up to use DDE to pass a filename to acrobat. The DDE command is FilePrintSilentEx("%1") ' Best, -Ralph LaChance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Send a document directly to a printer
Hi Echevarría, this looks like the program fails on FileOutputStream out = new FileOutputStream(printer); from API: FileNotFoundException - if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason Try first to save the output to a regular file on the disk in order to eliminate the FOP fault. regards Zdenek -Original Message-From: Gorka Echevarría [mailto:[EMAIL PROTECTED]]Sent: Sunday, November 18, 2001 10:19 AMTo: Lista-FOPSubject: Send a document directly to a printer Hi, Can anybody say me how can I send a document directly to a printer? I have tried the following code to render the document to a printer using "Driver.RENDER_PCL", but it doesn´t work (i get the exception "file.io.FileNotFoundException") String printer ="ntsrv_200//prn1"; FileOutputStream out = new FileOutputStream(printer); Driver driver = new Driver(input.getInputSource(),out); driver.setRenderer(Driver.RENDER_PCL); driver.run(); out.close(); Thanks in advance Gorka Echevarría VélezBILBOMÁTICA, S.A.[EMAIL PROTECTED]
launch Acrobat Reader invisible
Hi, If anyone is interested in printing via Acrobat: this is the way of calling Acrobat Reader (only version 4) in the background in order to print a document. AcroRd32.exe /p /n /h filename The Acrobat does the job and exits. If anyone has an idea how to do it in later versions I would appreciate it. Zdenek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: RE: reuse of PDFRenderer
Hi John, thanks for reply. Could you give me a hint - what version of fop are you using and the code pattern of the usage. I use very simple approach: ByteArrayOutputStream out = new ByteArrayOutputStream(); Driver driver = new Driver(); driver.setRenderer(RENDER_PDF); driver.setInputSource(foSrc); // defined previously driver.setOutputStream(out); driver.run(); // save FileOutputStream objF = new FileOutputStream(pstrFile); out.writeTo(objF); objF.close(); out.close(); This approach locks some memory even if I call gc() and exit the function. thanks Zdenek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 8:44 PM To: [EMAIL PROTECTED] Subject: Re: reuse of PDFRenderer I don't have a solution, but I also would like to reuse or reset the driver. I remember seeing that reset had problems, any fixes or a way to make it work? I'm generating 70,000 pdf's with pretty complex fo markup and would like to speed up the process anyway possible. I have no memory problems (avg pdf is less than 10 pages), I would just like to speed up the rendering by reusing the driver. JohnPT fop-dev-return-12113-jthaemlitz=oreillyauto.com@XML. APACHE.ORG To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 12/12/01 09:31 AM cc: Dvorák Zdenek <[EMAIL PROTECTED]> Please respond to fop-dev Subject: reuse of PDFRenderer Hi, this is my first time contacting the mail group. If you received this mail in error, I am sorry. I am building a batch printing application. This application processes huge number of documents. I did some measurements and found out that every document beeing processed (Driver.run()) locks about 6 kB of memory. I invastigated the problem and did a pool of Driver objects to reuse them. This doesn't help since the Driver object by starting the setRenderer() method instantiates a PDFRenderer and this is the object that after beeing finished still keeps allocated memory. If I reset() the driver to perform another transformation it creates a corrupted PDF since the renderer was not reinitialized (my opinion). Does anyone have an idea how to make a pool of Driver, PDFRenderer objects or how to get rid of the memory leak? thanks Zdenek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
reuse of PDFRenderer
Hi, this is my first time contacting the mail group. If you received this mail in error, I am sorry. I am building a batch printing application. This application processes huge number of documents. I did some measurements and found out that every document beeing processed (Driver.run()) locks about 6 kB of memory. I invastigated the problem and did a pool of Driver objects to reuse them. This doesn't help since the Driver object by starting the setRenderer() method instantiates a PDFRenderer and this is the object that after beeing finished still keeps allocated memory. If I reset() the driver to perform another transformation it creates a corrupted PDF since the renderer was not reinitialized (my opinion). Does anyone have an idea how to make a pool of Driver, PDFRenderer objects or how to get rid of the memory leak? thanks Zdenek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]