PDF Plugin Markup and Image

When using the PDF plugin is it possible to show images from the dradis database and use the markup language in the PDF content.

Currently i can display my own image using images stored in a folder within the file-system. what i would like to do is show the images i have uploaded into the dradis database.

For example:

 image "#{Engine.config.paths['app/assets'].expanded.first}/logo_small.png", position: :left 

When images are stored in dradis we get the markup urls !/project/image.jpg!.

I have found if i use image open(url) it fails is this due to the ruby open-uri lib is not authenticated when requesting the location.

You should be able to use the same approach, uploaded images are stored in the ./attachments/ folder of the app under the node ID of the node they were attached to.

1 Like