How to thumbnail a PDF?

Asked

Viewed 877 times

-1

Well, I’m developing a digital materials sharing project, where users can submit articles, presentations and others. That said I wanted to know, how can I make a thumbnail of these submitted documents ?

  • What programming language you are using?

1 answer

-1


If you really want a Thumb of a document . pdf, you can convert this doc to image and then generate Thumb. It has several libs that do this.

I’ve worked with Imagemagick who does this, and it’s free:

http://imagemagick.codeplex.com/

But the lib is huge for a feature like this...

A Pdfsharp, I’m not sure that converts pdf to image, but you can take a look: https://github.com/empira/PDFsharp, I only used this to convert image to . pdf.

And has: https://github.com/aybe/Windows-API-Code-Pack-1.1, which is free, lightweight and easy to use.

You can read more about it:

http://www.makeuseof.com/tag/6-ways-to-convert-a-pdf-file-to-a-jpg-image/

https://www.print-driver.com/how-to/convert-pdf-to-jpg

https://www.codeproject.com/Articles/42287/Convert-PDF-pages-to-image-files-using-the-Solid-F

I know it’s not what you asked for, but couldn’t you just get an image, or vector, of something that would send the extension and add it to all the files? That wouldn’t compromise their processing at all and you could indicate the file by name, but just a suggestion. (=

Ah, and I only gave you . net because you didn’t specify the language.

  • 'Cause I didn’t specify haha, but I would know something in PHP ?

  • Imagemagick: http://us3.php.net/imagick and Ghostscript: https://sourceforge.net/projects/ghostscript/ (=

Browser other questions tagged

You are not signed in. Login or sign up in order to post.