Vote count: 0 I have an application where I show Fedex labels in my browser as PDF. I have used send_data to render each label as follows and it works perfectly: @label_image = Base64.decode64(image_hex).html_safe #image_hex is a text field where I store the label in db send_data @label_image, :type => 'application/pdf', :disposition => 'inline', :filename => 'test.pdf' But, I want to render multiple labels in the similar way i.e I can have an array of labels say @labels_images and render them to the browser in one request. Each page of the PDF should have one label. How can I do this either using send_data or any other library available for this ? Thanks asked 48 secs agodkp Let's block ads...
ادامه مطلب