To convert pdf into some image format like jpg

Author Message

Romeo Antony

Friday 01 October 2010 4:30:42 am

Hi all,

Is der any extension to convert pdf file into some jpj format.

I want to show pdf fle in some jpf format.

can anyone give a suggestion.

Romeo

Ivo Lukac

Friday 01 October 2010 4:41:52 am

If you are using linux you have the Imagemagick convert tool:

http://www.cyberciti.biz/faq/howto-convert-a-pdf-file-to-an-image/

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Romeo Antony

Friday 01 October 2010 5:48:11 am

Hi Ivo, thank you for your idea. I will try it and will let you know the progress.

Romeo

Romeo Antony

Friday 01 October 2010 6:29:02 am

Sorry to bother you again. Can you give a one more tip

I am using linux and image magic is installed.

I have uploaded some pdf files as file classes in ezp.

I would like to give a link to visitors so when they click on the link , visitors see the pdf file as an image , benifit is (pdf reader is not needed to be installed on visitors system)

Just give me a clue how to use this image magic to convert this pdf file ->image in template .

A line of code

Quoc Huy Nguyen Dinh

Friday 01 October 2010 8:10:12 am

If you have a lot of PDF files it might not be the best to start the conversion of PDF to JPEG each time.

There is an online service that allows your visitor to view PDF files without having to install a PDF reader on their computer: http://www.issuu.com/

You just sign up for an account, then copy and paste their Javascript code into your pagelayout.tpl and whenever someone click on a PDF link on your website, ISSUU will download the PDF, convert it (takes 10 minutes) and the next visitor will have a nice online PDF reader.

See my blog below, right under the Google Ads, click on "Click here for a preview of Eye Spy Intelligence Magazine number 66":

http://www.qhphotography.com/Blog/Photo-project-on-Espionage-Part-II

So the first visitor will be downloading the PDF, but 10 minutes after, everyone will get the viewer.

Romeo Antony

Saturday 02 October 2010 2:02:18 am

Thanks a million for this great idea Quoc Huy. yes you are correct it seems to be If there are lot of pdf , it is will slow down the site and when try to convert each pdf into image format.

Can you plz tell me where should I copy the javascript code in pagelayout.tpl

Romeo.

Marko Žmak

Sunday 03 October 2010 4:47:14 am

Romeo, you have also this one:

http://www.scribd.com/

I have used both scribd and issuu with eZP, and I found scribd to be a better solution for my needs. It can also convert other formats like Word, OpenOffice...

If you need help in setting it up, feel free to contact me privately via my profile.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Romeo Antony

Sunday 03 October 2010 6:38:02 am

I will try your suggestion (scribd)Marko. Great mind. I am so thankfull for your help.

Romeo

Marko Žmak

Sunday 03 October 2010 11:54:08 am

I'm glad you found my tip usefull, here are some pointers:

  • if your documents can be freely accessed by public use scribd.Document.getDocFromUrl() it requires only the public key
  • set the height of the scribd reader to the height of the page viewport and scroll the page to the top of the reader - it improves user experience
  • setting scribd_doc.api.setFullscreen(true) in oniPaperReady() function doesn't work correctly, at least it didn't work on my site

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Quoc Huy Nguyen Dinh

Monday 04 October 2010 3:39:20 am

I've never tried scribd but issuu is working fine for the eZ and Joomla sites I've worked with. And it also handles DOC and PPT

For the script, the best is to copy/paste at the end of the pagelayout.tpl or only in the TPL that is displaying the PDF.

{literal}

[javascript_code goes here]

{/literal}

Romeo Antony

Tuesday 05 October 2010 12:07:43 am

I will try it tomorrwo and let you know how it is . thank you Quoc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.