Hi Team,
I am using radpdfviewer in application for showing a pdf file. But I want to implement addition feature from the control.
1.Change the page horizontally using swipe left(for Next page) and swipe right(for previous page),instead of using vertically.
2.Also want to apply animation on page change(like changes a image from gallery ).
3.Hide the scroll bar from pdfviewer.
I am using radpdfviewer in application for showing a pdf file. But I want to implement addition feature from the control.
1.Change the page horizontally using swipe left(for Next page) and swipe right(for previous page),instead of using vertically.
2.Also want to apply animation on page change(like changes a image from gallery ).
3.Hide the scroll bar from pdfviewer.
6 Answers, 1 is accepted
0
Accepted
Hi,
The functionality you have described cannot be achieved using RadPdfViewer directly.
However, you may find the FixedDocumentSinglePagePresenter useful in your scenario. It can be used to display RadFixedPage's content. If you create a RadFixedDocument by importing a PDF stream with PdfFormatProvider, then you can show the pages in a control of yours that contains FixedDocumentSinglePagePresenter.
The rest of the functionality is up to you as you can change the Page property to show the page you want. You should have in mind that there are some limitations in FixedDocumentSinglePagePresenter compared to the RadPdfViewer.
Kind regards,
Kammen
the Telerik team
The functionality you have described cannot be achieved using RadPdfViewer directly.
However, you may find the FixedDocumentSinglePagePresenter useful in your scenario. It can be used to display RadFixedPage's content. If you create a RadFixedDocument by importing a PDF stream with PdfFormatProvider, then you can show the pages in a control of yours that contains FixedDocumentSinglePagePresenter.
The rest of the functionality is up to you as you can change the Page property to show the page you want. You should have in mind that there are some limitations in FixedDocumentSinglePagePresenter compared to the RadPdfViewer.
Kind regards,
Kammen
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
TEST
Top achievements
Rank 1
answered on 03 Aug 2012, 07:05 AM
Hi Kammen ,
I have tried to RadFixedDocument from PdfFormatProvider but not get any way to convert it.
Please let me know RadFixedDocument from PdfFormatProvider and pass it to FixedDocumentSinglePagePresenter .
Thanks,
I have tried to RadFixedDocument from PdfFormatProvider but not get any way to convert it.
Please let me know RadFixedDocument from PdfFormatProvider and pass it to FixedDocumentSinglePagePresenter .
Thanks,
0
Hi,
In this demo you can see how to use the FixedDocumentSinglePagePresenter in RadBook. (The same example can be found in the Click-once demos. In your case you can use something like this:
PdfFormatProvider provider =
new
PdfFormatProvider(stream, settings);
RadFixedDocument document = provider.Import();
FixedDocumentSinglePagePresenter presenter =
new
FixedDocumentSinglePagePresenter();
// You may want to create property CurrentPage and bind it for the Page dependency property.
presenter.Page = document.Pages[0];
Regards,
Kammenthe Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
TEST
Top achievements
Rank 1
answered on 07 Aug 2012, 11:11 AM
Hi Team,
After display one PDF document when I want to show another PDF file I am getting error
"Object reference not set to an instance of an object."
Error occurs at Telerik.Windows.Documents.UI.FixedDocumentSinglePagePresenter.LoadPageContent.AnonymousMethod__1() ;
Please provide any help to solve the problem.
After display one PDF document when I want to show another PDF file I am getting error
"Object reference not set to an instance of an object."
Error occurs at Telerik.Windows.Documents.UI.FixedDocumentSinglePagePresenter.LoadPageContent.AnonymousMethod__1() ;
Please provide any help to solve the problem.
0
Hi TEST,
Thank you reporting this issue. We will need a bit more time to review the problem and provide fix or workaround. We will get back to you when we have any more information.
In the meanwhile let us know if we can help with anything else.
Kind regards,
Mike
the Telerik team
Thank you reporting this issue. We will need a bit more time to review the problem and provide fix or workaround. We will get back to you when we have any more information.
In the meanwhile let us know if we can help with anything else.
Kind regards,
Mike
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
Hi,
Is it possible to send us a sample project that reproduces this issue? We have tried the FixedDocumentSinglePagePresenter with different documents but everything worked as expected.
Looking forward to your reply.
Kind regards,
Kammen
the Telerik team
Is it possible to send us a sample project that reproduces this issue? We have tried the FixedDocumentSinglePagePresenter with different documents but everything worked as expected.
Looking forward to your reply.
Kind regards,
Kammen
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.