Completed
Last Updated: 05 Oct 2021 07:41 by Dennis
Release LIB 2021.3.1011 (11 Oct 2021)

When importing a document containing a CIDFont with default width (DW) set as PdfReal (double) an exception is thrown: System.InvalidCastException: 'Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfReal' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfInt'.'

44 0 obj
<< /BaseFont /NotoSansMono-Medium /CIDSystemInfo << ... >> /CIDToGIDMap /Identity /DW 600.00000 ... /Subtype /CIDFontType2 /Type /Font >>
endobj

According to the PDF Specification: DW - integer - (Optional) The default width for glyphs in the CIDFont. Default value: 1000.

Completed
Last Updated: 04 Oct 2021 13:59 by Matthew
Release LIB 2021.3.1011 (11 Oct 2021)
When importing a document containing Widget annotations with an appearance set that contains Marked content (BMC-EMC) with no Field Type (FT) operands set an exception is thrown: System.NullReferenceException: 'Object reference not set to an instance of an object.'
Completed
Last Updated: 04 Oct 2021 09:52 by ADMIN
Release R3 2021 SP1

When using the RadFixedDocument.Pages.AddPage() method RadFixedPages are created without PageNumber set.

Such behavior is observed when exporting a RadFlowDocument to a RadFixedDocument using the ExportToFixedDocument as well.

Unplanned
Last Updated: 24 Sep 2021 13:10 by ADMIN
ADMIN
Created by: Nikolay Demirev
Comments: 0
Category: PdfProcessing
Type: Feature Request
0

PDF / X: the X stands for exchange; a PDF / X document can in principle be processed by any printing company. This means, for example, that only CMYK colors may be used, that all fonts must be present in the PDF, that the document must not be encrypted, and so on.

Declined
Last Updated: 23 Sep 2021 08:46 by ADMIN
Created by: Linus
Comments: 2
Category: PdfProcessing
Type: Bug Report
0

Hi, 

 

I am trying to convert a HTML body to a PDF using HtmlFormatProvider and PdfFormatProvider. 

It works well when I try to create a pdf with "normal" characters, but when I use characters like "åäö" the characters is either missing or replaced with other character. 

I have found a similiar issue but that was due to the fact that the person was using .net core I am using .net framework. 

Am I missing something when I am converting it to a PDF or is there a limitation with special characters like "åäö". 

 


        private string CreateAndStorePdf(string htmlBody)
        {
            Telerik.Windows.Documents.Extensibility.JpegImageConverterBase jpegImageConverter = new Telerik.Documents.ImageUtils.JpegImageConverter();
            Telerik.Windows.Documents.Extensibility.FixedExtensibilityManager.JpegImageConverter = jpegImageConverter;

            var provider = new HtmlFormatProvider();
            var document = provider.Import(htmlBody);
            var exportProvider = new PdfFormatProvider();
            var fixedExportProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
            var fileName = "_original.pdf";

            try
            {
                using (var outputStream = new MemoryStream())
                {
                    exportProvider.Export(fixedExportProvider.ExportToFixedDocument(document), outputStream);
                    outputStream.Seek(0, SeekOrigin.Begin);
                    var pdfBytes = new BinaryReader(outputStream).ReadBytes((int)outputStream.Length);

                    return fileName;
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex, "The pdf could not be created.");
                return null;
            }
        }

 

 

Completed
Last Updated: 20 Sep 2021 13:33 by ADMIN
Release R3 2021 SP1

ArgumentOutOfRangeException is thrown when importing a document because of wrongly parsing to Unicode mapping.

System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index'

Completed
Last Updated: 15 Sep 2021 13:14 by ADMIN
Release R3 2021
Unable to import field with a name the is not specified as a literal string
Completed
Last Updated: 15 Sep 2021 13:13 by ADMIN
Release R3 2021
Exception when importing a file with LabColor gradients 
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: 13 Sep 2021 09:28 by ADMIN

When exporting merged documents when they are imported with ImportSettings set to ReadOnDemand an exception is thrown: KeyNotFoundException: 'The given key was not present in the dictionary.'

 

Completed
Last Updated: 10 Sep 2021 10:38 by ADMIN
Release R2 2020
Created by: David
Comments: 4
Category: PdfProcessing
Type: Feature Request
23
Currently adding an Image content element with ImageSource instantiated with a PNG file format leads to NotSupportedException: 'Can not export other than Jpeg and Jpeg2000 and ImageQuality different than High', when exporting the document.

Support for adding PNG images and exporting to PDF should be implemented for PdfProcessing for .NET Standard scenario.
Unplanned
Last Updated: 07 Sep 2021 11:12 by ADMIN

When a document containing a SignatureField is exported with the IsEncrypted property set to true, a not set UserPassword is required to open it, which makes it impossible to be opened. An InvalidOperationException is thrown with the message "Password is not correct." when importing with PdfProcessing; Adobe Acrobat also doesn't recognize the password.

Workaround: Exporting with AES256 encryption does not have this problem:

provider.ExportSettings = new PdfExportSettings
{
	IsEncrypted = true,
	EncryptionType = EncryptionType.AES256
};

 

Unplanned
Last Updated: 07 Sep 2021 09:20 by ADMIN
Handle the case where "Pages" is used in an actual page. This works in Adobe.
Unplanned
Last Updated: 07 Sep 2021 06:51 by ADMIN
Wrong image size and position when converting specific document to pdf
Completed
Last Updated: 01 Sep 2021 12:16 by ADMIN
Release R1 2021
Currently, importing a document with non-embedded TrueType font will result in a font instance with an empty font source. Support should be added for providing custom font data of TrueType fonts during document import.
Completed
Last Updated: 01 Sep 2021 07:44 by ADMIN
Release R3 2021
Scrolling a large document causes OutOfMemoryException
Unplanned
Last Updated: 10 Aug 2021 08:40 by ADMIN
Created by: Prashant
Comments: 0
Category: PdfProcessing
Type: Feature Request
6
This will allow the import of Tensor-product patch mesh gradients. Currently, importing documents that contain ShadingType 7 results in NotSupportedShadingTypeException.
Completed
Last Updated: 03 Aug 2021 14:26 by ADMIN
An exception when the NormalContentSource of a widget is null and one flatten the form fields 
Unplanned
Last Updated: 22 Jul 2021 11:22 by ADMIN
Created by: Suren
Comments: 4
Category: PdfProcessing
Type: Feature Request
5

This could be implemented by linking to RadFixedPages or Bookmarks.

Until this feature is developed this could be custom created with the help of Link annotations:

RadFixedPage toc = new RadFixedPage();
document1.Pages.Insert(0, toc);

FixedContentEditor editor = new FixedContentEditor(toc);

foreach (RadFixedPage page in document1.Pages)
{
	int pageNumber = document1.Pages.IndexOf(page);

	if (pageNumber > 0)
	{
		int factor = 20;

		int offsetX = 70;
		int offsetY = 20 + factor * pageNumber;
		editor.Position.Translate(offsetX, offsetY);

		Block block = new Block();
		block.GraphicProperties.FillColor = new RgbColor(255, 5, 99, 193);
		block.InsertText($"Page {pageNumber}");
		Size blockSize = block.Measure();
		editor.DrawBlock(block);

		Location location = new Location
		{
			Left = 0,
			Top = 0,
			Zoom = 0,
			Page = page
		};

		GoToAction goToAction = new GoToAction();
		goToAction.Destination = location;

		Link uriLink = toc.Annotations.AddLink(goToAction);
		uriLink.Rect = new Rect(offsetX, offsetY, blockSize.Width, blockSize.Height);
	}
}

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.