Skip to content

Commit 45a52c2

Browse files
authored
Merge pull request #538 from telerik/dessyordanova-patch-12
Update prevent-text-cut-off-pdf-conversion-radwordsprocessing.md
2 parents 7c31525 + 2fb15d0 commit 45a52c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

knowledge-base/prevent-text-cut-off-pdf-conversion-radwordsprocessing.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ticketid: 1665364
1212
## Environment
1313

1414
| Version | Product | Author |
15-
| --- | --- | ---- |
15+
| ---- | ---- | ---- |
1616
| 2024.3.806| RadWordsProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)|
1717

1818
## Description
@@ -30,7 +30,7 @@ This KB article also answers the following questions:
3030
## Solution
3131
To resolve the issue with text cut off and ensure all characters, including special ones, are correctly displayed, implement a custom `FontsProvider`. This provider will supply the necessary font data to the PdfProcessing library, enabling it to correctly render all characters.
3232

33-
1. Implement a custom [FontsProvider]({%slug pdfprocessing-implement-fontsprovider%}) by extending `FontsProviderBase` and override the `GetFontData` method. This method should return the font data for the required fonts, including those with special characters.
33+
1\. Implement a custom [FontsProvider]({%slug pdfprocessing-implement-fontsprovider%}) by extending `FontsProviderBase` and override the `GetFontData` method. This method should return the font data for the required fonts, including those with special characters.
3434

3535
The following example shows how to handle *Tahoma, Arial and Segoe UI* fonts. When using other fonts, the custom implementation should be modified and further extended with the respective fonts.
3636

@@ -81,12 +81,12 @@ The following example shows how to handle *Tahoma, Arial and Segoe UI* fonts. Wh
8181
}
8282
```
8383

84-
2. Before converting your HTML document to PDF, set the custom `FontsProvider` to the `FontsProvider` property of the `FixedExtensibilityManager`.
84+
2\. Before converting your HTML document to PDF, set the custom `FontsProvider` to the `FontsProvider` property of the `FixedExtensibilityManager`.
8585

86-
```csharp
86+
```csharp
8787
Telerik.Windows.Documents.Extensibility.FontsProviderBase fontsProvider = new FontsProvider();
8888
Telerik.Windows.Documents.Extensibility.FixedExtensibilityManager.FontsProvider = fontsProvider;
89-
```
89+
```
9090

9191
Following these steps will ensure access to the necessary font data, preventing text from being cut off and ensuring all characters, including those with special characters, are properly rendered in the PDF document.
9292

0 commit comments

Comments
 (0)