Re: FOP not properly working in UNIX environment
Thank you very much! It works fine now! J.Pietschmann wrote: Am 11.11.2011 23:41, schrieb Gabriele Falace: This servlet works fine in a Windows environment, but when the web app is deployed in a Unix environment I get the following error. ... It looks like FOP needs some graphics library but it fails to found them. FOP indeed uses some Java classes which are typically not available on servers without a graphics environment. This can be resolved by running the JVM in headless mode, usually by adding -Djava.awt.headless=true to the JVM command line. Search the web for how to start Weblogic this way. J.Pietschmann - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/FOP-not-properly-working-in-UNIX-environment-tp32828794p32853367.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Question about PDF API used in FOP v0.95
On 15/11/2011 15:27, 刘寅 wrote: Hi Liu, Hello,now I am doing a research about document format transformation and I have got a lot of help from FOP. But there is a problem that I can't distinguish the PDF API from FOP source v0.95. I want to know how many PDF APIs used in FOP v0.95, who are they and where are there(in which package)? I have successfully run all the examples in fop-0.95-src on my computer and read some of FOP API Document. Also I have tried to find my answers from FAQs but I can't find any. So could you help me or give me some advices ? FOP doesn't publish a API to manipulate PDF. FOP can generate a PDF from XSL-FO.If you just want to build a PDF from another source using Java API then take a look at the PDF Box project. Looking forward to your reply, thank you very much! Sincerely, liu Yin Thanks, Chris - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Using PCL renderer on Unix
On 16/11/2011 04:28, Mrutyunjay wrote: Hi, I am trying to generate PCL output using FOP 1.0 on a Unix (HP-UX 11.23 Itanium) system. I also need to use custom fonts in the PCL output, but the generated PCL does not use the custom fonts. The Custom fonts that you want to use with PCL need to be installed on the Operating System. In Windows this means copying the font to c:\windows\fonts. You need to speak to your local Unix Admin to help figure out how to do this on a Unix environment. Or maybe someone else on this list will know. The same thing is working fine if I generate PCL on my Windows system. Could you please let me know if it needs some specific configrtion for PCL renderer to use custom fonts when executed in Unix environment. Thanks, Chris Thanks regards, Mrutyunjay - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Question about PDF API used in FOP v0.95
The original FOP project was for transforming XSLFO into a PDF. Then other features were added, to transform XSLFO into other outputs including PCL, image files, and direct printouts. Now there is a new feature to FOP which is most useful to us, to create a PDF by drawing to a Graphics object as if drawing to a screen. The question of where is the API is a bit confusing. The source is on the site (http://xmlgraphics.apache.org/fop/). Old Javadocs are on the web and new ones can be created from the source. AFAIK FOP cannot read in or manipulate existing PDFs. I would suggest trying the pdfbox project for that. -Original Message- From: Chris Bowditch [mailto:bowditch_ch...@hotmail.com] Sent: Wednesday, November 16, 2011 5:02 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Question about PDF API used in FOP v0.95 On 15/11/2011 15:27, 刘寅 wrote: Hi Liu, Hello,now I am doing a research about document format transformation and I have got a lot of help from FOP. But there is a problem that I can't distinguish the PDF API from FOP source v0.95. I want to know how many PDF APIs used in FOP v0.95, who are they and where are there(in which package)? I have successfully run all the examples in fop-0.95-src on my computer and read some of FOP API Document. Also I have tried to find my answers from FAQs but I can't find any. So could you help me or give me some advices ? FOP doesn't publish a API to manipulate PDF. FOP can generate a PDF from XSL-FO.If you just want to build a PDF from another source using Java API then take a look at the PDF Box project. Looking forward to your reply, thank you very much! Sincerely, liu Yin Thanks, Chris - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Using PCL renderer on Unix
You can also install your fonts directly into an fop installation-specific directory by specifying the base directory in you fop_config.xml. Start here http://xmlgraphics.apache.org/fop/1.0/configuration.html#general-elements On 11/16/2011 03:04 AM, Chris Bowditch wrote: On 16/11/2011 04:28, Mrutyunjay wrote: Hi, I am trying to generate PCL output using FOP 1.0 on a Unix (HP-UX 11.23 Itanium) system. I also need to use custom fonts in the PCL output, but the generated PCL does not use the custom fonts. The Custom fonts that you want to use with PCL need to be installed on the Operating System. In Windows this means copying the font to c:\windows\fonts. You need to speak to your local Unix Admin to help figure out how to do this on a Unix environment. Or maybe someone else on this list will know. The same thing is working fine if I generate PCL on my Windows system. Could you please let me know if it needs some specific configrtion for PCL renderer to use custom fonts when executed in Unix environment. Thanks, Chris Thanks regards, Mrutyunjay - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Using PCL renderer on Unix
Mrutyunjay mrutsaha at techmahindra.com writes: Hi, I am trying to generate PCL output using FOP 1.0 on a Unix (HP-UX 11.23 Itanium) system. I also need to use custom fonts in the PCL output, but the generated PCL does not use the custom fonts. The same thing is working fine if I generate PCL on my Windows system. Could you please let me know if it needs some specific configrtion for PCL renderer to use custom fonts when executed in Unix environment. Thanks regards, Mrutyunjay Thanks Rob and Chris, In our case, the X11 system is not enabled, is it required to have X11 enbled for PCL to pick up the fonts from the fonts server? or is it OK even if X11 is not enbled, but as long as the fonts are copied in the TrueType fonts directory, will PCL renderer be able to pick up those? Thanks regards, Mrutyunjay - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: PDF encryption and PDF image extension
The examples/fo/basic/images.fo example works well if you add -noprint to fop. That is: cd examples/fo/basic fop -noprint -fo images.fo -pdf images-noprint.pdf The end result shows the images and has Print disabled. So I don't think it is a FOP issue Luis On 11/16/11 7:12 PM, Matthias Reischenbacher wrote: Hi, when generating a PDF file with any of the PDF encryption parameters (noprint, nocopy etc.) PDF images (loaded by Jeremias' PDF image extension) are not displayed. Is this a limitation of the plugin or perhaps PDFbox or am I doing something wrong? See also the attached PDF files showing the issue. Thanks, Matthias - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: PDF encryption and PDF image extension
As stated in my original message, I'm embedding other images in PDF format with the PDF image extension. So the mentioned example fo file doesn't show my issue because no PDF images are used there. Thanks anyway for your response, Matthias On 16.11.2011 20:32, Luis Bernardo wrote: The examples/fo/basic/images.fo example works well if you add -noprint to fop. That is: cd examples/fo/basic fop -noprint -fo images.fo -pdf images-noprint.pdf The end result shows the images and has Print disabled. So I don't think it is a FOP issue Luis On 11/16/11 7:12 PM, Matthias Reischenbacher wrote: Hi, when generating a PDF file with any of the PDF encryption parameters (noprint, nocopy etc.) PDF images (loaded by Jeremias' PDF image extension) are not displayed. Is this a limitation of the plugin or perhaps PDFbox or am I doing something wrong? See also the attached PDF files showing the issue. Thanks, Matthias - To unsubscribe, e-mail:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail:fop-users-h...@xmlgraphics.apache.org
FOP: How to add a custom page type to PCL renderer.
Hi, I am trying to print a document with custom size (width:3in height:2in) but when I use the FOP to generate the PCL file, I am getting the following warning: Paper type could not be determined. Falling back to: Legal. Is there a way to add custom paper types to be used by the PCL renderer? Thanks in advance,