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

getting the Page Size from .pdf

1 Answer 231 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 14 Jul 2015, 03:51 PM
Using the PdfViewer control, is there anyway to access the Page Size property in the advanced properties section of the document properties of a .pdf file. I would like to grab that size and display on my form along with a view of the .pdf.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Jul 2015, 01:31 PM
Hello Kevin,

Thank you for writing.

You can get the size of a page from the pdf file by accessing the RadFixedPage.Size property:
Telerik.Windows.Pdf.Documents.Fixed.Model.RadFixedPage currentPage = this.radPdfViewer1.PdfViewerElement.CurrentPage;
Telerik.Fixed.Legacy.Size s = currentPage.Size;

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
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or