[publican-list] [Bug 491782] New: .xml and images in sub-directories break images in PDF

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 24 02:25:35 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: .xml and images in sub-directories break images in PDF

https://bugzilla.redhat.com/show_bug.cgi?id=491782

           Summary: .xml and images in sub-directories break images in PDF
           Product: Red Hat Enterprise Linux 5
           Version: 5.2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: low
         Component: publican
        AssignedTo: jfearn at redhat.com
        ReportedBy: dmison at redhat.com
         QAContact: ecs-dev-list at redhat.com
                CC: publican-list at redhat.com
    Classification: Red Hat
    Target Release: ---


Description of problem:
if you have .xml files in a subdirectory of en-US and images in a subdirectory
of en-US/images publican creates an incorrect path for the included image in
the PDF.  It works fine with the html output

This is needed to try to maintain some source compatibility with some JBoss
project docs

Version-Release number of selected component (if applicable):
0.44

How reproducible:
everytime

Steps to Reproduce:
1. Paths:
my_book/en-US/Chapter1/Section-A.xml
my_book/images/Chapter/figure.png

2. 
within my_book/en-US/Chapter1/Section-A.xml

<section>
    <title>A</title>

    <figure>
        <title>some figure</title>
        <mediaobject>
            <imageobject>
                <imagedata fileref="images/Chapter1/figure.png" />
            </imageobject>
        </mediaobject>
    </figure> 
</section>

3. make clean pdf-en-US


Actual results:
No image in PDF and this error message: 

Mar 24, 2009 12:07:35 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: Chapter-1/Chapter-1/images/Chapter-1/figure.png
Mar 24, 2009 12:07:35 PM org.apache.fop.render.pdf.PDFRenderer putImage
SEVERE: Image not found: Chapter-1/Chapter-1/images/Chapter-1/figure.png


Expected results:
Image in PDF

Additional info:
This can be worked around in the PDF by supplying the path as: 
../../images/Chapter1/figure.png , but this breaks the html

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the publican-list mailing list