This is a migrated thread and some comments may be shown as answers.

Print pdfviewer doesn't fit the page size

1 Answer 293 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Mathieu
Top achievements
Rank 1
Mathieu asked on 28 Aug 2015, 03:01 PM

Hi,

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

 

This.pdfViewer.Print();

but the printed document doesn't fit the page size.

 Do you have a solution.

 

Regards.

 Mathieu

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 31 Aug 2015, 01:01 PM
Hello Mathieu,

Thank you for writing.

You can use RadPrintDocument in order to print the document loaded in RadPdfViewer and specify the DefaultPageSettings. Thus, you can control the paper size, margins, etc.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PdfViewer and PdfViewerNavigator
Asked by
Mathieu
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or