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

Horizontally change the next page..

6 Answers 124 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
TEST
Top achievements
Rank 1
TEST asked on 31 Jul 2012, 10:04 AM
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.  

6 Answers, 1 is accepted

Sort by
0
Accepted
Kammen
Telerik team
answered on 02 Aug 2012, 11:19 AM
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

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,


0
Kammen
Telerik team
answered on 03 Aug 2012, 09:07 AM

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,

Kammen
the 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.
0
Mike
Telerik team
answered on 10 Aug 2012, 02:40 PM
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

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kammen
Telerik team
answered on 14 Aug 2012, 07:39 AM
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

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PDFViewer
Asked by
TEST
Top achievements
Rank 1
Answers by
Kammen
Telerik team
TEST
Top achievements
Rank 1
Mike
Telerik team
Share this question
or