cesarvr / pdf-generator

Cordova plugin to generate pdf in the client-side
MIT License
107 stars 61 forks source link

Return saved file name/location #13

Closed avijitcse closed 7 years ago

avijitcse commented 7 years ago

Is it possible to return the saved file name/location in onFinish method for Android? From the print dialog user may choose any folder, create a new folder or change the file name at the time of saving. So how do I get that info. I need to open the file in some viewer after user saves a file from print dialog.

MikeMadez commented 7 years ago

Do you got any luck?

avijitcse commented 7 years ago

@MikeMadez I am able to generate pdf using iText PDF library. But there is some licensing issue for using in Production. Not sure this will help you or not. You can visit below links: http://www.skholingua.com/blog/using-itextpdf-generation-pdf-files-android http://zacktutorials.blogspot.in/2014/07/android-read-and-write-pdf-file-using.html

MikeMadez commented 7 years ago

Thank you so much! I'll give it a try!


De: avijitcse notifications@github.com Enviado: miércoles, 19 de abril de 2017 09:32 a. m. Para: cesarvr/pdf-generator Cc: Miguel Duran; Mention Asunto: Re: [cesarvr/pdf-generator] Return saved file name/location (#13)

@MikeMadezhttps://github.com/MikeMadez I am able to generate pdf using iText PDF library. But there is some licensing issue for using in Production. Not sure this will help you or not. You can visit below links: http://www.skholingua.com/blog/using-itextpdf-generation-pdf-files-android http://zacktutorials.blogspot.in/2014/07/android-read-and-write-pdf-file-using.html

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cesarvr/pdf-generator/issues/13#issuecomment-295186964, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALv9GFaEnIH145cTFn4G3Jf_UUGHJP7gks5rxdScgaJpZM4MUgtg.

cesarvr commented 7 years ago

Hi All, I have released a new version of the pdf-generator-plugin now supports Android base64 so you can get the file back.