Replies: 1 comment
-
It doesn't really matter to Prawn from where you get your image. You can either provide a path to a file or an IO object. The following invocations are equal: Prawn::Document.generate('/tmp/p.pdf') { image('example.jpg') }
Prawn::Document.generate('/tmp/p1.pdf') { image(File.open('example.jpg')) } So if the images are outside the Rails application folder on the file system, just specify the correct path. Or if they are not available on the file system, provide an IO object. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The application renders images , as long as they are in app/assets/images. To provide users with more flexibility, it would be nice if Prawn could render images located elsewhere, outside the Rails application.
Is that possible? If so, what would be the syntax?
Beta Was this translation helpful? Give feedback.
All reactions