this post was submitted on 07 Feb 2025
539 points (98.0% liked)

Programmer Humor

20417 readers
241 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lime@feddit.nu 14 points 1 day ago* (last edited 1 day ago) (2 children)

$ pandoc doc.pdf -o doc.txt

Edit: welp, pandoc can't do that. pdftotext it is.

[–] mexicancartel@lemmy.dbzer0.com 2 points 1 day ago* (last edited 1 day ago) (1 children)
magick file.jpg file.html

Imagemagick be converting anything into anything (Actually in this case, it make an html file and a png file which is referenced in html file and html page displays it)

[–] lime@feddit.nu 2 points 1 day ago

not really a good way to get the text out of a pdf though. then again, turns out neither is pandoc.

[–] stetech@lemmy.world 1 points 1 day ago (1 children)

I thought pandoc didn’t support from PDF, only to?!

[–] lime@feddit.nu 2 points 1 day ago (1 children)

damn it, you're right. should probably have checked that...

[–] stetech@lemmy.world 1 points 1 day ago

Don’t worry, I didn’t know either and had to check to check too :P