[
http://jira.codehaus.org/browse/MPDF-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172412#action_172412
]
Marco Huber commented on MPDF-7:
--------------------------------
Found out something more about why [../images/overview.png] is not going.
I debugged and see in the {{FoAggregateSink}} (from _doxia-module-fo_) that the
{{docName}} attribute is "./overview\overview".
The call of the {{resolveLinkRelativeToBase}} returns the wrong value.
The code line
{{String base = docName.substring( 0, docName.lastIndexOf( "/" ) );}}
return ".".
Because of the backslash in the docName the string is cutted after the ".".
> Relative images are not recognised in sub folders
> -------------------------------------------------
>
> Key: MPDF-7
> URL: http://jira.codehaus.org/browse/MPDF-7
> Project: Maven 2.x PDF Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: Maven 2.1.0, Windows XP Pro, Java 1.6
> Reporter: Marco Huber
> Attachments: output-2009-04-07.log, output.log, pdf-test.fo,
> pdf-test.zip
>
>
> If parts of the documentation located in sub folders under the "apt" folder
> images are not recognised
> Example:
> (file under "apt/administration/overview.apt")
> // SNIPPED START >>
> Following the overview
> [./../images/overview.png]
> // << SNIPPED END
> The created html pages are correct. If I create the pdf I got
> ERROR [org.apache.fop.fo.FONode:83] 2009-04-03 11:35:05,250 - Image not
> found: ./../images/overview.png
> I enclosed an sample project that shows the issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira