Mulitpage Tiff Support

16 posts, 0 answers
  1. Joe Terhune
    Joe Terhune avatar
    11 posts
    Member since:
    Jan 2007

    Posted 29 Jun 2010 Link to this post

    There are a few posts about the posibility of viewing PDFs using the book control. Any chance this control will support multi-page tiffs in the future?
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Jun 2010 Link to this post

    Hello Jterhune,

    We don't have plans to support Tiff at the moment. We will enable the ms word documents with this release.

    All the best,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 30 Jun 2010 Link to this post

    Valio, if you support MS document with this release, does it mean, the content will flow from one page to another, or it's only on one page?
    Thanks!
    ..Ben
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Jun 2010 Link to this post

    Hello ..Ben,

    yes - it will flow!

    All the best,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 30 Jun 2010 Link to this post

    And you're saying it will be in Q2 using RichEdit?
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Jun 2010 Link to this post

    Hi ..Ben,

    yes - and all the credits goes to our editor team :)

    Regards,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 30 Jun 2010 Link to this post

    How many Beers do I need to bring over now? :-)

    Ok, this would probably resolve a big issue. Tell me if I right or wrong. If I resize the book at runtime (perhaps using ViewBox) when user changes browser size, one problem is that the text on the pages become small to read. However using Richeditor the user can enlarge the fonts to see them. So, enlarging the fonts, then the text will be forced to run into the next page since there is not enough room. And this should solve the problem of not loosing content by flowing to next page. Am I correct?
  9. Mike
    Admin
    Mike avatar
    640 posts

    Posted 07 Jul 2010 Link to this post

    Hi ..Ben,

    We will keep in mind this exact scenario and try to make it achievable with the upcoming release of of our Silverlight 4 tools and RadRichTextBox in particular. However we still experience some issues in the editing scenario with RadBook and most probably the editing in RadRichTextBox will not be enabled in this case. Document APIs like changing font size should work though.

    Best wishes,
    Mike
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 07 Jul 2010 Link to this post

    Mike, thanks for the response; You brought up a good point regarding "Editing". The scenarios that I see is for "Read-only" cases and does not require editing.

    I've done lots of testing with the book, and the book control is only "Truly" useful when the content flows from one page to another. Otherwise it remains very limited to only a few small (not commercial level) applications.

    I'm not asking for a perfect solution right of the bet, but the fact that your team is working on this, gives me hope that the book can come to life.
    Thanks for the reply!
    ..Ben
  11. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 07 Jul 2010 Link to this post

    I'm looking forward to see a cool app build with the RadBook by you Ben :)

    Sincerely yours,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 07 Jul 2010 Link to this post

    Valio, I had tried it with two prospects but due to certain features not available, they canceled the projects which had been very unfortunate and loss of my time.
    One prospect needed the left and right page to be considered as "One" surface for laying out controls (as one page), i.e. left page holds a list of videos and as the user clicks on the each entry, then the video plays on the right page. They also wanted to put "RADDocking" spread on the two pages with materials in different panes, just like magazines do. This was a magazine company!

    The second prospect wants to publish content (many continual pages in MS Word) in a book format that content flows from one page to another. This was a book publishing company. The lack of these abilities, it prevented me to continue with them. Hopefully, I can still go back and see if we can pick up where we left off. Then I can show you a real cool app. :-)
  13. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 08 Jul 2010 Link to this post

    Hi ..Ben,

    Good luck with the second one! The first one is still on the roadmap.

    Best wishes,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  14. Donna
    Donna avatar
    1 posts
    Member since:
    Oct 2013

    Posted 27 Dec 2013 Link to this post

    Hi there
    That exactly what i want to know.I know there are many third  party tool which supports to view PDFs using the book control.But it would be perfect if it supports multipage tiff files.Waiting for  it.
  15. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 31 Dec 2013 Link to this post

    Hello Donna,

    RadBook is basically an ItemsControl that doesn't really support a specific kind of content. It is instead a generic holder for different content that can be displayed on the pages. Unfortunately we don't provide a specific Tiff viewer to use within the book component.

    However, RadBook currently can be easily integrated with the RadPdfViewer as demonstrated in the PdfViewer Book Integration demo and display pdf files.

    Regards,
    Tina Stancheva
    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 >>
  16. Marvin
    Marvin avatar
    1 posts
    Member since:
    Jun 2014

    Posted 23 Dec 2014 Link to this post

    Hi Tina.

    I'm a new Telerik user and about a year ago you mentioned that the RadBook control can be intergrated into the RadPdfViewer control. Do you have a step-by-step instructional document or video for this method? It would be very helpful. Thanks.
  17. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 26 Dec 2014 Link to this post

    Hi Joe,

    No, we do not have a video or document that describes the approach used in the PdfViewer Book Integration demo. However, I will try to explain how to achieve such integration.
    1. Define a RadBook element in XAML
      <Grid>
          <telerik:RadBook x:Name="book" />
      </Grid>
    2. Define a DataTemplate that will be used as a LeftPageTemplate and RightPageTemplate of the book control and place a single FixedDocumentSinglePagePresenter inside the template. Then set the width of the page presenter and bind its Page property to the DataContext passed in the template.
      xmlns:ui="clr-namespace:Telerik.Windows.Documents.UI;assembly=Telerik.Windows.Controls.FixedDocumentViewers"
      ........
      <
      Grid>
          <Grid.Resources>
              <DataTemplate x:Key="pageTemplate">
                  <ui:FixedDocumentSinglePagePresenter Page="{Binding}" Width="325" Height="447" />
              </DataTemplate>
          </Grid.Resources>
              .....
      </Grid>
    3. Set the RightPageTemplate and LeftPageTemplate properties of RadBook to the new DataTemplate
      <Grid>
          ......
          <telerik:RadBook x:Name="book" LeftPageTemplate="{StaticResource pageTemplate}" RightPageTemplate="{StaticResource pageTemplate}"/>
      </Grid>
    4. Load the PDF file. You can do this by getting the file as a Stream from the file system and then use the RadFixedDocument class and its Import() method to create a PDF file from the stream. Then set the Pages collection of the fixed document as an ItemsSource of the book control
      void MainPage_Loaded(object sender, RoutedEventArgs e)
      {
          var documentStream = App.GetResourceStream(new Uri("/SilverlightApplication1;component/PDFFiles/SampleBook.pdf", UriKind.Relative)).Stream;
          RadFixedDocument doc = new PdfFormatProvider(documentStream, FormatProviderSettings.ReadOnDemand).Import();
          this.book.ItemsSource = doc.Pages;
      }
      This code snippet demonstrates loading the file in the Loaded event handler of RadBook but you can implement it anywhere in code. For example on button click.

    I also attached a project demonstrating this approach. Please give it a try and let me know if it works for you.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner