Completed
Last Updated: 11 Aug 2023 04:05 by ADMIN

Is there a way to load this RadFixedDocument into a RadPdfViewer without writing the document to a file first and then loading it in the viewer?

Workaround:

You can achieve the desired functionality by exporting the RadFixedDocument to a MemoryStream instead of a file in the file system and then load it in the PdfViewer: 

RadFixedDocument document = CreateRadFixedDocument();

PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
Stream ms = new MemoryStream();
pdfFormatProvider.Export(document, ms);

radPdfViewer1.LoadDocument(ms);

 

Completed
Last Updated: 07 Jun 2023 10:39 by ADMIN
Release R2 2023 (2023.2.606)
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: PdfViewer
Type: Feature Request
1
According to PDF format specification, there are three valid encoding name values (MacRomanEncoding, MacExpertEncoding and WinAnsiEncoding). There are documents that instead of skipping the optional Encoding property, are writing invalid /NULL name value in the font dictionary. Currently, in this invalid document scenario RadPdfViewer throws and catches Exception and this results in missing text content. 

We may handle this invalid document scenario by ignoring the invalid Encoding value.
Completed
Last Updated: 26 Sep 2022 12:36 by ADMIN
Release R2 2022
ADMIN
Created by: Tanya
Comments: 2
Category: PdfViewer
Type: Feature Request
17

			
Completed
Last Updated: 29 Nov 2021 16:38 by ADMIN
Release R1 2022
Please refer to the attached gif file and notice the loading delay when scrolling to a specific page. It would be nice to optimize this experience.
Completed
Last Updated: 14 Sep 2021 06:56 by ADMIN
ADMIN
Created by: Stefan
Comments: 10
Category: PdfViewer
Type: Feature Request
18
Import documents that use this type of encryption. Currently, a handled NotSupportedEncryptionException with message "The encryption method with code 5 is not supported." is thrown while importing such a document.
Completed
Last Updated: 07 May 2021 11:46 by ADMIN
Release R2 2021
One should be able to change the default SignSignatureDialog. Its buttons event handlers should be made virtual as so one can override the default behavior as well.
Completed
Last Updated: 19 Feb 2021 10:21 by ADMIN
Release R3 2020
ADMIN
Created by: Hristo
Comments: 0
Category: PdfViewer
Type: Feature Request
2
This is Unicode (UTF-16BE) encoding for the Adobe-GB1 character collection; contains mappings for all characters in the GB18030-2000 character set.

Described on page 443 in Pdf Reference 1.7.
Completed
Last Updated: 11 Jan 2021 13:19 by ADMIN
Release R1 2021
Created by: Daniel
Comments: 1
Category: PdfViewer
Type: Feature Request
0
Is there a way to customize the box to request a signature?

 

 

