Declined
Last Updated: 15 Oct 2019 17:38 by ADMIN

I was working on some acroforms and wherever I needed a space I kept on getting a different letter (Ê). On debugging the problem seems to be in the TryGetCharCode function of OpenTypeFontSource

Version: 2019.3.917

Below is copy of function

public override bool TryGetCharCode(int unicode, out int charCode)
        {
            bool result = false;
            ushort glyphId;
            charCode = CMap.MISSING_GLYPH_ID;
            if (this.TryGetGlyphId(unicode, out glyphId))
            {
                ushort uCharCode = CMap.MISSING_GLYPH_ID;
                CMapTable table = this.CMap.GetCMapTable(3, 0);
                if (table != null)
                {
                    result = table.TryGetCharId(glyphId, out uCharCode);
                }

                table = this.CMap.GetCMapTable(1, 0);
                if (table != null)
                {
                    result = table.TryGetCharId(glyphId, out uCharCode);
                }

                charCode = uCharCode;

                return result;
            }

            return false;
        }

The font used has 2 cmap tables: one with platformid of 3 and encodingid of 1, the other with platformid 1 and encodingid 0. According to https://docs.microsoft.com/en-us/typography/opentype/spec/cmap platform id 3 and encoding 1 is correct for windows so not sure why the first call to getcmaptable looks for encodingid 0.

Second of all even if I change it to the following

CMapTable table = this.CMap.GetCMapTable(3, 1);

if there is a second cmap with platformid of 1 whatever the result of the call with regards to platformid 3, the result will be overridden

I can say that if I add some checks so that if the first call succeeds it doesn't attempt the 2nd I do get the expected behaviour in the pdf and get spaces

 

As a note the FontFamily property of the OpenTypeFontSource is "Arial"

Completed
Last Updated: 18 Mar 2020 06:48 by ADMIN
Release LIB 2020.1.316 (03/16/2020)
By specification the destination string can be a string of up to 512 bytes. However, the current implementation supports strings of up to four bytes which leads to: ArgumentOutOfRangeException: 'bytes should be less or equal than 4.Parameter name: bytes'.
Completed
Last Updated: 05 Nov 2019 12:03 by ADMIN
Release LIB 2019.3.1111 (11/11/2019)
If the font family name is defined using a language other than English, the font is not applied to the content. This also can affect the performance as the font is read but it is not registered in the FontsRepository.
Unplanned
Last Updated: 22 Jul 2021 11:19 by ADMIN
Created by: Mark
Comments: 0
Category: PdfProcessing
Type: Feature Request
1
Import/export and API for creating page ArtBox should be added.
Unplanned
Last Updated: 16 Jan 2020 12:14 by ADMIN
Add support for documents with an invalid stream cross-reference table
Declined
Last Updated: 04 Feb 2020 08:14 by ADMIN
Created by: Dimitar
Comments: 1
Category: PdfProcessing
Type: Feature Request
1
Add support for R16 color space
Completed
Last Updated: 25 Mar 2020 15:08 by ADMIN
Release LIB 2020.1.316 (03/16/2020)

