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)
Unplanned
Last Updated: 04 May 2020 09:08 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.
Completed
Last Updated: 03 Jun 2020 10:54 by ADMIN
Release R2 2020 SP1
The checkbox state is not correctly imported when the value is not specified
Unplanned
Last Updated: 01 May 2020 12:22 by ADMIN
Created by: Joe
Comments: 0
Category: PdfProcessing
Type: Feature Request
3
A submit-form action transmits the names and values of selected interactive form fields to a specified uniform resource locator (URL), presumably the address of a Web server that will process them and send back a response. Preserve the existing submit-form actions in the document and expose functionality enabling the users to create or modify such actions.
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: 24 Feb 2023 13:41 by ADMIN
Release R1 2023 SP1
The current implementation relies on valid cross-reference offsets in the PDF documents so that PDF objects are easily found and parsed. However, we may implement a mechanism for importing documents with invalid offsets for the objects inside the table.
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);
Completed
Last Updated: 13 Nov 2024 08:49 by ADMIN
Release 2024.4.1106 (Q4 2024)
Created by: Frank
Comments: 10
Category: PdfProcessing
Type: Feature Request
32
At this point, the justify alignment is not supported.
Note: When implementing this functionality, ensure that there an is appropriate public API for setting the text alignment to Justify
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.
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
Completed
Last Updated: 27 May 2021 11:28 by ADMIN
Release LIB 2021.2.531 (31/05/2021)

When the document contains Simple Font with predefined encoding and no ToUnicode mapping the text should be extracted with the following algorithm:

  • Map the character code to a character name according to the font’s Differences array.
  • Look up the character name in the Adobe Glyph List to obtain the corresponding Unicode value. 

Currently, the PdfProcessing library doesn't map the character code properly which leads to wrongly encoded text content.

Completed
Last Updated: 27 Feb 2023 12:17 by ADMIN
Release R1 2023 SP1

CryptographicException is thrown when saving with PdfStreamWriter or importing with PdfFormatProvider.

The exception: System.Security.Cryptography.CryptographicException: 'The input data is not a complete block.'

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: 16 Sep 2020 11:59 by ADMIN
Release R3 2020
Created by: Pochun
Comments: 0
Category: PdfProcessing
Type: Feature Request
2
Currently Type0Font class has CMap that can only be Identity-H. The Identity-V is a vertical version of Identity−H. The mapping is the same as for Identity−H.
Completed
Last Updated: 09 Dec 2020 09:44 by ADMIN
Release LIB 2020.3.1214 (07/14/2020)
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: 15 Sep 2021 13:07 by ADMIN
Release R3 2021
At this point, the import logic cannot automatically repair such documents and a NullReferenceException is thrown while reading them. You could repair the invalid file using the project from the attachment.
Unplanned
Last Updated: 17 Feb 2020 14:10 by ADMIN
Created by: Richard
Comments: 0
Category: PdfProcessing
Type: Feature Request
5

Implement Replace method(s) which enable the users to replace a concrete string/content/text in a PDF document (RadFixedDocument).

Workaround
Check the sample project attached ("RemoveText.zip") that demonstrates how to remove text separated into several text fragments.
Completed
Last Updated: 26 Oct 2021 10:37 by ADMIN
Release R3 2020
A KeyNotFoundException is thrown when trying to open a PDF containing specific Type1 font.
Unplanned
Last Updated: 13 Feb 2020 12:58 by ADMIN
Created by: Patrick
Comments: 1
Category: PdfProcessing
Type: Feature Request
2

Hello Telerik,

Last time we attempted this the <Viewbox> contents would not render and were empty upon xaml to pdf output. It would be great if you had this feature and we could move completely away from raster output to PDF for controls that contain Viewboxes. Otherwise we have really liked the PDF's created by the tool, the vector output is sharp as expected.

Thank you,

Patrick