var stream = Application.GetResourceStream(
new
Uri(
"SampleData/doc.pdf"
, UriKind.Relative)).Stream;
pdfViewer.DocumentSource =
new
PdfDocumentSource(stream);
Stream stream = File.OpenRead(@
"\\192.168.1.100\pdf$\doc.pdf"
);
pdfViewer.DocumentSource =
new
PdfDocumentSource(stream);
Stream stream = File.OpenRead(@
"C:\pdf\doc.pdf"
);
pdfViewer.DocumentSource =
new
PdfDocumentSource(stream);
When I try to print from the demo I have blank pages when using internet explorer 11 last version, same when the application is installed in Out Of Browser Mode.
Curiously printing is okay with FireFox 52.9 esr.
Tried many printers and even Microsoft PDF Printer.
OS Windows 10 x64 v1803
Hello,
We have an old legacy Silverlight app we've been asked to try and add functionality. Our Silverlight is a typical line of business app that has a sql backend and we use WCF services to interface with SQL. We've been asked to come up with a way to display pdf files. On our internal server, we have the pdf's stored and we can return them via a stream via WCF. We can't just redirect users to an html page because of security reason.
The overview is we have sales orders in a grid, we'll need to create a grid column that contains a ticket number. The user will click on that if they want to see the ticket in pdf format. The click will need to initiate a call to a service endpoint what will lookup the pdf file by ticket number and return it as a stream. We need to then take that stream and display it in a now window. I was thinking about a taking the stream, and opening up a Rad Window to display the PDF Viewer. The controls we have from back then don't contain the PDF viewer.
Is this doable, are there any samples I can use to show this is viable to put in a req for the new control? Thanks
Hi,
We've been using the pdf viewer for years, and a new requirement has arisen around extraction of data. What we'd like to do is to allow users to draw a box around an area of the pdf on screen, and to export that area as a graphic (jpg / png etc).
Is this possible? I've had a look at the forums etc, but can't see that this question has been asked before.
(What we'd like to do in particular, is draw a box around a table and then use this API to parse the image and return structured data to us: https://azure.microsoft.com/en-us/services/cognitive-services/computer-vision/ )
Thanks, James.
Is there any way to validate Acroforms field ?
There's the value that can be can be checked when the IsRequired property is set to true, but what about the scripting validation? are they supported?
Is there any way to let the PdfViewer update its content after changing a field value by code?
In the documentation it is said:
"The UI of RadPdfViewer responds to interactive changes in field values (through mouse interaction with the UI) and it is not recommended to change the field collection in code. If you change the field values from your code, this may lead to unpredictable UI behavior and the applied changes will not be saved when using the SaveAs command."
A PdfViewer .UpdateAcroFormsFields() or Field.UpdateUI() method on the PdfViewer would be highly useful!
Are the accents (like é, è...) supported by the RadPdfViewer ?
When enterning accents characters in interactive forms (fugure1) and then exitting the text box, characters aren't rendered (figure2)
After saving and reopening the pdf document the edit shows inconstent content (figure3)