I am using the trial version of telerik for xamarin for .net core which was released last year, to convert pdf to text. Our service is hosted in Azure. The text which I get back, in certain cases the spaces are missing (say for example instead of 'I [am] here', it displays 'I[am]here'. This happens randomly. 

The code which we have used is as follows -

byte[] pdfBinary = Convert.FromBase64String(inputString);

 TextFormatProviderSettings textFormatProviderSettings = new TextFormatProviderSettings("\r\n", " ");
         
 var textFormatProvider = new TextFormatProvider();
 var pdfFormatProvider = new PdfFormatProvider();

 RadFixedDocument document = pdfFormatProvider.Import(pdfBinary);
 result = textFormatProvider.Export(document, textFormatProviderSettings);
Completed
Last Updated: 13 Nov 2024 08:50 by ADMIN
Release 2024.4.1106 (Q4 2024)
The Form object does not inherit the graphics state of the page
Completed
Last Updated: 28 Aug 2020 07:36 by ADMIN
Release LIB 2020.2.831 (31/08/2020)
NullReferenceException is thrown when importing a PDF document containing InlineImage with missing parameters
Unplanned
Last Updated: 14 Apr 2020 15:14 by ADMIN
Currently, the ListLevel object doesn't provide an API for changing the passing of the Bullets.
Unplanned
Last Updated: 29 Apr 2020 11:19 by ADMIN
Created by: Frank
Comments: 0
Category: PdfProcessing
Type: Feature Request
1
At this point, the setting paragraph Borders is not supported.

A possible workaround could be to draw a rectangle around the desired Block.

RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = document.Pages.AddPage();
page.Size = new Size(600, 800);
FixedContentEditor editor = new FixedContentEditor(page);
editor.Position.Translate(defaultLeftIndent, 50);

Block block = new Block();
block.InsertText("PDF");

editor.DrawBlock(block);

Block border = new Block();
border.GraphicProperties.StrokeColor = RgbColors.Black;
border.GraphicProperties.IsFilled = false;
border.GraphicProperties.IsStroked = true;
border.GraphicProperties.StrokeThickness = 1;
border.InsertRectangle(new System.Windows.Rect(block.Measure()));

editor.DrawBlock(border);
Duplicated
Last Updated: 06 May 2020 11:25 by ADMIN
Created by: Pochun
Comments: 1
Category: PdfProcessing
Type: Bug Report
1

Telerik Pdf Processing Cannot open the attached pdf file and exception occur.

How do i slove it?

Code :
  RadFixedDocument document = new PdfFormatProvider().Import(input);

Exception Message :
   System.UriFormatException  無效的 URI: 無法剖析主機名稱。

Source :
   Telerik.Windows.Documents.Fixed

Stack Trace :

於 System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   於 System.Uri..ctor(String uriString, UriKind uriKind)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Actions.UriActionObject.ToAction(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Annotations.LinkObject.ToAnnotationOverride(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Annotations.AnnotationObject.ToAnnotation(PostScriptReader reader, IRadFixedDocumentImportContext context, Double pageHeightInDip)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.Page.CopyPropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context, RadFixedPage fixedPage)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPagePropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.RadFixedDocumentImportContext.BeginImportOverride()
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.BaseImportContext.BeginImport(Stream pdfFileStream)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.PdfImporter.Import(Stream input, IPdfImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.ImportOverride(Stream input)
   於 Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Import(Stream input)
   於 Telerik.Windows.Documents.Common.FormatProviders.BinaryFormatProviderBase`1.Import(Byte[] input)
Completed
Last Updated: 12 Feb 2025 15:21 by ADMIN
Release 2025.1.205 (2025 Q1)
NullReferenceException has thrown when importing a form XObject with null Resources in PDF dictionary.
Unplanned
Last Updated: 17 Jun 2020 09:18 by ADMIN
The CIDToGIDMap value is exported as an indirect object. When the value is a PdfString ist should be directly exported and not referred as an indirect object. 
Unplanned
Last Updated: 17 Jun 2020 10:46 by ADMIN

Inserting a table with more than 10K rows is very slow.

Workaround: 

Use the following approach with SpreadStreamProcessing,SpreadProcessing and PdfProcessing:

 1) Generate an xlsx document with RadSpreadStreamProcessing 
 2) Import the document from 1) with RadSpreadProcessing 
 3) export 2) to PDF
Unplanned
Last Updated: 17 Jun 2020 15:35 by ADMIN

PdfProcessing: Signature field validation fails if a document is imported from a byte array of CopyStream property is false.

Workaround: Set the CopyStream property of the ImportSettings to true:

PdfFormatProvider formatProvider = new PdfFormatProvider();
formatProvider.ImportSettings.CopyStream = true;
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;
}

Completed
Last Updated: 28 Jul 2020 14:29 by ADMIN
Release R3 2020
System.ArgumentException when setting a password to a document with form fields
Unplanned
Last Updated: 04 Aug 2020 07:35 by ADMIN
Exception when merging file that contains notdef characters with PdfStreamWriter
Completed
Last Updated: 03 Dec 2020 12:42 by ADMIN
Release R1 2021

When using the Telerik.Documents.ImageUtils.JpegImageConverter default implementation in Blazor WebAssembly application the Magick.NET library doesn't load all of its assemblies.

Workaround:
Create a custom implementation of the JpegImageConverterBase class: Create Custom JpegImageConverter in .Net Standard.