Event after PDF contents loaded

4 posts, 1 answers
  1. Paulo Goncalves
    Paulo Goncalves avatar
    26 posts
    Member since:
    Aug 2004

    Posted 27 Nov 2013 Link to this post

    Hi,

    I need an event that fire only after the contents of PDF is displayed. The DocumentLoaded is fired after the .pdf load, but not displayed yet.

    Thanks

    Paulo
  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 02 Dec 2013 Link to this post

    Hello Paulo,

    Thank you for writing.

    Currently, we do not have such event that is fired after DocumentLoaded. Hoewever if you provide us with more details about what exactly you are trying to achieve and why do you need such event we might be able to help you.

    Thank you in advance for your patience and cooperation. 

    Regards,
    Dimitar
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Vipin
    Vipin avatar
    4 posts
    Member since:
    Mar 2012

    Posted 22 Mar in reply to Dimitar Link to this post

    I also need the same event, The seneraio I am dealing is I need to scroll the document to certain position after it is loaded. for scrolling I am calling function this.pdfViewer.Document.CaretPosition.MoveToPosition(searchResult.Range.StartPosition); but this will not take effect if the actual document is not loaded yet. 

  5. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 23 Mar Link to this post

    Hi Vipin,

    Thank you for writing.

    For this, you can use the DocumentLoaded event and the GoToPage method:
    private void RadPdfViewer1_DocumentLoaded(object sender, EventArgs e)
    {
        radPdfViewer1.PdfViewerElement.GoToPage(30);
    }

    I hope this helps.

    Regards,
    Dimitar
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top