You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/DigitalSignature.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -929,7 +929,7 @@ document.destroy();
929
929
930
930
## Sign existing signature field
931
931
932
-
This section explains how to apply a digital signature to an existing unsigned signature field in a PDF form. The JavaScript PDF library lets you locate predefined signature fields and sign them without modifying the document layout. This is especially useful for templates where signature placeholders already exist. By applying a certificate and signature settings, you can securely complete the signature field and follow standard PDF signing workflows.
932
+
This section explains how to sign an existing unsigned signature field in a PDF using the JavaScript PDF library. You can locate predefined signature fields and apply a digital signature directly by calling `field.setSignature()`, without altering the document layout. This is ideal for templates where signature placeholders already exist, allowing you to securely complete the field using a certificate and signature settings.
This section explains how to remove one or more digital signatures from a PDF and restore the document to an signed or unsigned state. The JavaScript PDF library allows you to clear signature dictionaries so the file can be edited, re‑signed, or corrected. Removing a signature also invalidates any associated certification, making the document fully editable again. This is useful when preparing a PDF for updates or resolving signature‑related issues.
982
+
This section explains how to remove an existing digital signature from a PDF by using `removeField()`to delete the signature field entirely. Removing the field clears the signature dictionary, allowing the document to be edited, corrected, or re‑signed as needed. This is useful when preparing a PDF for updates or resolving signature‑related issues.
983
983
984
984
{% tabs %}
985
985
{% highlight typescript tabtitle="TypeScript" %}
@@ -990,9 +990,9 @@ let document: PdfDocument = new PdfDocument(data);
990
990
// Access loaded form
991
991
let form: PdfForm = document.form;
992
992
// Access the loaded form field
993
-
let field: PdfSignatureField = form.fieldAt(0) as PdfSignatureField;
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/FormFields.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -853,11 +853,11 @@ document. Destroy();
853
853
854
854
## Add a date field to a PDF form
855
855
856
-
This section shows how to add a date field to a PDF form, allowing users to enter or select a date within the document. The JavaScript PDF library lets you configure the date field’s appearance, format, and behavior. You can also use `dateField.actions` to trigger custom scripts or validations when the field is focused, changed, or submitted.
856
+
This section shows how to add a date field to a PDF form, allowing users to enter or select a date within the document. The JavaScript PDF library lets you configure the date field’s appearance, format, and behavior. You can use `dateField.actions` to trigger custom scripts or validations when the field is focused, changed, or submitted.
857
857
858
858
{% tabs %}
859
859
{% highlight typescript tabtitle="TypeScript" %}
860
-
import {PdfDocument, pdfPage, PdfForm, PdfTextBoxField, PdfJavaScriptAction, PdfFormFieldsTabOrder } from '@syncfusion/ej2-pdf';
860
+
import {PdfDocument, pdfPage, PdfForm, PdfTextBoxField, PdfJavaScriptAction } from '@syncfusion/ej2-pdf';
861
861
862
862
// Create a new PDF document
863
863
let document: PdfDocument = new PdfDocument();
@@ -895,7 +895,7 @@ var page = document.addPage();
895
895
var form = document.form;
896
896
// Create a new text box field
897
897
const field = new ej.pdf.PdfTextBoxField(page, 'fieldF', {
let document: PdfDocument = new PdfDocument(data);
@@ -98,7 +98,7 @@ let list: PdfUnorderedList = new PdfUnorderedList(items, {
98
98
brush: new PdfBrush({ r: 0, g: 255, b: 255 }),
99
99
indent: 30,
100
100
textIndent: 50,
101
-
style: PdfNumberStyle.numeric,
101
+
style: PdfUnorderedListStyle.disk,
102
102
delimiter: ')'
103
103
});
104
104
// Draw the unordered list on the page
@@ -125,7 +125,7 @@ var list = new ej.pdf.PdfUnorderedList(items, {
125
125
brush: new ej.pdf.PdfBrush({ r: 0, g: 255, b: 255 }),
126
126
indent: 30,
127
127
textIndent: 50,
128
-
style: ej.pdf.PdfNumberStyle.numeric,
128
+
style: ej.pdf.PdfUnorderedListStyle.disk,
129
129
delimiter: ')'
130
130
});
131
131
// Draw the unordered list on the page
@@ -145,6 +145,7 @@ This example demonstrates how to customize the marker style of an unordered list
145
145
{% tabs %}
146
146
{% highlight typescript tabtitle="TypeScript" %}
147
147
import { PdfDocument, PdfPage, PdfUnorderedList, PdfUnorderedListStyle, PdfListItemCollection } from '@syncfusion/ej2-pdf';
148
+
148
149
// Load the existing document
149
150
let document: PdfDocument = new PdfDocument(data);
150
151
// Access the first page
@@ -189,13 +190,14 @@ document.destroy();
189
190
{% endhighlight %}
190
191
{% endtabs %}
191
192
192
-
## Customizing list fonts
193
+
## Applying custom fonts to list items
193
194
194
-
This example demonstrates how to customize the font used for list items in a PDF document using the `PdfUnorderedList` class. The list supports multiple font types, allowing you to tailor the appearance to different languages and stylistic requirements. You can apply standard PDF fonts, TrueType fonts, or CJK fonts to ensure proper rendering of Western, Unicode, and East Asian text. By selecting an appropriate font family and size, you can create lists that match your document design and provide better readability across various languages.
195
+
This example shows how to apply custom fonts to list items in a PDF by using embedded fonts through `document.embedFont()`. The list supports Standard, TrueType, and CJK fonts, allowing accurate rendering of multilingual text. By selecting an embedded font and applying it to the list, you can control the style and appearance of list content with better consistency across platforms.
195
196
196
197
{% tabs %}
197
198
{% highlight typescript tabtitle="TypeScript" %}
198
-
import { PdfDocument, PdfPage, PdfUnorderedList, PdfListItemCollection } from '@syncfusion/ej2-pdf';
let document: PdfDocument = new PdfDocument(data);
201
203
// Access the first page
@@ -242,11 +244,12 @@ document.destroy();
242
244
243
245
## Creating nested list structures
244
246
245
-
This example demonstrates how to create nested list structures in a PDF document using the `PdfUnorderedList` and `PdfOrderedList` classes. Nested lists allow you to organize information hierarchically by placing one list inside another. This is useful when representing multi‑level data, outlining topics with subpoints, or grouping related items clearly. Each nested level can have its own marker style, font settings, and giving you full control over the appearance and structure of complex list content.
247
+
This example demonstrates how to create nested list structures in a PDF document using the `PdfUnorderedList` and `PdfOrderedList` classes. Nested lists allow you to organize information hierarchically by placing one list inside another. This is useful when representing multi‑level data, outlining topics with subpoints, or grouping related items clearly.
This example demonstrates how the `PdfUnorderedList` class automatically handle pagination when drawing long lists in a PDF document. List pagination ensures that long lists automatically continue onto the next page when there is no remaining space on the current one. The list layout engine preserves marker styles, indentation, and nested levels across page breaks. This provides a smooth and consistent reading experience, even for multi‑page or dynamically generated list content.
295
+
This example shows how long lists automatically continue onto the next page when drawn using the `PdfUnorderedList` class. By applying a `PdfLayoutFormat`, the layout engine handles page breaks smoothly while preserving markers, indentation, and nested levels. This ensures consistent rendering of multi‑page or dynamically generated list content.
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/Text.md
+23-19Lines changed: 23 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -357,13 +357,14 @@ document.destroy();
357
357
{% endhighlight %}
358
358
{% endtabs %}
359
359
360
-
## Draw RTL text using TrueType fonts
360
+
## Drawing Right-To-Left text
361
361
362
362
This example shows how to draw right-to-left (RTL) text using a TrueType font that supports the target RTL script (for example, Hebrew or Arabic). Embed a TTF font that contains the needed glyphs and pass a `PdfStringFormat` when calling `drawString`.
363
363
364
364
{% tabs %}
365
365
{% highlight typescript tabtitle="TypeScript" %}
366
366
import { PdfDocument, PdfPage, PdfTrueTypeFont, PdfStringFormat, PdfBrush } from '@syncfusion/ej2-pdf';
367
+
367
368
// Create a new PDF document
368
369
let document: PdfDocument = new PdfDocument();
369
370
// Add a page
@@ -373,7 +374,7 @@ let font: PdfTrueTypeFont = document.embedFont(data, 13);
This example demonstrates how to embed fonts in a PDF document to ensure accurate and consistent text rendering across all platforms. The library supports embedding PdfStandardFont, PdfCjkStandardFont, and PdfTrueTypeFont, enabling reliable display of Western, CJK, and Unicode text even when the required fonts are not installed on the viewing device. Embedded fonts also provide easy access to different font sizes, and styles, allowing you to format text precisely while maintaining the document’s visual consistency.
402
+
This example shows how to embed fonts using `document.embedFont()` to ensure consistent text rendering across all platforms. The library supports embedding `PdfStandardFont`, `PdfCjkStandardFont`, and `PdfTrueTypeFont` for reliable Western, CJK, and Unicode text display. After embedding, the font can be applied through `embedded.getFont()`, allowing precise control over size and style.
0 commit comments