LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-22-2004, 05:29 PM   #1
ilhbutshm
Member
 
Registered: Jul 2003
Location: Europe
Distribution: Slackware 10.2
Posts: 104

Rep: Reputation: 15
CMD line tool for PDF -> HTML or JPG/PNG/GIF


Is there such a command line tool? That can convert PDF files to JPEG/PNG/GIF or perhaps even HTML?
 
Old 10-22-2004, 06:25 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
If the document is not secret, you could use Google to do it. Put it on a website (use an invisible link for obfuscation if needed, i.e. colour white), put the url in your forum sig, wait til the bot comes round.

Regards,

Samsara
 
Old 10-22-2004, 07:53 PM   #3
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
I dont know of any on linux .. as yet... u can be the first to get them to work on wine....
Tell us how it goes...


hmm!!! last i heard google re-cache's every 45 days or something.. and when the bot comes .. make sure u allow it to cache ur files by editing the robots.txt....
 
Old 10-22-2004, 08:50 PM   #4
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
Some replies I stole off a mailing list, where the same question came up:

first reply> latest koffice can edit pdf's, not tried saving as doc though afterwards...

original poster> Thanks, tried it. But kword makes a bit of a mess of the PDF.

third reply> there's one breathtakingly horrible solution, but it might be the only practicable
one: write a quick script which uses Ghostscript to turn the PDF into a sequence of PNGs, then outputs an RTF file with said PNGs embedded, one to a page.
third reply>
third reply> RTFs (according to the v1.5 spec) can also contain "Enhanced Metafiles" or EMFs, which seems to be some kind of Microsoft vector format. I think OOo Draw can import these, but I don't know if there's any sensible way to convert PDF to EMF. EPS, it seems, is not supported :-(.

sadistic reply> Try reading "Digital Typography" by Donald Knuth.

fourth reply> If the issue is getting from LaTeX to word, then using Hevea
http://pauillac.inria.fr/~maranget/hevea/ to generate html as a common
format is a workable, if not perfect solution, even for moderately
complex documents, although some hand editing afterwards is likely.

fifth> Check out http://www.scansoft.com/pdfconverter/

sixth> Sure: pdftotext uses the xpdf code to extract the text from a pdf
document for instance. As I said originally, it's *potentially* hard,
but most of the time, you can get the text out.
sixth>
sixth>But the originally poster wanted the full formatting, which is a bit
more difficult & rtf doesn't really cut the mustard.

There are other tools for other situations, like latex2html...
 
Old 10-22-2004, 09:09 PM   #5
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
lol... man i love this site!!!!!!!!!!!!
 
Old 10-23-2004, 04:18 AM   #6
ilhbutshm
Member
 
Registered: Jul 2003
Location: Europe
Distribution: Slackware 10.2
Posts: 104

Original Poster
Rep: Reputation: 15
Hi! Thanks for the replies, but the above solutions are kind of inappropriate for my situation:

a) Google really won't to any good becuase the PDF documents will be under password in intranet.
b) I tried the adress and it only offers the PDF -> MS .doc format... what I need is PDF -> JPEG/PNG/GIF or even better - HTML.

I am currently trying to accomplish something with Imagemagick that converts image files to other image files... but I'd prefer something that converts PDF to HTML/XML or some other less bandwidth consuming form.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
png to gif in linux? jon_k Linux - Software 4 05-25-2010 09:01 PM
Converting .png to .jpg GtkUser Linux - Software 9 04-17-2007 02:04 PM
tool for converting html to pdf - htmldoc j-ray Linux - Software 2 08-30-2004 08:02 AM
print files in PDF or html format from the linux command line IBKnobel Linux - Software 3 07-12-2004 09:29 PM
pnp to png or jpg illtbagu Linux - Newbie 1 01-26-2003 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:52 PM.

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
Open Source Consulting | Domain Registration