Skip to content

Commit f562884

Browse files
committed
new KB - AcroForm Font's encoding
1 parent 9e7ed75 commit f562884

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

knowledge-base/apostrophe-character-replaced-copyright-symbol-acroform.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@ ticketid: 1692742
1818

1919
## Description
2020

21-
Learn how to address the issue where a special symbol (e.g. apostrophe character) is replaced by a copyright symbol in a filled PDF AcroForm using RadPdfProcessing. When the form is opened for editing, the character appears correctly as an apostrophe in the editor itself.
21+
Learn how to address the issue where a special symbol (e.g. apostrophe character) is replaced by a copyright (or other) symbol in a filled PDF AcroForm using RadPdfProcessing. When the form is opened for editing in a viewer (like Adobe Acrobat), the character appears correctly as an apostrophe in the editor itself.
22+
23+
>note This might be reproduced with other symbols as well, not only with the apostrophe character.
2224
2325
## Solution
2426

25-
This issue is likely caused by the font encoding used in the AcroForm fields. If the font does not properly support the character encoding for the apostrophe or is not embedded or referenced correctly, such substitution may occur.
27+
This issue is likely caused by the font encoding used in the [AcroForm]({%slug radpdfprocessing-model-interactive-forms-acroform%}) fields. If the font does not properly support the character encoding for the apostrophe or is not embedded or referenced correctly, such substitution may occur.
2628

27-
To resolve this issue, set the font of the AcroForm fields to one of the 14 standard PDF fonts, such as Helvetica, Times, or Courier. These fonts have broad character support and do not require embedding.
29+
To resolve this issue, set the font of the AcroForm fields to one of the [14 standard PDF fonts]({%slug radpdfprocessing-concepts-fonts%}), such as Helvetica, Times, or Courier. These fonts have broad character support and do not require embedding.
2830

2931
### Steps:
3032

3133
1. Iterate through all form fields in `RadFixedDocument.AcroForm.FormFields`.
32-
2. Check if the field type is `TextBox` or `CombTextBox`.
34+
2. Check if the field type is [TextBox]({%slug radpdfprocessing-model-interactive-forms-form-fields-textboxfield%}) or [CombTextBox]({%slug radpdfprocessing-model-interactive-forms-form-fields-combtextboxfield%}).
3335
3. Set the widget font and text properties font to `FontsRepository.HelveticaBold`.
3436

3537
### Code Implementation

libraries/radpdfprocessing/concepts/fonts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,5 @@ You can create fonts that are not explicitly registered. Creating a font that is
165165
* [TextFragment]({%slug radpdfprocessing-model-textfragment%})
166166
* [Preserving the Font in PDF Export from Excel]({%slug preserve-font-boldness-pdf-export-radspreadprocessing%})
167167
* [How to Prevent Text with Special Characters from Being Cut Off when converting HTML to PDF using RadWordsProcessing]({%slug prevent-text-cut-off-pdf-conversion-radwordsprocessing%})
168+
* [Resolving Apostrophe Character Being Replaced with Copyright Symbol in Filled PDF AcroForm]({%slug apostrophe-character-replaced-copyright-symbol-acroform%})
168169

libraries/radpdfprocessing/model/interactive-forms/acroform.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ The AcroForm class provides the following properties:
3232
* [FormField]({%slug radpdfprocessing-model-interactive-forms-form-fields%})
3333
* [FormFieldCollection class]({%slug radpdfprocessing-model-interactive-forms-formfieldcollection%})
3434
* [Widgets]({%slug radpdfprocessing-model-annotations-widgets%})
35-
* [Extracting Data from PDF Form Fields Using RadPdfProcessing]({%slug extract-pdf-form-fields-data-radpdfprocessing%})
35+
* [Extracting Data from PDF Form Fields Using RadPdfProcessing]({%slug extract-pdf-form-fields-data-radpdfprocessing%})
36+
* [Resolving Apostrophe Character Being Replaced with Copyright Symbol in Filled PDF AcroForm]({%slug apostrophe-character-replaced-copyright-symbol-acroform%})
3637

0 commit comments

Comments
 (0)