Loading...
 
Skip to main content

mpdf: internal links to headers of the same page don't work in the created PDF

Status
Open
Subject
mpdf: internal links to headers of the same page don't work in the created PDF
Version
20.x
Category
  • Bug
Feature
PDF
Resolution status
New
Submitted by
Benjamin
Lastmod by
Benjamin
Rating
(1)
Description

When using the [#Header|Header] in a Wiki page and referencing to a header on the same page it works as intended but not after exporting it with mpdf to a PDF these links are blue and clickable but don't serve their purpose of jumping to their anchors.

Workarounds are using the Plugin ALINK/ANAME which only opens the browser with the given page which is not quite the intention of having it exported as PDF. Another one is using the HTML Plugin which worked for the page and to jump to the anchor in the PDF but is troublesome for further maintaining multiple bigger pages with this Syntax.

I have the assumption that tiki is referencing the ID attribute for the anchor in the A Tag rather than a name tag which mpdf actually supports.
https://github.com/mpdf/mpdf/issues/1055

Importance
10 high
Easy to solve?
8
Priority
80
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7234
Created
Wednesday 15 January, 2020 14:14:08 UTC
by Benjamin
LastModif
Wednesday 29 April, 2020 13:02:51 UTC


Show PHP error messages