<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Arial;}
h1
        {margin-top:12.0pt;
        margin-right:0pt;
        margin-bottom:3.0pt;
        margin-left:0pt;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:Arial;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.Style1, li.Style1, div.Style1
        {margin-top:12.0pt;
        margin-right:0pt;
        margin-bottom:3.0pt;
        margin-left:0pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:Arial;
        font-weight:bold;}
p.style10, li.style10, div.style10
        {margin-top:12.0pt;
        margin-right:0pt;
        margin-bottom:3.0pt;
        margin-left:0pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:Arial;
        font-weight:bold;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.c9y6tc1
        {color:blue;}
span.cluy21
        {color:#EA8F0F;}
span.c18yc01
        {color:#D00020;}
span.c5m9s01
        {color:#000090;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 77.95pt 72.0pt 77.95pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman";color:navy'>I’m
posting this again with hope that someone can help me with my problem…</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>I am using the XEP to generate PDF documents with some jpg images in
them. XEP is being called from Apache Cocoon using the Cocoon Serializer
provided by RenderX. XSL-FO is generated in the Cocoon pipeline and is them
applied to the serializer. Below is an example of a FO Block used to generate
an image.<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'><</span></font><font
size=2 color="#ea8f0f" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#EA8F0F'>fo:block</span></font><font size=2
color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>></span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<font color=blue><span style='color:blue'><</span></font><font
color="#ea8f0f"><span style='color:#EA8F0F'>fo:external-graphic </span></font><font
color="#d00020"><span style='color:#D00020'>content-width=</span></font><font
color="#000090"><span style='color:#000090'>"1.0in"</span></font><font
color="#d00020"><span style='color:#D00020'> src=</span></font><font
color="#000090"><span style='color:#000090'>"url(http://localhost/ImagePath/ImageName1.jpg)"</span></font><font
color="#d00020"><span style='color:#D00020'> border=</span></font><font
color="#000090"><span style='color:#000090'>"1pt solid black"</span></font><font
color="#d00020"><span style='color:#D00020'>/</span></font><font color=blue><span
style='color:blue'>></span></font><br>
<font color=blue><span style='color:blue'><</span></font><font
color="#ea8f0f"><span style='color:#EA8F0F'>/fo:block</span></font><font
color=blue><span style='color:blue'>></span></font> <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>The PDF document gets generated perfectly fine most of the time.
However, if I generate a PDF and then generate the PDF again with an image of a
different size, the PDF that gets generated will have an invalid image (all
scrambled or I get an error when the pdf is opened with Acrobat Viewer).<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>I believe the problem is occurring because there is some kind of
caching occurring in the XEP Cocoon Serializer. There may be a way for me to
disable the caching for this serializer, however, I don’t know how to do
it. Can someone tell me how or suggest another reason for my problem?
This problem does not occur if I use XEP from a command line.<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Below is XML showing the serializer map I am using.<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><map:serializers default="html"><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'> <map:serializer mime-type="application/pdf"
name="fo2pdf" src="com.renderx.xepx.cocoon.Serializer"><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'> <parameter name="com.renderx.xep.CONFIG"
type="string" value="/Program
Files/RenderX/XEP/xep.xml"/><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'> </map:serializer><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'></map:serializers><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Jerry J<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
</div>
</body>
</html>