Giter VIP home page Giter VIP logo

Comments (5)

Pepan avatar Pepan commented on June 7, 2024

It is not in released version jet
Add this to Gemfile: gem 'prawn-rails', github: 'cortiz/prawn-rails'

But this only adds correct name to download option in opened PDF or right click to link.

There was options like :filename=>'Hello.pdf', :force_download=>true, in prawn_document method in the past. Where it disappeared?

https://github.com/Whoops/prawn-rails#force-saving

Please can you add it back?

from prawn-rails.

chris-gooley avatar chris-gooley commented on June 7, 2024

This doesn't appear to work in IE11.
The following code changes the filename in Chrome but does not work in IE11

format.pdf do
  @filename = "NewFileName.pdf"
  render 'report'
end

Does anyone have a fix for this?

from prawn-rails.

westonganger avatar westonganger commented on June 7, 2024

@chris-gooley did you ever figure out how to get it working in IE11?

from prawn-rails.

chris-gooley avatar chris-gooley commented on June 7, 2024

I rested it and it appears to be working. I can't exactly remember what I did to fix it but it could potentially have been a bug elsewhere. Sorry thats not much help, but it was over 6 months ago :P

from prawn-rails.

westonganger avatar westonganger commented on June 7, 2024

Did you test Edge or Internet Explorer?

Maybe my organization is running an IE compatibility mode or something.

from prawn-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.