Convert image to pdf || fit whole page

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.


1 Reply 1 reply marked as answer

SL Sowmiya Loganathan Syncfusion Team December 24, 2020 01:58 PM UTC

Hi Hadi,   

We have analyzed your requirement “Convert image to PDF based on the image width and height” and we have created the sample to achieve this. Please find the download link for the same from below,   


Please try the above sample in your end and let us know the result.   

Regards,  
Sowmiya Loganathan 


Marked as answer
Loader.
Up arrow icon