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
namedDestination: new ej.pdf.PdfNamedDestination('First', new ej.pdf.PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })),
50
+
color: { r: 0, g: 0, b: 255 },
51
+
textStyle: ej.pdf.PdfTextStyle.bold});
48
52
// Save the document
49
53
document.save('output.pdf');
50
54
// Close the document
@@ -97,9 +101,70 @@ document.destroy();
97
101
{% endhighlight %}
98
102
{% endtabs %}
99
103
104
+
## Nested Bookmark
105
+
106
+
This example demonstrates how to create hierarchical (parent-child) bookmarks in a PDF using the PdfBookmark class. This feature allows organizing content with nested bookmark structures for easier navigation.
107
+
108
+
{% tabs %}
109
+
{% highlight typescript tabtitle="TypeScript" %}
110
+
import {PdfDocument, PdfPage, PdfBookmark, PdfBookmarkBase, PdfTextStyle, PdfNamedDestination, PdfDestination} from '@syncfusion/ej2-pdf';
111
+
112
+
// Create a new PDF document
113
+
let document: PdfDocument = new PdfDocument();
114
+
// Add a page
115
+
let page: PdfPage = document.addPage();
116
+
// Get the bookmarks
117
+
let bookmarks: PdfBookmarkBase = document.bookmarks;
118
+
// Add a new bookmark to the PDF document
119
+
let bookmark: PdfBookmark = bookmarks.add('Introduction', 0, {
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-angular.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ documentation: ug
8
8
keywords: angular create pdf, angular generate pdf, angular pdf library, ej2 pdf angular, JavaScript
9
9
---
10
10
11
-
# Create or generate PDF file in Angular application
11
+
# Create or Generate PDF file in Angular application
12
12
13
13
The Syncfusion<sup>®</sup> JavaScript PDF library is used to create, read, and edit PDF documents. This library also offers functionality to merge, split, stamp, fill forms, and secure PDF files.
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/DigitalSignature.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,7 +306,7 @@ document.destroy();
306
306
{% endhighlight %}
307
307
{% endtabs %}
308
308
309
-
## Create and certify a digital signature field
309
+
## Certified Signature
310
310
311
311
This example demonstrates how to add a signature field to a PDF, create a digital signature using certificate data and a password, certify the document, and save the signed PDF document.
312
312
@@ -354,7 +354,7 @@ document.destroy();
354
354
{% endhighlight %}
355
355
{% endtabs %}
356
356
357
-
## Create and lock a digitally signed PDF
357
+
## Lock Signature
358
358
359
359
This example shows how to add a signature field to a PDF, create a digital signature using certificate data and a password, lock the document after signing, and save the result in PDF library.
360
360
@@ -488,8 +488,9 @@ var signature = ej.pdf.PdfSignature.create(
488
488
);
489
489
// Bind the certifying signature to the first signature field
490
490
field.setSignature(signature);
491
-
//// Add both signature fields to the document form
0 commit comments