[ http://jira.codehaus.org/browse/MPPDF-24?page=all ]

Lukas Theussl updated MPPDF-24:
-------------------------------

    Attachment: fo-body.patch
                project2fo.patch

Attached two patches for project2fo and fo-body that make internal links work. 
It might be considered a bit hacky and probably needs some more testing but it 
works fine for me and I am not going to spend more time on it so I make it 
available. Here's what I've done:

- so far internal links used the generate-id() function which does not work for 
relative links because the id is unique for the current xml node only. I have 
replaced that by an algorithm that constructs the id from the path of the 
current document and the href tag. As such, links should work in complete 
analogy to the xdoc plugin. In particular, id's are also generated for 
sub/section names (replacing spaces by underscores, again like xdoc).

- the patch for fo-body also contains a fix for MPPDF-13: the location of image 
sources is constructed relative to the location of the current document.

- the patch for projet2fo also contains a fix for MPPDF-36 with the solution I 
indicated there, ie, the footer is simply ignored. It might be included somehow 
in the future, but this at least avoids a complete failure of the pdf 
generation.

- a minor fix: in fo-body, the baseline-shift tag in the "sup" template 
(superscripts) was set to "sup", it should be "super". However, sub- and 
superscripts still don't work even though they are marked as implemented by the 
fop project (http://xml.apache.org/fop/compliance.html). This is probably a fop 
issue so I didn't want to open a JIRA issue for that.

Finally MPPDF-23 also seems to be fixed, even though this was the case already 
before applying my patches.

> Internal links failed
> ---------------------
>
>          Key: MPPDF-24
>          URL: http://jira.codehaus.org/browse/MPPDF-24
>      Project: maven-pdf-plugin
>         Type: Bug
>     Versions: 2.3
>  Environment: Maven xdoc 1.9
>     Reporter: Vincent Siveton
>     Assignee: Arnaud HERITIER
>     Priority: Minor
>  Attachments: fo-body.patch, project2fo.patch
>
>
> Internal links (in blue with Acrobat) are not usefull.
> If we click on it, nothing occurs.
> This issue doesnt prevent the other functionnalities.
> If this issue is too hard to repair, maybe just remove the internal links in 
> the generated PDF...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to