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.
It seems that this is a regression in R1 2023 SP1 after addressing this item:
Add functionality for a PDF form filler that supports text auto-sizing/shrinking like Adobe:
Open the Demo application >> Interactive Forms example and apply the Office2019Dark theme. You will notice that if the text field enters edit mode, it is difficult to read the input due to black fore color and black backcolor:
Run the project and load a document with bookmarks. Try to click the two buttons in order to switch between thumbnails/bookmarks.
private void radButton1_Click(object sender, EventArgs e)
{
this.radPdfViewer1.ShowThumbnails();
}
private void radButton2_Click(object sender, EventArgs e)
{
this.radPdfViewer1.ShowBookmarks();
}
Expected: clicking the two buttons should switch between bookmarks/thumbnails
Actual: the user is stuck to bookmarks
When exporting a RadFixedDocument, which contains a signature added with PdfProcessing a NotSupportedException is thrown: 'Stream does not support reading.'
Resolution: When exporting a digitally signed document a stream that allows both reading and writing should be passed to the PdfFormatProvider.
Example:
Stream outputStream = new FileStream("path", FileMode.OpenOrCreate, FileAccess.ReadWrite)
public TestRadForm()
{
InitializeComponent();
this.radPdfViewer1.LoadDocument(@"..\..\..\SampleDocument.pdf");
}
private void radButton1_Click(object sender, EventArgs e)
{
this.radPdfViewer1.Document.AcroForm.FlattenFormFields();
this.radPdfViewer1.SaveDocument(@"..\..\saved.pdf");
}
Hi,
Is there a way to get version and producer metadata from imported PDF files?
Here is how it looks in AdobeReader
Thanks in advance,