PDFkit doesn't get <div>
elements at all, IMGkit renders blank images (the below method):
def png
file = Tempfile.new(Digest::MD5.hexdigest(rand(12).to_s), :encoding => 'ascii-8bit')
file.write(IMGKit.new(request.referer).to_png)
send_data file, :filename => "test.png"
end
Is there any reliable to get a copy of any given page in an app? Format doesn't matter too much but PDF would be ideal.
Try