This is reproducible with specific PDF files which use custom Encoding for the fonts of the field widgets.
WORKAROUND: Change the font of VariableContentWidgets before editing the field value. You should additionally call RecalculateContent() method of these widgets if the value of their corresponding fields is not edited. The following method may be used for changing the font of all existing widgets in the document:
private static void FixEncodingIssues(RadFixedDocument document)
{
foreach(Annotation annotation in document.Annotations)
{
VariableContentWidget widget = annotation as VariableContentWidget;
if(widget != null)
{
widget.TextProperties.Font = FontsRepository.Helvetica;
}
}
}
German umlauts (the characters 'Ä', 'Ö', 'Ü', 'ä', 'ö' and 'ü') will not be printed to a generated pdf file, but the other German "special" character "ß" works.
I use the trial version via the Telerik NuGet feed. A test program and my locally generated file are attached.
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();Inserting a table with more than 10K rows is very slow.
Workaround:
Use the following approach with SpreadStreamProcessing,SpreadProcessing and PdfProcessing: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)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);