Here is sample code to convert a pdf into image:
`convert -density 100 -quality 100 "#{source_pdf}" "#{imagepath}#{source_pdf.chomp(File.extname(source_pdf))}.png"`
this will convert the source.pdf to source.png inside the imagepath directory
`convert -density 100 -quality 100 "#{source_pdf}" "#{imagepath}#{source_pdf.chomp(File.extname(source_pdf))}.png"`
this will convert the source.pdf to source.png inside the imagepath directory
No comments:
Post a Comment