Thanks in advance
Completed
Last Updated: 11 Jan 2021 09:36 by ADMIN
Release R1 2021
ADMIN
Created by: Peter
Comments: 4
Category: PdfViewer
Type: Feature Request
23
A dictionary specifying any resources (such as fonts and images) required by the form XObject (see Section 3.7 from http://partners.adobe.com/public/developer/en/pdf/PDFReference.pdf
Completed
Last Updated: 21 Aug 2020 08:17 by ADMIN
Release R3 2020 (LIB 2020.2.825)
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: PdfViewer
Type: Feature Request
3

			
Completed
Last Updated: 17 Feb 2020 09:21 by ADMIN
Release R1 2020 SP1

I am using RadPDFViewer, i built a specific toolbar for manage the funcionalities of the viewer.

I didn´t found the any event when the current page is changed in viewer. I would like to show a label "Page NN of TT".

 I found this "https://www.telerik.com/forums/page-changed-detected", but didn´t have this event in RadPDFViewer.

 

Whats the better solution for the raise event when the current page displayed is changed? 

 

Can you help me ?!? 

Completed
Last Updated: 13 Mar 2019 17:15 by ADMIN
Release 2018.3.1016
ADMIN
Created by: Stefan
Comments: 1
Category: PdfViewer
Type: Feature Request
16
Add bookmarks functionality
Completed
Last Updated: 13 Jul 2018 08:27 by Samantha
ADMIN
Created by: Stefan
Comments: 3
Category: PdfViewer
Type: Feature Request
10

			
Completed
Last Updated: 12 Oct 2017 06:36 by ADMIN
ADMIN
Created by: Nikolay
Comments: 7
Category: PdfViewer
Type: Feature Request
20
It will be a great addition of RadPdfViewer if it supports forms/controls.
Completed
Last Updated: 15 Aug 2017 10:54 by ADMIN
The events should provide information as to when a page is about to be rendered and when it is displayed in the control.
Completed
Last Updated: 15 Aug 2017 10:28 by ADMIN
Completed
Last Updated: 03 May 2017 06:40 by ADMIN
ADMIN
Created by: Ralitsa
Comments: 10
Category: PdfViewer
Type: Feature Request
21
1. Load file which is signed with digital signature
2. Scroll to the end of document - you will see that the signature is not visible.  
Completed
Last Updated: 04 Jan 2017 15:01 by ADMIN
Note: If you use the next button to navigate to the next search result, the user should be notified when the end of the document is reached as well.

Workaround:

public Form1()
{
    InitializeComponent(); 
    this.radPdfViewer1.LoadDocument(@"..\..\..\samplePdf.pdf"); 

    //create a new button
    CommandBarButton findNext = new CommandBarButton();
    findNext.Text = PdfViewerLocalizationProvider.CurrentProvider.GetLocalizedString(PdfViewerStringId.NavigatorFindNextButton);
    findNext.Click += findNext_Click;
    findNext.Image = this.radPdfViewerNavigator1.FindNextButton.Image;
    //hide the currently available button
    this.radPdfViewerNavigator1.DefaultStrip.Items.Add(findNext);
    this.radPdfViewerNavigator1.FindNextButton.Visibility = ElementVisibility.Collapsed;
}

private void findNext_Click(object sender, EventArgs e)
{
    if (this.radPdfViewerNavigator1.SearchTextBox.Text != string.Empty)
    { 
        if (this.radPdfViewerNavigator1.AssociatedViewer == null || this.radPdfViewerNavigator1.AssociatedViewer.Document == null)
        {
            return;
        }

        PropertyInfo internalDocumentPI = typeof(RadFixedDocument).GetProperty("InternalDocument", BindingFlags.NonPublic | BindingFlags.Instance);
        object internalDocument = internalDocumentPI.GetValue(this.radPdfViewerNavigator1.AssociatedViewer.Document, null);
        object textSearch = internalDocument.GetType().GetProperty("TextSearch", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(internalDocument, null);
        MethodInfo mi = textSearch.GetType().GetMethod("Find", BindingFlags.Public | BindingFlags.Instance);
        TextSearchOptions searchOptions = new TextSearchOptions(false);
        SearchResult searchResult = mi.Invoke(textSearch, new object[2] { this.radPdfViewerNavigator1.SearchTextBox.Text, searchOptions }) as SearchResult;
        if (searchResult.Result != null)
        {
            this.radPdfViewerNavigator1.AssociatedViewer.Select(searchResult);
        }
        else
        {
            RadMessageBox.Show("No matches");
        }
    }
}
Completed
Last Updated: 14 Dec 2016 12:22 by ADMIN
ADMIN
Created by: Nikolay
Comments: 0
Category: PdfViewer
Type: Feature Request
8
It will be a nice addition to RadPdfViewer if it can export page thumbnails as an image.
Completed
Last Updated: 23 Nov 2016 12:39 by ADMIN
Add an option to save and/or email document. It is especially useful if a file stream is loaded into the viewer.

Currently, the following approach can be used: 
private Stream GetPdfStream()
{

Type documentType = this.radPdfViewer1.PdfViewerElement.Document.GetType();

FieldInfo internalDocumentField = documentType.GetField("internalDocument", BindingFlags.NonPublic | BindingFlags.Instance);

object internalDocumentValue = internalDocumentField.GetValue(this.radPdfViewer1.PdfViewerElement.Document);

FieldInfo formatProviderField = internalDocumentValue.GetType().GetField("formatProvider", BindingFlags.NonPublic | BindingFlags.Instance);

PdfFormatProvider formatProvder = formatProviderField.GetValue(internalDocumentValue) as PdfFormatProvider;

FieldInfo field = formatProvder.GetType().GetField("stream", BindingFlags.NonPublic | BindingFlags.GetField | BindingFlags.Instance);

Stream stream = field.GetValue(formatProvder) as Stream;
return stream;
}
1 2