LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Gruesome PDF to JPG converter script

Posted 03-28-2014 at 08:57 PM by the dsc (linux-related notes)
Updated 04-10-2014 at 12:11 PM by the dsc (fixing a bug)
Tags pdf

Requires gs, imagemagick, jpegoptim, cpulimit, and "coolloop" (or maybe not).

Has no options or anything.

You run it like:

howeveryounameit.sh appropriate-filename portable-document-file-to-convert.pdf

The result will be:

appropriate-filename-001.jpg, appropriate-filename-002.jpg and so on.

So you don't add numbers or extension on the first parameter ($1). I guess it may not deal well with spaces...
Member
Posted in Uncategorized
Views 243 Comments 0 the dsc is offline
Old

Pure-text de-truncator script, a work in progress

Posted 09-30-2012 at 01:28 PM by the dsc (linux-related notes)
Updated 09-30-2012 at 01:32 PM by the dsc
Tags epub, pdf, sed, truncated

Sometimes I want to quote some PDF on pure text, luckily enough it would have actual text rather than being an non-OCRed image, but often there's still the problem that the text on the PDF is truncated/formatted in a fake/dumb way, with actual "new lines" to break the page, which may not make the text completely unreadable when pasted in a text editor, but it's reasonably annoying, and may require quite some time to fix manually.

I'm trying to create a script or one-liner...
Member
Posted in Uncategorized
Views 523 Comments 0 the dsc is offline
Old

Useful linux basic commands

Posted 11-20-2011 at 08:36 AM by ted_chou12
Updated 11-20-2011 at 08:42 AM by ted_chou12 (sed "s:its:it's:g")
Tags basic, commands, pdf

Hi, I found this online, it's pretty useful, I printed one out and posted on my wall XD. Cause I am not a pro, so I don't think memorizing them is necessary. But if u do frequently use them, u probably would remember, anyways, c attachment.
Attached Images
File Type: pdf linux_basics.pdf (69.1 KB, 4 views)
Member
Posted in Uncategorized
Views 528 Comments 0 ted_chou12 is offline
Old

Fixing the annoying firefox' associations issue once and for all

Posted 08-19-2011 at 03:49 PM by the dsc (linux-related notes)

Probably affects all gecko-derived browsers, like iceape, kazehakase, epiphany, namoroka, whatever. May be exclusively a KDE-derived problem though, I don't know.

Sometimes, for some reason, the system decides that you probably want to open downloaded PDFs, from iceweasel's/firefox' downloads window, with krita or gimp, programs that won't open PDFs at all. It's really confusing because you even have a correct, pdf-reader application set as default in other parts of the system (file...
Member
Posted in Uncategorized
Views 6555 Comments 2 the dsc is offline
Old

Installing Img2pdf Software on Debian Linux

Posted 01-01-2009 at 09:22 AM by wmromine
Tags img2pdf, pdf

I had a need to get the Img2pdf software from www.freshmeat.net to run on my Debian 3.1 (Sarge) linux machine. This software is used to convert a folder of single page image files to a single pdf document. Installing the img2pdf software turned out to be a very difficult task for me since I am not familiar with programming. The hardship could have been significantly reduced if better installation documentation were available, but that did not appear to be the case. Since I was able to successfully...
LQ Newbie
Posted in Uncategorized
Views 3055 Comments 1 wmromine is offline

  



All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration