Alua-Kinzhebayeva / iOS-PDF-Reader

PDF Reader for iOS written in Swift
MIT License
533 stars 150 forks source link

Sharing PFD file with other apps #23

Closed le4ker closed 8 years ago

le4ker commented 8 years ago

Hello Alua,

First of all, thanks for the great work! Your pod is happily being used in Dono for iOS, let me know if you are interested in joining the test ring 😄

Second, how about enabling to share the pdf file on other apps? For example in the iBooks app you can either print the pdf or share it via email.

Thanks again for the effort! :panos

edit:

I just noticed in the README

Customize the action button by replacing the UIBarButtonItem displayed with your own

So it's actually possible to inject it into the framework, good stuff! 😄

ranunez commented 8 years ago

Please check out our new 2.1.0 release. It lets you specify a custom ActionStyle, with one of the options to present an activity sheet (.activitySheet), enabling users to open/share the PDF in other apps!

le4ker commented 8 years ago

Great! An code sample doing that would be great though 😉

Alua-Kinzhebayeva commented 8 years ago

@PanosSakkos thank you for your kind words! I like your project by the way!

anandabayu commented 4 years ago

Hi, I used .activitySheet I can share the pdf file to WhatsApp or save to file, but when I share it via Gmail, the document got an error, file name, and extension are changed.

See Image