Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

Documentation on Conversion Options #13

aaronmiler opened this issue Sep 2, 2014 · 7 comments

Documentation on Conversion Options #13

aaronmiler opened this issue Sep 2, 2014 · 7 comments

Comments

aaronmiler commented Sep 2, 2014

I'd like to pass some options to a conversion.

I've tried multiple ways of passing options through the gem, and just can't seem to get it to work. If you could please add some documentation of how the options work that would be great.

This is what I've been trying

convert = Cloudconvert::Conversion.new convert.convert('pdf','png','http://urltopdf.com/file.pdf','http://callbackurl.com/callback',:page_range => 0>)

Not sure if this is right. Please advise

The text was updated successfully, but these errors were encountered:

aaronmiler commented Sep 2, 2014

There are no errors being passed, it just appears as if Cloudconvert is not picking up on the options I'm attempting to pass.

Here is the exact command I'm running

conversion = Cloudconvert::Conversion.new conversion.convert('pdf','png','https://www.engageny.org/file/8761/download/a-story-of-ratios-a-curriculum-overview-for-grades-6-8.pdf','',:page_range => 1>)

Then when I look at the URL of the process on cloudconvert (found/fetched with conversion.status ), it doesn't appear to have any of the options I passed.

Should the options not be a hash?

Here are the options for PDF => PNG

[11] pry(main)> conversion.converter_options('pdf', 'png') [ [0]  "inputformat" => "pdf", "outputformat" => "png", "converter" => "imagemagick", "converteroptions" =>  "resize" => nil, "resizemode" => "maximum", "density" => "300", "rotate" => nil, "page_range" => nil, "grayscale" => nil, "disable_alpha" => "true", "strip_metatags" => nil >, "shortnote" => "", "postid" => "0", "type" => "convert", "note" => "", "maxtime" => nil, "group" => "document" > ]