1

I have to store a pdf that i'm generating through my application. I don't know the path for the sdcard for storing the file.

I guess the path needs to go into here

pdf.save_as(file_location)

Can anyone suggest the path ?

1 Answers1

0

You can use /sdcard/ to store files on to the sdcard for Android

file_location = File.join('/sdcard/','My.pdf')
pdf.save_as(file_location)
Ashis Kumar
  • 6,494
  • 2
  • 21
  • 36