Skip to content

Commit 7abd863

Browse files
authored
Merge pull request #523 from telerik/dessyordanova-patch-7
Update prevent-text-cut-off-pdf-conversion-radwordsprocessing.md
2 parents de2c521 + b169655 commit 7abd863

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To resolve the issue with text cut off and ensure all characters, including spec
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

37-
```csharp
37+
```csharp
3838
internal class FontsProvider : Telerik.Windows.Documents.Extensibility.FontsProviderBase
3939
{
4040
private readonly string fontFolder = Environment.GetFolderPath(Environment.SpecialFolder.Fonts);
@@ -79,14 +79,14 @@ The following example shows how to handle *Tahoma, Arial and Segoe UI* fonts. Wh
7979
}
8080
}
8181
}
82-
```
82+
```
8383

8484
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)