Hi
I followed your tutorial on how to convert Image to pdf using your API.
However, I want to make the image fit the whole page.
Let's say that width > height, then I want the image to fit the whole page in landscape mode (no margin).
In any other cases, I want it to fit the whole page in portrait mode.