-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdf_properties doesn't take opts param #2
Comments
Can you try to fix it? |
For sure! Tried to look at the dragonfly ImageMagick plugin to see how they allow the passing of the params, doesn’t seem different from what we have weirdly. |
I guess we should just return values for both options – with spreads & without. The hash then could look like this: {
info: pdf.info,
aspect_ratios: aspect_ratios(pdf, false),
heights: heights(pdf, false),
page_count: page_count(pdf, false),
page_numbers: page_numbers(pdf, false),
spread_count: spread_count(pdf, false),
widths: widths(pdf, false),
spreads: {
aspect_ratios: aspect_ratios(pdf, true),
heights: heights(pdf, true),
page_count: page_count(pdf, true),
page_numbers: page_numbers(pdf, true),
spread_count: spread_count(pdf, true),
widths: widths(pdf, true)
}
} What do you think? Do you want to give it a shot? T |
Cool, yeah I’ll give it a try ;) |
Getting
ArgumentError - wrong number of arguments (1 for 0)
when usingpdf_properties(spreads: true)
.The text was updated successfully, but these errors were encountered: