I want to print a loaded pdf file from a PDF viewer programatically.
I don't want to click on the print icon then display the preview and finally reclick on print button.
I tried to do this
but the printed document doesn't fit the page size.
Do you have a solution.