How to convert specific no. of pages from a .pdf file to .png image using imagemagick

Fapyrolaparne

New Member
i am using Imagemagick for converting my .pdf file to .png images but when i issue the command $convert sample.pdf image.pngthen it will convert all the pages of sample.pdf file to .png images but exactly i want to convert a specific no. of pages(e.g. first 10 pages or page no.22 or 12 etc.)then pleases suggest me a way to solve this issue.and one more question is that:when we view our .pdf files in google docs .pdf viewer then they are also in image format but we can select and copy the text written on pages to the clipboard(simply select the text and press Ctrl+c)so how can i implement this so the users of my website can select the text form my images.(there are already some discussion about it on stackoverflow but they are not very clear)
 
Back
Top