Completed
Last Updated: 27 Jun 2023 13:54 by ADMIN
Release R2 2023 SP1
InvalidCastException when importing link annotations that are referenced with indirect reference. 
Completed
Last Updated: 27 Jun 2023 12:39 by ADMIN
Release R2 2023 SP1
ADMIN
Created by: Deyan
Comments: 1
Category: PdfProcessing
Type: Bug Report
0
For some documents, the clippings and colors of the geometries are modified on an import-export scenario.
Completed
Last Updated: 27 Jun 2023 12:36 by ADMIN
Release R2 2023 SP1
When the bookmarks are declared as objects instead of a string they are not visible.
Completed
Last Updated: 27 Jun 2023 11:59 by ADMIN
Release R2 2023 SP1
Exception when the endstream is no on a new row 
Completed
Last Updated: 27 Jun 2023 11:19 by ADMIN
Release R2 2023 SP1
By specification, FitH destinations are defined with page and top position. A null value for top specifies that the current value of that parameter is to be retained unchanged. However, importing such a document with PdfProcessing leads to ArgumentOutOfRangeException:  'Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index'.
Completed
Last Updated: 27 Jun 2023 10:16 by ADMIN
Release R2 2023 SP1
The appearance dictionary specifies how the annotation is presented visually on the page. If the appearance missing or is empty in PDF document NullReferenceException is thrown on import. 

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. 
Completed
Last Updated: 26 Jun 2023 13:49 by ADMIN
Release R2 2023 SP1
The calculations are wrong, leading to single lines split by the LineSpacing set. As a result, the content of the PDF document is laid out on a bigger number of pages.

Workaround: Change the LineSpacingType to HeightType.Auto.
Completed
Last Updated: 26 Jun 2023 12:45 by ADMIN
Release R2 2023 SP1
The Helvetica-UltraCompressed font is not parsed correctly and is changed to Helvetica. 
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.
Unplanned
Last Updated: 07 Jun 2023 13:40 by Alon Rosenberg
InvalidDataException: 'Unknown compression method (0x3C)' when importing a file with XRef table defined in an object with FlateDecode filter.
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."

Unplanned
Last Updated: 25 May 2023 10:51 by Ali
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);
        }

Completed
Last Updated: 18 May 2023 07:25 by ADMIN
Release R2 2023
The PdfFormatProvider currently supports such an option (check the ImageCompression setting).
Completed
Last Updated: 18 May 2023 07:24 by ADMIN
Release R2 2023
When a document is exported with a cross-reference stream, the stream is missing the required according to the specification Length property. Although most of the viewers open the document without any issues, some cannot. Such documents cannot be opened in MS Edge.
Completed
Last Updated: 18 May 2023 06:25 by ADMIN
Release R2 2023

Trying to clone the Signature of a SignatureField leads to InvalidOperationException as the FieldName of the cloned signature is already set.

Workaround: Remove the signatures before the merging of the document:

private static void RemoveSignatures(RadFixedDocument document)
{
	List<FormField> signatures = document.AcroForm.FormFields.Where(ff => ff.FieldType == FormFieldType.Signature).ToList();
	if (signatures.Count > 0)
	{
		foreach (FormField signature in signatures)
		{
			document.AcroForm.FormFields.Remove(signature);
		}
	}

	List<SignatureWidget> signatureWidgets = document.Annotations.Where(a => a.Type == AnnotationType.Widget && a.GetType() == typeof(SignatureWidget)).Cast<SignatureWidget>().ToList();
	if (signatureWidgets.Count > 0)
	{
		foreach (var signatureWidget in signatureWidgets)
		{
			foreach (RadFixedPage page in document.Pages)
			{
				if (page.Annotations.Contains(signatureWidget))
				{
					page.Annotations.Remove(signatureWidget);
				}
			}
		}
	}
}

Completed
Last Updated: 17 May 2023 14:04 by ADMIN
Release R2 2023
Key not found exception when there are missing characters in the document. 
Completed
Last Updated: 17 May 2023 14:03 by ADMIN
Release R2 2023
Exception when trying to import symbols with the ZapfDingbats font
Completed
Last Updated: 17 May 2023 14:01 by ADMIN
Release R2 2023
In PDF, symbolic font programs, such as ZapfDingbats, have built-in encodings that are usually unique to each font, and ordinary their encoding cannot be overridden. When importing a document using a symbolic font with defined encoding, which overrides the build-in encoding, a KeyNotFoundException: 'The given key was not present in the dictionary.', is thrown.
Completed
Last Updated: 17 May 2023 11:35 by ADMIN
Release R2 2023

Wrong encoding is used when the PDF file contains font with custom encoding

Workaround:

foreach (var widget in field.Widgets)
{
    widget.TextProperties.Font = FontsRepository.Helvetica;
}