docsplit

How to Upload a multipage PDF and convert it to JPEG with Paperclip?

喜你入骨 提交于 2019-12-21 13:07:15
问题 Does anyone know how to upload a multi-page pdf with Paperclip and convert each page into a Jpeg? So far, every time I upload a PDF, it only allows me to see the first page of the PDF as a JPEG. But I would like to be able to upload and convert every page from the PDF into a JPEG. Is there any gem or plug-in that can help me upload a 10-pg PDF and Convert/Store in the Database as 10 JPEG files? I have looked at docsplit-images gem, but I am not sure if that is the solution best solution or

Getting remove_entry_secure error while using ruby application

女生的网名这么多〃 提交于 2019-12-21 01:17:35
问题 I am trying to split PDF files into images using docsplit. But it appears I have issues with my ruby installation. I keep getting the following error every time: /usr/lib/ruby/1.8/fileutils.rb:694:in `remove_entry_secure': parent directory is world writable Here is the full command line output: $ docsplit images pdf-test.pdf /usr/lib/ruby/1.8/fileutils.rb:694:in `remove_entry_secure': parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/tmp/d20130207-6739

An efficient way to convert document to pdf format

主宰稳场 提交于 2019-12-18 11:06:19
问题 I have been trying to find the efficient way to convert document e.g. doc, docx, ppt, pptx to pdf. So far i have tried docsplit and oowriter , but both took > 10 seconds to complete the job on pptx file having size 1.7MB. Can any one suggest me a better way or suggestions to improve my approach? What i have tried: from subprocess import Popen, PIPE import time def convert(src, dst): d = {'src': src, 'dst': dst} commands = [ '/usr/bin/docsplit pdf --output %(dst)s %(src)s' % d, 'oowriter -

An efficient way to convert document to pdf format

跟風遠走 提交于 2019-12-18 11:05:42
问题 I have been trying to find the efficient way to convert document e.g. doc, docx, ppt, pptx to pdf. So far i have tried docsplit and oowriter , but both took > 10 seconds to complete the job on pptx file having size 1.7MB. Can any one suggest me a better way or suggestions to improve my approach? What i have tried: from subprocess import Popen, PIPE import time def convert(src, dst): d = {'src': src, 'dst': dst} commands = [ '/usr/bin/docsplit pdf --output %(dst)s %(src)s' % d, 'oowriter -

An efficient way to convert document to pdf format

元气小坏坏 提交于 2019-11-30 01:47:38
I have been trying to find the efficient way to convert document e.g. doc, docx, ppt, pptx to pdf. So far i have tried docsplit and oowriter , but both took > 10 seconds to complete the job on pptx file having size 1.7MB. Can any one suggest me a better way or suggestions to improve my approach? What i have tried: from subprocess import Popen, PIPE import time def convert(src, dst): d = {'src': src, 'dst': dst} commands = [ '/usr/bin/docsplit pdf --output %(dst)s %(src)s' % d, 'oowriter --headless -convert-to pdf:writer_pdf_Export %(dst)s %(src)s' % d, ] for i in range(len(commands)): command