Skip to content

Commit ae07d87

Browse files
authored
Keyword argument fix
1 parent 7bfb746 commit ae07d87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/create_pdf_thumbnail.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111

1212
pdf_result = ConvertApi.convert(
1313
'extract',
14-
File: 'files/test.pdf',
15-
PageRange: 1,
14+
{File: 'files/test.pdf',
15+
PageRange: 1}
1616
)
1717

1818
jpg_result = ConvertApi.convert(
1919
'jpg',
20-
File: pdf_result,
20+
{File: pdf_result,
2121
ScaleImage: true,
2222
ScaleProportions: true,
2323
ImageHeight: 300,
24-
ImageWidth: 300,
24+
ImageWidth: 300}
2525
)
2626

2727
saved_files = jpg_result.save_files(Dir.tmpdir)

0 commit comments

Comments
 (0)