mittwald / typo3-web2pdf

A TYPO3 extension for rendering content as PDF
GNU General Public License v2.0
18 stars 20 forks source link

Add svg support and local anchors #26

Closed kpurrmann closed 8 years ago

martin-helmich commented 8 years ago

I'm still having a few difficulties understanding how links in the HTML/PDF document should be handled in general.

Here's just some thoughts on how I intuitively think this should work:

  1. Links to external documents on the same domain. In general, I suppose it would be best if all href's in the HTML document were absolute so that they still work when the document is rendered to an offline PDF (i.e. convert <a href="/index.php?id=123"> to <a href="http://example.com/index.php?id=123>). I'd bet money that there's some obscure TypoScript option that does exactly that.
  2. Intra-document links. These should either contain only the fragment part of the URL (which should work in the PDF without any hassle) or the exact same document URL + fragment part (in which case the document URL should be stripped out).

@pstranghoener, is that assumption correct? What's the intended behaviour here?

kpurrmann commented 8 years ago

See #29