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

Event after PDF contents loaded

3 Answers 177 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Paulo Goncalves
Top achievements
Rank 2
Paulo Goncalves asked on 27 Nov 2013, 06:32 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 02 Dec 2013, 11:23 AM
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 >>
0
Vipin
Top achievements
Rank 1
answered on 23 Mar 2016, 02:51 AM

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. 

0
Dimitar
Telerik team
answered on 23 Mar 2016, 02:22 PM
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.
Tags
PdfViewer and PdfViewerNavigator
Asked by
Paulo Goncalves
Top achievements
Rank 2
Answers by
Dimitar
Telerik team
Vipin
Top achievements
Rank 1
Share this question
or