I have a file .imap, if I open it using notepad I can see that it is an email with an attachment which is a pdf file. I wish to extract such pdf, how can i perform this operation? Thanks in advance.
Related
Currently I have got Orbeon to send an email to me with a PDF and an XML attachment. Is there a way to get Orbean to also save the submitted form as PDF and XML files in a local (or remote) file share somewhere for further processing?
It's not possible to save to the filesystem at the moment. But you can use the send action to send XML and or PDF to a service.
I need to generate report to pdf file, save on the server, than send the file to the client by email.
I am looking to a gem for exporting pdf file
And I want to know if the file keep all the pdf options (like links and the option to select text copy text etc')
Thanks
You can use wicked_pdf gem to generate PDF from HTML. You can configure the options whatever you want in their advanced usage.
Wicked PDF is what you need. It will export to PDF and keep all links, text and images as a real PDF would, because it generates a real, full fledge PDF.
I am reading a PDF file stored locally (using nsbundle) and converting it to text.
But when I am trying to read the PDF from http i.e. URL scheme and give the path to my PDF to text converter it returns nil.
Any solutions would be appreciated.
My basic question is how to read a PDF file from a URL path?
on that way there are many restriction to convert PDF file to plain text.If you want to display PDF on app then use PDF Reader Core
When I'm sending mail form in my app I can attach some files. But in the email it looks like aeb6fe78271a1f2f51c7b84981b9e8df.png How can I show link to file?
if the file is hosted in the web. then checked it out the file link inside the email, maybe the generated file url is a relative path which did not contain the host information.
another solution maybe attach the file as an attachment inside the send email.
I have an application which takes in a zip file as its input. The zip file contains a html file, its css and the images. I need to convert this html to pdf and send back. I have looked at Prince XML and wicked PDF but dont know how to perform this exact task.
It is like my application should act as a HTML to PDF converter. They will send us zip files and my app should generate the corresponding PDF. How to go about this task.
You can use PDFKit gem.
https://github.com/jdpace/PDFKit
http://www.jonathanspies.com/posts/11-Simple-PDFkit-example-in-Rails-3
The process I would implement is:
Upload the zip via a form
Unzip the contents
Process the html file within using Hpricot or similar (if you need to tidy it up first)
Convert the raw html to PDF with https://github.com/jdpace/PDFKit