Telerik Forums
UI for WPF Forum
0 answers
91 views

So I've got an application that has been working for the last 2 years with no issue. All of a sudden on some machines the radPdfViewer will not load or display PDFs. I've updated the code to the most recent version of the Telerik WPF UI controls but nothing different. The application works fine on my dev machine and a handful of others, but there are 3 machines specifically that it fails to load on. No errors just does not load. Has anyone else encountered this issue?

Here is the relevant code snippet:
Uri documentSourceUri = new Uri("https://www.somedomain.com/printables/paview.php?get_permitNumber=" + permitNumber);
PdfDocumentSource documentSource = new PdfDocumentSource(documentSourceUri);
pdfViewer.DocumentSource = documentSource;

Clint
Top achievements
Rank 1
 asked on 02 Nov 2023
1 answer
82 views

Hey,

as in the title the event doesnt trigger. It does work with the Widget "WidgetContentType = TwoStatesContent".

Im using a custom form for testing: https://pdfhost.io/v/xQU.fKEP6_24_anlage01_bauantrag_2021https://pdfhost.io/edit?doc=5b66dfdd-fafc-4589-bad0-c1608a8ecf1c

Thanks

Dominik


Dimitar
Telerik team
 answered on 24 Oct 2023
1 answer
79 views

Hey,

I want to create a custom command that fills the selected field with text.

I don't want to use the context menu that you can add to the PDFViewer because, as far as I know, you can't select the field you want the data to be in. If I'm wrong here, please feel free to correct me.

You can see the context menu I'm referring to in the attached screenshot (Context Menu).

I hope you understand my intentions. If not, please ask, and I can clarify.

Thanks.

Dimitar
Telerik team
 answered on 17 Oct 2023
1 answer
192 views

The Fields in my pdf viewer are all collored white and they are not getting highlighted. As seen in example.png. I want to have the same behavior as in the example2.png.

 

Thanks for the help

Dimitar
Telerik team
 answered on 16 Oct 2023
1 answer
162 views

Hi,

I attached a little wpf application that open a pdf file (to put in building folder ) with an image inside.

I tested it in 4 machine (2 w11, 2 w10): I can see the image in 2 machine (1 w11, 1 w10), and I can't in the others (1 w11, 1 w10), what could be the problem?

Thank you

Luigi

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 21 Jul 2023
1 answer
225 views
  • I just downloaded the most recent trial
  • I installed the nuget package
  • I pasted the xaml from "PdfViewer FirstLook Demo" in the SDK Sample Repo
  • Everything is working fine in term of functionality at design and runtime
  • *Except the theming is AWFUL looking (though in your Telerik Demo App Win11 looks really great and that's what I need)

 

Also, can't install the SDK Sample Browser (it says I need sharepoint, which I installed and it still says I don't can't install it.. anyways it looks like old stuff why not use a recent installer?).

Honestly, I tried a month ago Devexpress, and I found their product WAY MORE easier to use; the theming mechanism is super intuitive (ThemeManager.ThemeName="Win11Light" that's it, just out of the box). Unless I'm missing something with Telerik?

I hope you can help me so I can eventually enjoy Telerik which looks nice in the Demo (But I wasted A LOT of time trying to resolve these 2 issues (theme and installing the SDK Browser)

Thank you.

Martin Ivanov
Telerik team
 answered on 14 Jul 2023
1 answer
151 views

Hi

Is it posible to add a custom button to the pdfviewer toolbar in UI for WPF?

 

 

Dinko
Telerik team
 answered on 07 Jul 2023
0 answers
77 views

Hello,

I use RadPdfViewer to view a PDF file in my WPF application, the PDF file has only one page and the contents are in the middle of the page, so I'm trying to zoom and focus on the middle of the page, I use the following code:


private void DocumentChanged(object sender, DocumentChangedEventArgs e)
        {
            pdfViewer.ScaleFactor = 1.3;
            var size = pdfViewer.Document.Pages[0].Size;
            pdfViewer.ScrollToVerticalOffset(size.Height * 0.3);
            pdfViewer.ScrollToHorizontalOffset(size.Width * 0.20);
        }

however, I only see the horizontal scroll working.

How can I zoom then scroll to vertical and horizontal offset?

Turk
Top achievements
Rank 1
 asked on 17 May 2023
1 answer
114 views

Hi Team,

We are using RadPdfViewer in .net 6 WPF application. It is failing to load 3D PDF content. We found the very old thread about this feature from around 2013 and it says this feature is not supported. Is there any option to show the 3D content in latest PDF control or any plans to release this functionality in near future ?

 

Thanks in Advance.

Peshito
Telerik team
 answered on 10 Apr 2023
1 answer
108 views
I have found what I believe is a bug in the PDF Processing library in which the resulting PDF does not "match" the contents of the PDFs imported into it. I have created a very simple example in which I attempt to import a single PDF document into another PDF using the PdfStreamWriter class and associated classes. I also tried using the PdfFormatProvider and receive the same results.

A few things to note regarding the original PDF being used: it was generated from a Telerik Report using the ReportProcessor's RenderReport method. So, this PDF was created entirely through Telerik libraries and I would expect that it should be able to be imported into another PDF document unaltered using the Telerik PDF Processing library.

But, in the example provided, if you click the First button, the application will open the PDF being used so you can see what it should look like. Notice the table on the first page is completely filled in. Clicking the second button attempts to import the original source PDF into a temporary file and displays that result: notice in this case, the table on the first page is missing some of the data that appears in the original.

As I have tried both the PdfStreamWriter and PdfFormatProvider classes with the exact same results, I am at a loss as to what is wrong. I would expect that the results should be the exact same since everything was created using Telerik libraries...
Martin
Telerik team
 answered on 06 Jan 2023
Narrow your results
Selected tags
Tags
+112 more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?