Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10245

When using "src =" skin: // resources / .... "in the content pdf it does not take the image of the current skin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • 4.5.0
    • 4.2.10
    • Skins
    • 4.5 RC2

      How to reproduce :

      In a project with many skins

      Add the template in your xsl article2pdf-main.xsl (for exemple) in all skins

      	<xsl:template name="xsl-region-before">
          	<fo:static-content flow-name="xsl-region-before">
      		<fo:table table-layout="fixed" height="2cm">
                 <fo:table-column column-width="10cm"/>
                 <fo:table-body>
                     <fo:table-row>
                         <fo:table-cell margin-top="0.5cm" margin-left="1cm" margin-right="0cm" padding-right="6pt">
                         		<fo:block margin-top="20px" margin-bottom="20px" bottom="10cm" top="0cm" padding-bottom="50px" width="50px">
                         			<fo:external-graphic src="skin://resources/img/logo-pdf-content.png" content-width="scale-to-fit" width="100" margin-bottom="20px"/>
                         		</fo:block>
                         </fo:table-cell>
                     </fo:table-row>
                 </fo:table-body>
             </fo:table>
             </fo:static-content>
      </xsl:template>
      

      The logo displayed is not that of the current skin. It takes the first cached logo

            Unassigned Unassigned
            lbouziat Léa Bouziat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: