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

Possible to get the UIElements for each page?

1 Answer 69 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Henrik
Top achievements
Rank 1
Henrik asked on 30 Oct 2013, 03:23 PM
Hello,
At my Company, we are currently evaluating your SL PDFViewer component.
However, we have yet one major issue that need to solve before we can go through and buy your solution.

Is it somehow possible to retrieve the UIElements (FrameworkElement, Canvas, etc.) for all pages from the code-behind?
The reason for this request is that we need write our own print-mechanic in order to apply customer specific header, footer and watermark during run-time.

Thank you in advance!

Best Regards,
Henrik

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 01 Nov 2013, 02:54 PM
Hi Henrik,

RadPdfViewer only loads content which is inside the viewport, which means that you cannot get the UIElements for all pages from the visual tree. An easy workaround would be to put the control inside a StackPanel, which will load all the content and you will be able to retrieve the UIElements for all pages.

Another way you could do this is using the ThumbnailFactory. This will create a snapshot for a given RadFixedPage and you could somehow modify this snapshot according your needs.

I hope this is helpful. Please, do not hesitate to contact us if you have any other questions.

Regards,
Alexander
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
Tags
PDFViewer
Asked by
Henrik
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or