Re: Images and https
This is what I get when I try to connect .I am trying to pull an image from a secure site using fo:external-graphics tag. We have an Apache Web server infront of an IBM Websphere App server. The call for image is made by the App server during the conversion of XML to FOP . javax.net.ssl.SSLHandshakeException: unknown certificate at com.ibm.jsse.bg.a(Unknown Source) at com.ibm.jsse.bg.startHandshake(Unknown Source) at com.ibm.net.ssl.www.protocol.https.b.n(Unknown Source) at com.ibm.net.ssl.www.protocol.https.p.connect(Unknown Source) at com.ibm.net.ssl.www.protocol.https.r.connect(Unknown Source) at TestHttpsServlet.main(TestHttpsServlet.java:68) Regards Rohit J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] de cc: Subject: Re: Images and https 03/06/2005 07:15 PM Please respond to fop-user [EMAIL PROTECTED] wrote: I have a problem in retrieving images in FOP through https.Has anyone encountered this ? We are using WAS 5.1 and FOP 0.2.05. What problem do you actually have? There are lots of things which can go wrong with HTTPS. J.Pietschmann - 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: Images and https
The problem is very clear . The FOP transformation fails when the fo:external-graphics tag has a source to an image which is in secured site(ex: https:///someimage.jpg;. ) . Please let me know if you have any ideas for this. Thanks Rohit J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] de cc: Subject: Re: Images and https 03/07/2005 03:14 PM Please respond to fop-user [EMAIL PROTECTED] wrote: This is what I get when I try to connect .I am trying to pull an image from a secure site using fo:external-graphics tag. We have an Apache Web server infront of an IBM Websphere App server. The call for image is made by the App server during the conversion of XML to FOP . javax.net.ssl.SSLHandshakeException: unknown certificate at com.ibm.jsse.bg.a(Unknown Source) at com.ibm.jsse.bg.startHandshake(Unknown Source) at com.ibm.net.ssl.www.protocol.https.b.n(Unknown Source) at com.ibm.net.ssl.www.protocol.https.p.connect(Unknown Source) at com.ibm.net.ssl.www.protocol.https.r.connect(Unknown Source) at TestHttpsServlet.main(TestHttpsServlet.java:68) The error message already describes the problem: there is an unknown certificate in use. This most likely means the code in question ins't configured to find an appropriate trusted certificate for the root CA. Unfortunately, your problem description is still quite vague, it isn't clear whether this is a problem with the secure site or some client side code, or whether the secure site is actually under your control. Anyway, configuring HTTPS handling in Java ins't exactly the topic of this mailing list. I suggest isolating the problem (minimal Java code and processing setup, preferably *not* in an app server), and ask again in an appropriate Java forum. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Images and https
Hi, I have a problem in retrieving images in FOP through https.Has anyone encountered this ? We are using WAS 5.1 and FOP 0.2.05. Thanks Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Font and image problem
Hi, I have a strange problem.I have set some custom fonts in the userconfig.xml . In my java code I am using the org.apache.fop.configuration.Configuration.put(baseDir ,baseDir); code to set my base dir. The problem is the fonts are picked correctly but if there is any image in the xml source the transformer is not able to pick it since the above code changes the context path . Does any one have encountered similar problem ? Please help me in resolving this issue. I need both custom fonts and image . Thanks Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Out of Memory problem
Can we set the memory programmaticaly? Thanks Rohit Chris Bowditch [EMAIL PROTECTED] To: [EMAIL PROTECTED] otmail.com cc: Subject: Re: Out of Memory problem 02/24/2005 04:25 AM Please respond to fop-user Manisha Sathe wrote: I am trying for one Chinese PDF. When i do not make use of Arial Unicode MS font then i do not get this error. All chinese characters are displayed as #. Once i use this font then i get this error (even if it is just 2-3 pages long - sometimes at very beginning i get the 1 page report - after that even not that) I tried the the things mentined such as reduce the size of image, page sequence (do not know how to increase the JVM memory on fly) - also reset the Cache etc what ever given in docs, but still same. To increase JVM memory, just change your FOP.bat or whatever script starts your Java VM and specify command line parameter -Xmx256M. The default is 64Mb, which isnt sufficient due to the large number of glyphs in The Arial Unicode font. snip/ Chris - 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]
Out of Memory Error
Hi Anyone have an idea about how to increase memory for FOP programaticaly.I get Out of Memory error when I try to user the transform() Method of the Transformer Class Thanks Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bullets in FOP
Hi , How do I get bullets (Circle,Square and Filled Dot in FOP ) . Thanks Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bullets in FOP
Thanks Pascal :). Regards Rohit Pascal Sancho [EMAIL PROTECTED] To: [EMAIL PROTECTED] akoma.frcc: Subject: RE: Bullets in FOP 02/17/2005 09:01 AM Please respond to fop-user Hi, You can use: - either explicit character or character entity; - or glyph image (bitmap or svg). Characters that can replace wished bullets can be: #x2022; (filled circle); (this is part of standard font charsets) #x25a0; to #25f7; unicode page (geometric shapes) Caution: the used font must embed wished characters. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : jeudi 17 février 2005 14:40 How do I get bullets (Circle,Square and Filled Dot in FOP ) . - 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]
problem with br/ tag
Hi, I have an HTML content which I am converting to PDF using FOP.I have problem with the carriage retrun tag br/. The new lines does not appear in the PDF. Any one has any idea abt it ? Please reply. Thanks and Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font style problem
So does it mean that I create an xml file for every required ttf font file ? Regards Rohit Andreas L. DelmelleTo: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: ndora.beSubject: RE: Font style problem 11/30/2004 12:12 PM Please respond to fop-user -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I have all the fonts available in my System . But the fop does not pick up the right font while applying. snip / Is there anything wrong in the code. No. You probably want to take a closer look at: http://xml.apache.org/fop/fonts.html HTH! Greetz, Andreas - 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]
Font style problem
Hi I have all the fonts available in my System . But the fop does not pick up the right font while applying. Here is the code I have in XSLT xsl:template match=html:[EMAIL PROTECTED]'font-family:Times'] fo:inline font-family=Times xsl:apply-templates/ /fo:inline /xsl:template xsl:template match=html:[EMAIL PROTECTED]'font-family:Arial'] fo:inline font-family=Arial xsl:apply-templates/ /fo:inline /xsl:template xsl:template match=html:[EMAIL PROTECTED]'font-family:Times'] fo:inline font-family=Times xsl:apply-templates/ /fo:inline /xsl:template xsl:template match=html:[EMAIL PROTECTED]'font-family:Courier New'] fo:inline font-family=Courier xsl:apply-templates/ /fo:inline /xsl:template xsl:template match=html:[EMAIL PROTECTED]'font-family:Serif'] fo:inline font-family=Serif xsl:apply-templates/ /fo:inline /xsl:template xsl:template match=html:[EMAIL PROTECTED]'font-family:Andale Sans'] fo:inline font-family=Andale Sans xsl:apply-templates/ /fo:inline /xsl:template The XML looks like this . . p span style=font-family:Andale SansThis line information has font in Andale Sans above it. /span /p . .. Is there anything wrong in the code. What I am doing is trying to generate PDF for an XHTML content using an XSLT. Thanks and Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applying multiple styles using span tag problem
Thanks Adreas,I will work it from here. Its realy a fantastic idea. Regards Rohit Andreas L. DelmelleTo: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: ndora.beSubject: RE: Applying multiple styles using span tag problem 11/24/2004 05:57 PM Please respond to fop-user -Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] [Slight adjustment + addition:] xsl:template match=span fo:block xsl:apply-templates select=@style / /fo:block /xsl:template You can create an fo:block or an fo:inline here, depending on whether the span has any span ancestors, or better even, create a separate matching template for it. xsl:template match=@style xsl:param name=prop-string select=. / And to make this latter template a bit more generic --and to add a level of control over the generated property names/values--, you could provide a mapping of some sort in a separate XML or in a different namespace in the stylesheet... Greetz, Andreas - 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: Applying multiple styles using span tag problem
I am trying to write an XSLT-FO for generating PDF for the XHTML Content. Regards Rohit Andreas L. DelmelleTo: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: ndora.beSubject: RE: Applying multiple styles using span tag problem 11/24/2004 05:39 PM Please respond to fop-user -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, First of all, it may be worth mentioning that this question is actually better suited for an XSLT-related list. Furtermore... I have a span tag which looks like span style=font-family:Times;text-decoration:underlineThank you for investing in our services/span In my xsl-fo I have templates as xsl:template match=html:[EMAIL PROTECTED] ='text-decoration:underline'] snip / xsl:template match=html:[EMAIL PROTECTED]'font-family:Times;font-size:12pt'] | html:[EMAIL PROTECTED]'font-size:Normalpt'] snip / None of the above would be a match for the described span element. It would help if you could provide us with a more complete picture of what you're trying to do, but something like this may be of help: xsl:template match=span fo:block xsl:apply-templates select=@style xsl:with-param name=prop-string select=@style / /xsl:apply-templates /fo:block /xsl:template xsl:template match=@style xsl:param name=prop-string select='' / xsl:choose xsl:when test=contains($prop-string,';') xsl:attribute name={substring-before($prop-string,':')} xsl:value-of select=substring-before(substring-after( $prop-string,':'),';') / /xsl:attribute xsl:apply-templates select=. xsl:with-param name=prop-string select=substring-after($prop-string,';') / /xsl:apply-templates /xsl:when xsl:otherwise xsl:attribute name={substring-before($prop-string,':')} xsl:value-of select=substring-after($prop-string,':') / /xsl:attribute /xsl:otherwise /xsl:choose /xsl:template Hope this helps! Greetz, Andreas - 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]
Applying multiple styles using span tag problem
Hi I have a span tag which looks like span style=font-family:Times;text-decoration:underlineThank you for investing in our services/span In my xsl-fo I have templates as xsl:template match=html:[EMAIL PROTECTED]'text-decoration:underline'] fo:inline text-decoration=underline xsl:apply-templates/ /fo:inline /xsl:template xsl:template match=html:[EMAIL PROTECTED]'font-family: Times; font-size: 12pt']|html:[EMAIL PROTECTED]'font-size:Normalpt'] fo:block font-size=12pt font-family=Times xsl:apply-templates/ /fo:block /xsl:template But only one of them is getting applied.I want to know how both the styles can be applied recursively. Thanks and Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stylesheet creation - visual editor or text editor?
Hi , I am trying to create a style sheet so that the Header info appears only on page one. I want to know whether is it possible ? Appreciate your reply. Thanks and Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Header Help
Hi, Please help me out in fixing this header problem. I am trying to create an xsl for XHTML with an extra header tag in it. This represent the header. I want the header in the first page only .Rest of the pages should not contain the header. I have created the following style sheet. But it does not seems to work .Please help me out. Thanks and Regards Rohit ?xml version=1.0 encoding=UTF-8? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo =http://www.w3.org/1999/XSL/Format; xmlns:html =http://www.w3.org/1999/xhtml; version=1.0 xsl:output indent=yes/ !-- # -- xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set !-- MAJOR CHANGES START -- fo:simple-page-master master-name =firstpage page-height=11in page-width=8.5in margin-top=1.25in margin-bottom=1.0in margin-left=1.25in margin-right=1.25in fo:region-before region-name =firstheader extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-after extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-body margin-top=2.5cm margin-bottom=2.5cm / /fo:simple-page-master fo:simple-page-master master-name =restpages page-height=11in page-width=8.5in margin-top=1.25in margin-bottom=1.0in margin-left=1.25in margin-right=1.25in fo:region-before extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-after extent=2.0in margin-left=0.5in margin-right=0.5in/ fo:region-body margin-top=2.5cm margin-bottom=2.5cm / /fo:simple-page-master !-- MAJOR CHANGES END -- fo:page-sequence-master master-name=all fo:repeatable-page-master-alternatives fo:conditional-page-master-reference page-position =first master-reference=firstpage/ fo:conditional-page-master-reference page-position =rest master-reference=restpages/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=firstpage xsl:apply-templates/ /fo:page-sequence fo:page-sequence master-reference=restpages xsl:apply-templates/ /fo:page-sequence /fo:root /xsl:template !-- ##- title - -- xsl:template match=html:title /xsl:template !-- #- body - -- !-- MAJOR CHANGES START -- xsl:template match=html:body !-- The following static content renders the html:header tag within every pdf page -- fo:static-content flow-name=firstheader fo:block font-size={fontsize}pt font-family =serif line-height=10pt color=red xsl:apply-templates select=html:header/ /fo:block /fo:static-content !-- The following static content renders the html:footer tag within every pdf page -- fo:static-content flow-name=xsl-region-after fo:block text-align=center font-size={fontsize}pt font-family=serif line-height=10pt color=red xsl:apply-templates select=html:footer/ /fo:block !-- This block renders the page number -- fo:block text-align=right font-size=10pt font-family =serif Page fo:page-number/ /fo:block /fo:static-content !-- This flow applies all tenplates available to the body tags content -- !-- Attention: editor content must always be wraped e.g. by a p tag. plaintext in source view causes a fop error -- fo:flow flow-name=xsl-region-body font-family=Times font-size=12pt xsl:apply-templates select=html:body-content/ /fo:flow /xsl:template !-- MAJOR CHANGES END -- !-- #- paragraph - -- xsl:template match=html:p xsl:element name=fo:block xsl:attribute name =space-before.minimum10pt/xsl:attribute xsl:attribute name =space-before.maximum16pt/xsl:attribute xsl:attribute name =space-before.optimum14pt/xsl:attribute xsl:attribute name =space-after.minimum10pt/xsl:attribute