getting the Page Size from .pdf

2 posts, 0 answers
  1. Kevin
    Kevin  avatar
    1 posts
    Member since:
    Dec 2013

    Posted 14 Jul 2015 Link to this post

    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.
  2. Dess
    Dess avatar
    1562 posts

    Posted 16 Jul 2015 Link to this post

    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.
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top