In Development
Last Updated: 08 Jul 2025 09:08 by ADMIN

Error message: 

System.InvalidCastException: 'Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Forms.FormFieldsTree' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfArray'.'
In Development
Last Updated: 08 Jul 2025 09:10 by ADMIN
In Development
Last Updated: 01 Jul 2025 12:52 by ADMIN
InvalidCastException is thrown due to incorrectly parsed stream dictionary.
In Development
Last Updated: 24 Apr 2025 08:55 by ADMIN
AcroForms are not saved when splitting a document into pages. This leads to forms not being recognized when the file is imported back.
In Development
Last Updated: 15 Apr 2025 09:43 by ADMIN
Created by: Johannes
Comments: 0
Category: PdfProcessing
Type: Feature Request
3
In Development
Last Updated: 15 Aug 2025 10:56 by ADMIN
PdfProcessing: ArgumentException is thrown when importing a document with a duplicated filed names.
In Development
Last Updated: 29 Mar 2024 10:37 by ADMIN
SearchResult's GetWordBoundingRect returns the Rect of only the first word of the whole match.
In Development
Last Updated: 12 Feb 2025 15:18 by ADMIN
Scheduled for 2025.1.205 (2025 Q1)

This is the code snippet for reproducing the error message: 

        static void Main(string[] args)
        {
            string filePath = "Lorem ipsum dolor sit amet.pdf";
            //load a random document
            PdfFormatProvider provider = new PdfFormatProvider();
            RadFixedDocument originalDocument;
            using (Stream stream = File.OpenRead(filePath))
            {
                originalDocument = provider.Import(stream);
            }
            //draw something on the first page
            FixedContentEditor editor = new FixedContentEditor(originalDocument.Pages[0]);
            editor.GraphicProperties.IsFilled = true;
            editor.GraphicProperties.FillColor = RgbColors.Black;
            Telerik.Documents.Primitives.Rect Rect = new Telerik.Documents.Primitives.Rect(10, 10, 200, 100);
            editor.DrawRectangle(Rect);

            //export the pages as images and build a brand new document from the images
            SkiaImageFormatProvider imageProvider = new SkiaImageFormatProvider();
            imageProvider.ExportSettings.ImageFormat = SkiaImageFormat.Jpeg;
            imageProvider.ExportSettings.ScaleFactor = 0.8;
            imageProvider.ExportSettings.Quality = 80;


            RadFixedDocument doc = new RadFixedDocument();
            foreach (RadFixedPage page in originalDocument.Pages)
            {
                byte[] resultImage = imageProvider.Export(page);
                RadFixedPage pdfpage = doc.Pages.AddPage();
                editor = new FixedContentEditor(pdfpage);
                Stream imageStream = new MemoryStream(resultImage);
                editor.DrawImage(imageStream);
            }

            //export the pdf built from the images
            PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
            string outputPdf = @"output.pdf";
            File.Delete(outputPdf);
            using (Stream output = File.OpenWrite(outputPdf))
            {
                pdfFormatProvider.Export(doc, output);
            }
            Process.Start(new ProcessStartInfo() { FileName = outputPdf, UseShellExecute = true });
        }

Workaround:

        static void Main(string[] args)
        {
            string filePath = "Lorem ipsum dolor sit amet.pdf";
            //load a random document
            PdfFormatProvider provider = new PdfFormatProvider();
            RadFixedDocument originalDocument;
            using (Stream stream = File.OpenRead(filePath))
            {
                originalDocument = provider.Import(stream);
            }
            //draw something on the first page
            FixedContentEditor editor = new FixedContentEditor(originalDocument.Pages[0]);
            editor.GraphicProperties.IsFilled = true;
            editor.GraphicProperties.FillColor = RgbColors.Black;
            Telerik.Documents.Primitives.Rect Rect = new Telerik.Documents.Primitives.Rect(10, 10, 200, 100);
            editor.DrawRectangle(Rect);

            using (Stream output = File.OpenWrite(filePath))
            {
                provider.Export(originalDocument, output);
            }

            using (Stream stream = File.OpenRead(filePath))
            {
                originalDocument = provider.Import(stream);
            }
            //export the pages as images and build a brand new document from the images
            SkiaImageFormatProvider imageProvider = new SkiaImageFormatProvider();
            imageProvider.ExportSettings.ImageFormat = SkiaImageFormat.Jpeg;
            imageProvider.ExportSettings.ScaleFactor = 0.8;
            imageProvider.ExportSettings.Quality = 80;


            RadFixedDocument doc = new RadFixedDocument();
            foreach (RadFixedPage page in originalDocument.Pages)
            {
                byte[] resultImage = imageProvider.Export(page);
                RadFixedPage pdfpage = doc.Pages.AddPage();
                editor = new FixedContentEditor(pdfpage);
                Stream imageStream = new MemoryStream(resultImage);
                editor.DrawImage(imageStream);
            }

            //export the pdf built from the images
            PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
            string outputPdf = @"output.pdf";
            File.Delete(outputPdf);
            using (Stream output = File.OpenWrite(outputPdf))
            {
                pdfFormatProvider.Export(doc, output);
            }
            Process.Start(new ProcessStartInfo() { FileName = outputPdf, UseShellExecute = true });
        }

In Development
Last Updated: 17 Oct 2025 10:50 by ADMIN

When importing a document with an invalid creation or modification date, an exception is thrown:

  • FormatException: 'The input string '' was not in a correct format.'
  • ArgumentOutOfRangeException: 'Year, Month, and Day parameters describe an unrepresentable DateTime.'
In Development
Last Updated: 14 Oct 2025 07:50 by ADMIN
KeyNotFoundException is thrown when importing a document with a structure element that references a page that is not part of the page collection.
In Development
Last Updated: 08 Jul 2025 08:58 by ADMIN
Specific TextFragments that are positioned a little further from the previous text are incorrectly recognized as word start by the text recognizer engine and result in additional white spaces in the exported text.  
In Development
Last Updated: 17 Oct 2025 11:04 by ADMIN

When loading a PDF generated with PdfProcessing in PDF Accessibility Checker 2021 (PAC) an exception is thrown: "Object reference not set to an instance of an object".

It is reproducible with all PdfComplianceLevel export options.

In Development
Last Updated: 08 Jul 2025 09:48 by ADMIN
Missing spaces from TextFragments when exporting to plain text.
In Development
Last Updated: 16 Dec 2024 12:53 by ADMIN
StackOverflowException is thrown when applying filter for SVG.
In Development
Last Updated: 14 Aug 2025 14:11 by Dan
Manually set form field values are not preserved when opened in Adobe Acrobat.
In Development
Last Updated: 18 Sep 2025 13:12 by ADMIN
ArgumentNullException is thrown when importing a restricted, AES-encrypted document.
In Development
Last Updated: 17 Oct 2025 11:33 by ADMIN
The underline gets over the text when the line spacing is set to exact, spacing after is set to 0, and the font size is less than 12.
In Development
Last Updated: 17 Oct 2025 10:30 by ADMIN
Created by: Petar
Comments: 0
Category: PdfProcessing
Type: Bug Report
0
Fields are no longer highlighted after import. 
In Development
Last Updated: 17 Oct 2025 12:49 by ADMIN
Field border appearance are lost during import-export of the document
In Development
Last Updated: 17 Oct 2025 13:36 by ADMIN
When decoding the image with a CCITTFaxDecode filter an exception is thrown: NullReferenceException: 'Object reference not set to an instance of an object.'
1 2