Objective-c Attaching multiple PDF's to email - ios

I have an app for our field sales team that generates customer data based on some inputs. The sales rep can then email that data as an attached PDF doc (created programmatically in the app). I also have a stored PDF document with some marketing information on our products that also gets attached to the email. This PDF was created in Apple's Pages and imported into the bundle and then is moved to the docs directory.
My problem is when I attach the programmatically created PDF, the app functions fine. When I attach the stored PDF file, in the email on the iPad both attachments have the .pdf extension but when I receive them in my email (Lotus Notes - I know, I know : ( ) both files come with .pdf.zip extensions and cannot be opened.
If I send just the stored one, the same, .pdf.zip.
On my desktop I can open the original file and read it in Preview and Adobe Reader so it doesn't seem corrupted. Any ideas as to what is going on here?
Thanks

Related

why can uploaded files not be open using download URL in Google's firebase storage?

I am using firebase for my iOS application, for one feature in my app, I have to upload attachments on firebase server and later it will be retrieved in-app for preview (e.g. Question attachments)
I can able to upload the file successfully, also it shows on firebase with the proper size, content type etc but it does not generate preview or not opening using download URL (Please see attached screenshot)
what am I doing wrong?
When you click the download URL in firebase console, it copies the url to clipboard, you need to paste it in browser to open it.
If you are doing that but it is still not opening, check security rules and make sure that user id you used to login has read access to the file.

Manipulate PDF iOS (add signature)

I'm trying to find the best solution for my problem. User is using safari on an iPad, and at one point the customer contract is created using a webservice, which sends me the URL to a PDF file.
Right now the user opens the PDF, prints it and scans it after the customer signs the contract. What they want is to capture the signature digitally, so the contract doesn't need to be scanned later.
My question is: what is the best way to embed the signature to an existing pdf file?
I wanted something similar to what the iOS mail app does natively
http://heresthethingblog.com/2015/10/28/ios-9-tip-sign-pdf-mail-pdf-tricks/
Thanks

How to allow user to upload attachments in iOS application

In case of Android when I want to send or attach a document such as a pdf or doc from my application I can easily access all the files in the external storage and share or attach.
But since iOS follows a sandbox approach as well as there is no filesystem so it is not possible to attach or upload in same manner.
In my iOS application right now, I have implemented Open In functionality, wherein in the info.plist file I have specified that my application supports all types of documents so when the user opens any documents he gets an option to Open In my application, then I save that document in the
Documents/Incoming
folder in the application, now when my user clicks to add attachment then he can see the document to attach, since this is a long process I was looking for better ones.
I saw whatsApp allows uploading/sharing from iCloud apart from that what can I do to provide a similar behaviour as Android.

How to display Microsoft Outlook message files in iOS

Does anyone know how to programatically display an email saved from Microsoft Outlook as a file via iOS? The original file is saved as either .eml or .msg format and stored in a filestore. I then download this file and need to display the contents (with links to attachments) in an iOS device.
I have looked at using UIWebView and QLPreviewController but cant see a suitable file format to use for saved email files.
If direct viewing of .msg or .eml files is not possible, is there a standard format that I could convert to so that i can display the saved emails (as files) in iOS?

Associate a file type to be opened in iPad/iPhone email attachment

I need to declare to any iOS 5 device that my application is able to open a specified file type format (e.g. a pdf, rtf, or jpg) file received as an attachment in an email. I read Apple documentation, and searched the web but couldn't obtained any result from all those tricks. Do you know any complete and efficient tutorial about declaring that ability of my application in a Xcode 4.3.x project? I just need that a user, when receiving an attachment, may be proposed either to preview the file or to open it in my application.
Thanks!
Denis

Resources