PdfViewerPrintSize.Fit - Ratio problem

when i set  pdfViewerControl1.PrinterSettings.PageSize = PdfViewerPrintSize.Fit  not respect ratio during the printing so result streched 

Any solutions for FitRespectRatio ?


3 Replies

SS Sathish Shankar Syncfusion Team July 14, 2021 05:37 PM UTC

Hi Luca, 
 
PDF Viewer supports the customizing print size as Fit, ActualSize and CustomScale . If you want to change the print size in ratio you can use the CustomScale property. We have attached the code snippet for your reference. 
 
Code snippet 
 
// Prints the document with custom scaling. 
 
pdfviewer1.PrinterSettings.PageSize = PdfViewerPrintSize.CustomScale; 
 
// Scale percentage with the page to be resized and it is applicable only for Custom Scale. The default value is 100. 
 
pdfviewer1.PrinterSettings.ScalePercentage = 120; 
 
 
 
 
Please Let us know whether the solution is helpful or not. This information will help us to analyze much deeper on this and provide you a better solution. 
 
With regards, 
Sathish Shankar 




LV luca verga July 16, 2021 07:12 AM UTC

Yeah i know there's CustomScale but not my case.

I need Fit (automatically scale) but Fit actually strech e deform the image , i need Fit to Page that respect ratio between Width and Height like Adobe Acrobat Viewer do in print.




SS Sathish Shankar Syncfusion Team July 19, 2021 06:45 PM UTC

Hi Luca, 
  
Print size Fit option enlarges or reduces each page to fit the printable area of the selected paper size. This will maintain the aspect ratio based on the selected paper and PDF document actual size. Since we could suspect your reported issue on document specific. So we request you to kindly share the document with us to reproduce the issue from our end. This will help us to analyze more on this and provide you a better solution.  
  
Regards, 
Sathish Shankar 
 


Loader.
Up arrow icon