Unplanned
Last Updated: 27 Jul 2023 06:00 by Helen
 Specific text is not found in the document when using the TextSearch
Unplanned
Last Updated: 16 Oct 2024 13:05 by ADMIN
Created by: SATHEESH KUMAR
Comments: 2
Category: PdfProcessing
Type: Feature Request
4
Support for exporting WEBP images should be implemented.
Unplanned
Last Updated: 25 Jul 2023 13:29 by Abhi
Form fields height is wrong after export with a specific document. This leads to misplaced lines.
Completed
Last Updated: 15 May 2024 06:30 by ADMIN
Release 2024.2.426 (2024 Q2)

I have the following form:

From the screen shot above you can see that the line above 75 is perfectly ok i.e. it doesn't go and intersect with the lines of the 72

but when i perform the following code


            var InputFileWithInteractiveForms = "C:\\Users\\Abhishek.Shrestha\\Downloads\\Template\\form-ub04.pdf";
            var finaldPDFName = "C:\\Users\\Abhishek.Shrestha\\Downloads\\TestABCPDF\\output2322.pdf";
            List<byte[]> filledupForms = new List<byte[]>();
            PdfFormatProvider provider = new PdfFormatProvider();
                
                RadFixedDocument document = provider.Import(File.ReadAllBytes(InputFileWithInteractiveForms));

                var formfields = document.AcroForm.FormFields;

                var formFieldsCopy = new List<FormField>(document.AcroForm.FormFields);

                // Iterate over the copied form fields and replace the dot character in their names for solving merging issue
                foreach (var field in formFieldsCopy)
                {
                    field.Name = field.Name.Replace(".", "");
                }
                
               //added this as the values were being hidden by editable fields
                document.AcroForm.ViewersShouldRecalculateWidgetAppearances = true;

                filledupForms.Add(provider.Export(document));
                File.WriteAllBytes(finaldPDFName, provider.Export(document));

I get the following output:


               
Completed
Last Updated: 18 Jul 2023 12:24 by ADMIN
Release R3 2023
KeyNotFoundException: 'The given key was not present in the dictionary.' when getting glyph width with a standard font and WinAnsiEncoding.
Declined
Last Updated: 20 Sep 2023 12:14 by ADMIN

Hello, I had many problems with version 2023.1.117, latest stable 2023.2.606 is unusable also due to issue with scanned documents etc, so I tried 2020.2.703-hotfix, but I am getting other set of issues.

Unfortunately I cannot share the documents, since they are confidential.

With some documents I am getting this error:
Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfName' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Objects.FormXObject'.

 

Loading Code:

            PdfFormatProvider pdfFormatProvider = new();

            RadFixedDocument document = pdfFormatProvider.Import(bytes);

 

And stack trace:

   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.AppearanceConverter.ConvertFromDictionary(PostScriptReader reader, IPdfImportContext context, PdfDictionary dictionary)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.AppearanceConverter.Convert(Type type, PostScriptReader reader, IPdfImportContext context, IPdfPrimitive value)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.AppearanceConverter.ConvertFromIndirectReference(Type type, PostScriptReader reader, IPdfImportContext context, IndirectReference indirectReference)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.AppearanceConverter.Convert(Type type, PostScriptReader reader, IPdfImportContext context, IPdfPrimitive value)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.AppearancesConverter.TryImportAppearance(String key, PostScriptReader reader, IPdfImportContext context, PdfDictionary appearancesDictionary, Appearance& appearance)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.AppearancesConverter.ConvertFromDictionary(Type type, PostScriptReader reader, IPdfImportContext context, PdfDictionary dictionary)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.Converter.Convert(Type type, PostScriptReader reader, IPdfImportContext context, IPdfPrimitive value)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Data.PdfPropertyBase`1.PrepareValue(PostScriptReader reader, IPdfImportContext context, IPdfPrimitive value)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Data.LoadOnDemandPropertyBase`1.GetValueFromSource(Boolean shouldDecrypt)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Data.LoadOnDemandPropertyBase`1.GetValue(Boolean shouldDecrypt)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Annotations.AnnotationObject.get_Appearances()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Annotations.AnnotationObject.ToAnnotation(PostScriptReader reader, IRadFixedDocumentImportContext context, Double pageHeightInDip)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.Page.<>c__DisplayClass21_0.<CopyPageAnnotationsTo>b__0()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.ExceptionHandling.ExecutionHandler.TryHandleExecution[E](Action operation)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.Page.CopyPageAnnotationsTo(IRadFixedDocumentImportContext context, RadFixedPage fixedPage)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.<>c__DisplayClass59_2.<CopyAllPageProperties>b__2()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.ExceptionHandling.ExecutionHandler.TryHandleExecution[E](Action operation)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyAllPageProperties(PostScriptReader reader, IRadFixedDocumentImportContext context, List`1 contextPages, IList`1 pages)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPagePropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.RadFixedDocumentImportContext.BeginImportOverride()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.BaseImportContext.BeginImport(Stream pdfFileStream)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.PdfImporter.Import(Stream input, IPdfImportContext context)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.<>c__DisplayClass18_0.<ImportOverride>b__0()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.ExceptionHandling.ExecutionHandler.TryHandleExecution[E](Action operation)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.ImportOverride(Stream input)
   at Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Import(Stream input)
   at Telerik.Windows.Documents.Common.FormatProviders.BinaryFormatProviderBase`1.Import(Byte[] input)
   at Client.Wpf.Common.UserControls.PdfViewer.LoadBytesToPdfViewer(Byte[] bytes) in C:\Users\tomas.filip\source\repos\FiFi\Client.Wpf\Common\UserControls\PdfViewer.xaml.cs:line 65
   at System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
   at System.Reactive.ObserveOnObserverNew`1.DrainStep(ConcurrentQueue`1 q)
   at System.Reactive.ObserveOnObserverNew`1.DrainShortRunning(IScheduler recursiveScheduler)
   at System.Reactive.Concurrency.DispatcherScheduler.<>c__DisplayClass12_0`1.<Schedule>b__0()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)


