PdfViewer: Password protected documents cannot be opened
Workaround:
PdfFormatProvider provider = new PdfFormatProvider(); PdfImportSettings settings = this.radPdfViewer1.PdfViewerElement.ImportSettings; settings.UserPasswordNeeded += (s, a) => { a.Password = "1234"; }; provider.ImportSettings = settings; this.radPdfViewer1.LoadDocument(@"..\..\password.pdf");
The viewer is using a large amount of memory when scrolling a specific PDF file. After some point, an OutOfMemeory exception is thrown.
Workaround:
Build for the x64 platform
Good morning.
I'm using a pdfViewer instance in order to load pdf forms, with text fields to be edited by the users.
Loading is ok, editing is ok, the problem is when I go to save the edited document. When I save the document, if I don't click elsewhere in the document, in which case the content of the field is committed, the content of the field is not saved with the document. This happens either using the 'Save As' button or using the SaveDocument API function.
Probably it is my fault, since I'm new to PdfViewer: I can imagine that something like a commit command has to be available, but I'm not able to find it.
Can you help me, please?
Thank you in advance.
PS. I will attach three screenshots in order to let you understand better what I mean.
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.
Hello,
When opening this document (see attached), PDF viewer crashes with following exception.
To reproduce, open this document in the Pdf Viewer WinForms example, latest version.
Screenshot attached.
************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfHexString' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfLiteralString'.
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.ExceptionHandling.ExceptionHandler.TryHandle(Exception exception)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.PageContentManager.LoadPageContent(RadFixedPage fixedPage)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.ThreadSafePageContentManager.LoadPageContent(RadFixedPage page)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.LoadOnDemandPagesCacheManager.LoadPage(RadFixedPage page)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.LoadOnDemandPagesCacheManager.BeginUsingPage(RadFixedPage page)
at Telerik.Windows.Documents.Fixed.Text.TextPageProvider.CreateTextPage(RadFixedPage fixedPage, TextDocument parent)
at Telerik.Windows.Documents.Fixed.Text.TextDocument.CreateTextPage(Int32 index)
at Telerik.Windows.Documents.Fixed.Text.TextDocument.GetTextPage(Int32 index)
at Telerik.WinControls.PdfViewer.MouseHandlers.SelectionHandler.Initialize(RadFixedDocument document)
at Telerik.WinControls.PdfViewer.MouseHandlers.MouseHandlersController.InitializeHandlers(RadFixedDocument document)
at Telerik.WinControls.UI.RadPdfViewerElement.documentLoader_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
Is there a way to customize the box to request a signature?
Thanks in advance
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