How to convert GoPresent to PDF?

237 views
Skip to first unread message

Tom Limoncelli

unread,
Oct 14, 2025, 3:57:41 PM Oct 14
to golang-nuts
I made a presentation using the Present package ( https://pkg.go.dev/golang.org/x/tools/present ) but I'd like to convert it to PDF.

I've used github.com/mmcloughlin/podium but it requires chromedriver which is no longer supported.

Are there alternatives?  Web searches find nothing.

Thanks,
Tom

Jason E. Aten

unread,
Oct 14, 2025, 8:35:36 PM Oct 14
to golang-nuts
Somewhat embarrassing to admit, but I've resorted in
the past to just taking screenshots and then stuffing them
into a pdf file. The size was about 30KB per slide.

If that's too big, you could also try to de-rasterize your
screenshots back into vector graphics to get compression
with... services? image magick?  https://convert.guru/raster-converter kind of thing.

Kevin Chowski

unread,
Oct 14, 2025, 10:14:41 PM Oct 14
to golang-nuts
Can you use the present command to host the webpage, open it up in your favorite browser, and print to PDF?

Sebastien Binet

unread,
Oct 15, 2025, 1:32:41 AM Oct 15
to Tom Limoncelli, golang-nuts
Hi,

In the old days, I did this little thing:
https://codeberg.org/sbinet/present-tex

(Now, I would probably do it with Typst instead of LaTeX)

htw,
-s

Oct 14, 2025 22:41:22 Tom Limoncelli < t...@whatexit.org >:

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com .
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAHVFxgnr-NJ73_aJvT6pHZECFSS0nikz1nyuZ0ai388pL%2BQzSQ%40mail.gmail.com .
signature.asc

Taco de Wolff

unread,
Oct 20, 2025, 3:54:18 PM Oct 20
to golang-nuts
Hi,

You could take a look at https://github.com/tdewolff/canvas for generating PDFs, but you need to build a MarkDown to canvas drawing operations layer in-between. This will probably result in the smallest PDF size, since Canvas is optimised to generate small PDFs.

Greetings, Taco

Op woensdag 15 oktober 2025 om 07:32:41 UTC+2 schreef Sebastien Binet:

Brian Candler

unread,
Oct 21, 2025, 3:40:03 AM Oct 21
to golang-nuts
Are you sure chromedriver is no longer supported? It appears to be available for current versions of chromium:

Searching "golang headless browser" also turns up  https://github.com/chromedp/chromedp
If necessary, maybe you can fork podium and rework it to use this interface instead of WebDriver.

Brian Candler

unread,
Oct 21, 2025, 3:41:36 AM Oct 21
to golang-nuts
P.S. The new download location is linked from here:

" Starting with M115 the latest Chrome and ChromeDriver releases per release channel (Stable, Beta, Dev, Canary) are available at the  Chrome for Testing availability dashboard . "
Reply all
Reply to author
Forward
0 new messages