cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pe...@didm.co.uk
Subject Re: PDF in Cocoon 2.1.12 Tomcat
Date Tue, 06 Aug 2013 07:57:04 GMT

Thanks for the replies.

It appears that the fonts are OK and everything works except for
fo:instream-foreign-object

<fo:instream-foreign-object content-width="10px" content-height="10px"
start-indent="0.3cm">
   <svg xmlns="http://www.w3.org/2000/svg" width="15.5" height="15.5"
viewBox="0 0 15.5 15.5">
        <g>
                <rect width="14" height="14" x="1" y="1" rx="2" ry="2"
style="fill:#260F79; stroke:#260F79; stroke-width:0.7"/>
                 <text x="8" y="12" style="text-anchor:middle ;
fill:#ffffff ; font-family:Helvetica; font-size:12;
font-weight:bold">test</text>
        </g>
     </svg>
 </fo:instream-foreign-object>

If I delete the  <text............</text>  all OK and the rectangle is
displayed.

Its the  <text ...>test</text> that's causing the problem

Peter


On 02/08/2013 13:32, Andreas Kuehne wrote:
> Hi Peter,
>
> I would guess you are using fonts for the PDF that are available on
> Windows but not your Linux box, at least not by default.
> I remember a discussion on the iText list some month ago about a
> platform-neutral approach ... afaik the easy way out is to denote font
> families instead of a specific font. Please check the iText list for
> details.
>
> Greetings,
>
> Andreas


On 02/08/2013 10:03, Cédric Damioli wrote:
> Hi Peter,
>
> Which JRE do you use on your windows box and on your debian box ?
> Your problem seems to be related to fonts that are not found by the JRE.
> If you use openjdk on debian, you may try oracle jdk.
>
> Regards,
> Cédric
>
> Le 02/08/2013 10:47, Peter Sparkes a écrit :
>> Hi,
>>
>> I have an 2.1.12 application which produces some PDF pages.
>>
>> It works well on my windows machine, however, on my debian tomcat
server the pdf pages produce the following error
>>
>>
>> type Exception report
>>
>> message Servlet execution threw an exception
>>
>> description The server encountered an internal error (Servlet execution
threw an exception) that prevented it from fulfilling this request.
>>
>> exception
>> javax.servlet.ServletException: Servlet execution threw an exception
>>
>> root cause
>> java.lang.Error: Probable fatal error:No fonts found.
>> 	sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1087)
>> 	sun.font.FontManager.initialiseDeferredFont(FontManager.java:966)
>> 	sun.font.CompositeFont.doDeferredInitialisation(CompositeFont.java:254)
>> 	sun.font.CompositeFont.getSlotFont(CompositeFont.java:334)
>> 	sun.font.CompositeGlyphMapper.initMapper(CompositeGlyphMapper.java:81)
>> 	sun.font.CompositeGlyphMapper.<init>(CompositeGlyphMapper.java:62)
>> 	sun.font.CompositeFont.getMapper(CompositeFont.java:390)
>> 	sun.font.CompositeFont.canDisplay(CompositeFont.java:416)
>>
>>
>> Any Ideas Please
>>
>>
>> Peter
>>
>>
>> --
>> Cédric Damioli
>> CMS - Java - Open Source
>> www.ametys.or


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message