Giter VIP home page Giter VIP logo

Comments (6)

astefanutti avatar astefanutti commented on May 31, 2024

Hyperlinks are currently rendered as PDF link annotation with the URI action irrespective whether they happen to be internal links or not. This has been implemented as part of DeckTape development with vitallium/qtwebkit@ef91a25 and vitallium/qtbase@d50c481. This should be possible to detect internal links and have them rendered as GoTo action instead of URI, as defined in the PDF specification. I think wkhtmltopdf already provides something similar so that could be a start to provide support for it.

from decktape.

jonathanlilly avatar jonathanlilly commented on May 31, 2024

I agree, this would be a very useful feature!

from decktape.

gtolomei avatar gtolomei commented on May 31, 2024

Hello,

Sorry for jumping onboard this discussion, which apparently seems already closed.
Thanks to the strong support of @astefanutti I finally managed to generate good-looking pdf from RISE slideshow in Jupyter Notebook.
Here's the command I'm using at the moment to achieve that task:
> decktape rise http://localhost:8888/notebooks/{NOTEBOOK_NAME}.ipynb?token={TOKEN} --load-pause 5000 -s 1920x1080 ~/path/to/outputfile.pdf
Everything seems to work fine except for the hyperlinks included in my original slides. Those are correctly rendered in the final pdf (i.e., they appear as blue-colored and underlined) but unfortunately they are not clickable.
I've tried opening the generated pdf both with Preview and Acrobat Reader but in none of them hyperlinks work fine. That's why I'm guessing there might be something odd while processing those hyperlinks.
Instead, hyperlinks work smoothly when presenting my RISE slideshow on the web browser.
Any help here would be much appreciated.

Thanks Kindly,
Gabriele

from decktape.

astefanutti avatar astefanutti commented on May 31, 2024

@gtolomei I've added support for hyperlinks in version 2.2.0. Maybe you'll need to upgrade. This works for hyperlinks but not internal links.

from decktape.

gtolomei avatar gtolomei commented on May 31, 2024

Thanks a lot @astefanutti for your quick reply!
I've just updated decktape to the latest version (2.2.2) and (external) hyperlinks work like a charm!

P.S.: In my RISE slideshow I have some Markdown cells which are left "unrun" on purpose (i.e., suppose you want to show the actual content of a Markdown cell on a slide and in the next slide you show how this actually renders); however, it seems decktape needs to run all the cells to produce the final pdf. Essentially, this leads to duplicate slides. Is there any overcome to this you may be aware of? Otherwise, I guess I will just skip the "unrun" cells.

Thanks a lot again,
Gabriele

from decktape.

astefanutti avatar astefanutti commented on May 31, 2024

Issue with the RISE plugin followed-up in #111.

from decktape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.