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

Mulitpage Tiff Support

15 Answers 129 Views
Book
This is a migrated thread and some comments may be shown as answers.
Joe Terhune
Top achievements
Rank 2
Joe Terhune asked on 29 Jun 2010, 03:47 PM
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?

15 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 30 Jun 2010, 07:17 AM
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
0
Ben Hayat
Top achievements
Rank 2
answered on 30 Jun 2010, 03:54 PM
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
0
Valentin.Stoychev
Telerik team
answered on 30 Jun 2010, 03:57 PM
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
0
Ben Hayat
Top achievements
Rank 2
answered on 30 Jun 2010, 04:03 PM
And you're saying it will be in Q2 using RichEdit?
0
Valentin.Stoychev
Telerik team
answered on 30 Jun 2010, 04:05 PM
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
0
Ben Hayat
Top achievements
Rank 2
answered on 30 Jun 2010, 04:15 PM
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?
0
Mike
Telerik team
answered on 07 Jul 2010, 07:15 AM
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
0
Ben Hayat
Top achievements
Rank 2
answered on 07 Jul 2010, 08:26 AM
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
0
Valentin.Stoychev
Telerik team
answered on 07 Jul 2010, 08:33 AM
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
0
Ben Hayat
Top achievements
Rank 2
answered on 07 Jul 2010, 08:50 AM
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. :-)
0
Valentin.Stoychev
Telerik team
answered on 08 Jul 2010, 10:17 AM
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
0
Donna
Top achievements
Rank 1
answered on 27 Dec 2013, 08:08 AM
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.
0
Tina Stancheva
Telerik team
answered on 31 Dec 2013, 03:08 PM
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 >>
0
Marvin
Top achievements
Rank 1
answered on 23 Dec 2014, 08:31 PM
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.
0
Martin Ivanov
Telerik team
answered on 26 Dec 2014, 03:23 PM
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.

 
Tags
Book
Asked by
Joe Terhune
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
Ben Hayat
Top achievements
Rank 2
Mike
Telerik team
Donna
Top achievements
Rank 1
Tina Stancheva
Telerik team
Marvin
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or