Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Control Page Size #16

Open
dmoulton opened this issue Mar 17, 2014 · 1 comment
Open

Control Page Size #16

dmoulton opened this issue Mar 17, 2014 · 1 comment

Comments

@dmoulton
Copy link

Using shrimp and phantomjs with rails 4 and middleware. I am wondering if and how its possible to change the pdf page size on the fly. I've been setting it in the initializer. Is it possible to change it on each call?

@sbsurf
Copy link

sbsurf commented Aug 14, 2014

pdf = Shrimp::Phantom.new(
  url + "?#{query}",
  margin: '0cm',
  format: 'A4'
)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants