Jakub Gwóźdź created FOP-2613:
---------------------------------

             Summary: afp:resource-level="print-file" ignored for SVGs in AFP 
files
                 Key: FOP-2613
                 URL: https://issues.apache.org/jira/browse/FOP-2613
             Project: FOP
          Issue Type: Bug
          Components: image/svg
    Affects Versions: 2.1
            Reporter: Jakub Gwóźdź


The workaround on 
org.apache.fop.render.afp.AFPImageHandlerSVG#setDefaultToInlineResourceLevel 
causes all GOCA SVGs to be INLINE, as it is called from
 
{code:title=/org/apache/fop/render/afp/AFPImageHandlerSVG.java:85|borderStyle=solid}
        AFPDataObjectInfo info = createDataObjectInfo();
        assert (info instanceof AFPGraphicsObjectInfo);
        AFPGraphicsObjectInfo graphicsObjectInfo = (AFPGraphicsObjectInfo) info;
        AFPResourceInfo resourceInfo = graphicsObjectInfo.getResourceInfo();
        setDefaultToInlineResourceLevel(graphicsObjectInfo);
{code}

and since "info" is a freshly created object here and not read from original 
tag, it always has resourceInfo.levelChanged() set to false.

my code is:
{code:xml}
<fo:external-graphic background="transparent" height="0.4in"
                                         content-width="scale-to-fit"
                                         content-height="scale-to-fit"
                                         
src="url('classpath:/fop/images/logo.svg')"
                                         afp:resource-level="print-file"
                    />
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to