Skip to content

Commit 7bfb746

Browse files
authored
Keyword argument fix
1 parent 0cd9201 commit 7bfb746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/convert_word_to_pdf_and_png.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
upload_io = ConvertApi::UploadIO.new(File.open('files/test.docx'))
1414

1515
saved_files = ConvertApi
16-
.convert('pdf', File: upload_io)
16+
.convert('pdf', {File: upload_io})
1717
.save_files(Dir.tmpdir)
1818

1919
puts "The PDF saved to: #{saved_files}"

0 commit comments

Comments
 (0)