astefanutti / decktape

PDF exporter for HTML presentations
MIT License
2.19k stars 176 forks source link

Exported PDF has space when a line wraps #232

Closed antmarge closed 2 years ago

antmarge commented 3 years ago

I have a PDF with a line (a long link) that wraps to a new line. If copied from the browser slides, the link pastes as expected. However, in the exported PDF from deck tape, when the link is copied and pasted, it includes a space where the line wrapped.

Attached is a zip file with an example html file and the resulting pdf upon export with decktape. decktape

Any idea what's going on and how to fix it? Thank you!

badlink_example.zip

astefanutti commented 3 years ago

What PDF reader do you use?

It seems the presentation doesn't actually contain a link, but readers, like Mac OS Preview, automatically add a link. I've tried with Preview, and the link indeed contains an extra space. So I'd rather think it's an issue with some readers, that do not handle wrapping links correctly.

antmarge commented 3 years ago

I see thanks for the input, I hadn't thought of it being a viewer issue. I use Preview. Others do the same thing. Adobe Acrobat interprets it as a new line.

On Tue, Jul 13, 2021 at 7:44 AM Antonin Stefanutti @.***> wrote:

What PDF reader do you use?

It seems the presentation doesn't actually contain a link, but readers, like Mac OS Preview, automatically add a link. I've tried with Preview, and the link indeed contains an extra space. So I'd rather think it's an issue with some readers, that do not handle wrapping links correctly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/astefanutti/decktape/issues/232#issuecomment-879100890, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIC337H3VZWGFLE6QEDRBDTXQ7LNANCNFSM5AIGO56A .

astefanutti commented 2 years ago

Let me close this. Feel free to re-open if needed.