Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Convert PDF to HTML (or JPEG)

by Sewi (Friar)
on Sep 12, 2009 at 09:25 UTC ( [id://794908]=note: print w/replies, xml ) Need Help??


in reply to Re: Convert PDF to HTML (or JPEG)
in thread Convert PDF to HTML (or JPEG)

I tried xpdf some time ago when looking for the same problem and it seems that xpdf ignores pictures at all when converting :-(

Replies are listed 'Best First'.
Re^3: Convert PDF to HTML (or JPEG)
by marto (Cardinal) on Sep 12, 2009 at 11:54 UTC

    I'm not quite sure what you were expecting, README:

    Xpdf is an open source viewer for Portable Document Format (PDF) files. (These are also sometimes also called 'Acrobat' files, from the name of Adobe's PDF software.) The Xpdf project also includes a PDF text extractor, PDF-to-PostScript converter, and various other utilities.

    man pdftotext:

    Pdftotext converts Portable Document Format (PDF) files to plain text. Pdftotext reads the PDF file, PDF-file, and writes a text file, text- file. If text-file is not specified, pdftotext converts file.pdf to file.txt. If text-file is ´-’, the text is sent to stdout.

    man pdfimages:

    Pdfimages saves images from a Portable Document Format (PDF) file as Portable Pixmap (PPM), Portable Bitmap (PBM), or JPEG files. Pdfimages reads the PDF file PDF-file, scans one or more pages, and writes one PPM, PBM, or JPEG file for each image, image-root-nnn.xxx, where nnn is the image number and xxx is the image type (.ppm, .pbm, .jpg).

    These utilities are not designed to output html with embeded images.

    Martin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://794908]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-19 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found