Horizontally change the next page..

7 posts, 1 answers
  1. TEST
    TEST avatar
    4 posts
    Member since:
    Jul 2012

    Posted 31 Jul 2012 Link to this post

    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.  
  2. Answer
    Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 02 Aug 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. TEST
    TEST avatar
    4 posts
    Member since:
    Jul 2012

    Posted 03 Aug 2012 Link to this post

    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,


  5. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 03 Aug 2012 Link to this post

    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.

  6. TEST
    TEST avatar
    4 posts
    Member since:
    Jul 2012

    Posted 07 Aug 2012 Link to this post

    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.
  7. Mike
    Admin
    Mike avatar
    640 posts

    Posted 10 Aug 2012 Link to this post

    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.

  8. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 14 Aug 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready