خرید بک لینک

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 ago

برچسب: ruby send data to socket,send data from ruby to javascript, نویسنده: استخدام کار تاريخ: پنجشنبه 8 مهر 1395 ساعت: 6:34

صفحه بندی