Completed
Last Updated: 18 Jul 2023 06:14 by ADMIN
Release R2 2023 SP1
Created by: Adam
Comments: 0
Category: PdfProcessing
Type: Bug Report
0
ImageUtils dependencies are not correct.
Declined
Last Updated: 08 Jul 2023 11:07 by ADMIN
Created by: Ted
Comments: 1
Category: PdfProcessing
Type: Bug Report
0

I'm trying to use the PdfFormatProvider to import a pdf. I've tried to import multiple different pdfs with the code below, but they all throw an exception with "System.InvalidOperationException: 'Import not supported.'" and no other info. Is this a bug or am I not calling the correct method to import a pdf?

var providerPDF = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
providerPDF.Import(File.ReadAllBytes(@"D:\TestDocs\TestImage.pdf"));

Completed
Last Updated: 09 Aug 2023 06:45 by ADMIN
Release R3 2023

When a document contains Type1 font without Private Dict in some cases the glyphs are not rendered as expected.

Unplanned
Last Updated: 27 Jun 2023 06:17 by Ralf
Reading Type1 font glyph data when there is a table with differences tries to get the glyph by name but it is not found. 
Unplanned
Last Updated: 19 Jun 2023 13:29 by Alon Rosenberg
Export of a document with Type 1 font and custom encoding results in content loss.
In Development
Last Updated: 17 Feb 2025 07:50 by ADMIN
InvalidDataException: 'Unknown compression method (0x3C)' when importing a file with XRef table defined in an object with FlateDecode filter.
Completed
Last Updated: 05 Jul 2023 10:50 by ADMIN
Release R2 2023 SP1
With the current implementation, the optional Filter property is omitted on export.
Completed
Last Updated: 07 Sep 2023 13:17 by ADMIN
Release R3 2023
An exception is thrown when exporting an encoded document containing an image with Index ColorSpace.
Completed
Last Updated: 29 Jun 2023 06:01 by ADMIN
Release R2 2023 SP1
Invalid position when the TJ operator array contains empty values (<>).
Completed
Last Updated: 13 Nov 2024 08:50 by ADMIN
Release 2024.4.1106 (Q4 2024)
Created by: Ali
Comments: 0
Category: PdfProcessing
Type: Bug Report
1

When inserting ligature languages text into a block, the text doesn't appear on the generated PDF file.

With the following sample code, the issue can be reproduced:

private static string fileName = "Hello.pdf";
        static void Main(string[] args)
        {
            byte[] fontData = File.ReadAllBytes("calibri.ttf");
            FontFamily fontFamily = new FontFamily("Calibri");
            FontsRepository.RegisterFont(fontFamily, FontStyles.Normal, FontWeights.Normal, fontData);

            RadFixedDocument document = new RadFixedDocument();
            RadFixedPage page = new RadFixedPage();

            string text = "مرحبا";
            var reversedText = text.ToCharArray();
            Array.Reverse(reversedText);
            Block block = new Block();
            block.InsertText(new FontFamily("Calibri"), new string(reversedText));

            FixedContentEditor editor = new FixedContentEditor(page);
            editor.DrawBlock(block);
            document.Pages.Add(page);

            PdfFormatProvider provider = new PdfFormatProvider();
            using (Stream output = File.OpenWrite(fileName))
            {
                provider.Export(document, output);
            }

            ProcessStartInfo psi = new ProcessStartInfo();
            psi.FileName = fileName;
            Process.Start(fileName);
        }

Unplanned
Last Updated: 13 Oct 2023 06:48 by ADMIN
In Word when adding a right adjustment tabulator, tabbing after the tab stop distance does not respect the tabs afterward in Pdf.
Unplanned
Last Updated: 17 May 2023 10:31 by James
Widget font size is being set in Points by default instead of Dips.
Completed
Last Updated: 29 May 2023 12:40 by ADMIN
Release R2 2023

IOException when an object in the cross-reference stream has a negative offset.

"System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file."

Completed
Last Updated: 06 Jul 2023 07:54 by ADMIN
Release R2 2023 SP1

InvalidCastException is thrown when a name start character is followed by a literal string start character.

System.InvalidCastException: Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfInt' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfName'.