Skip to content

Commit 3333e86

Browse files
1010299: resolved lint errors
1 parent 8cbac79 commit 3333e86

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Document-Processing/PDF/PDF-Library/javascript/HyperLinks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ let font: PdfStandardFont = document.embedFont(PdfFontFamily.helvetica, 36, PdfF
2929
let size: Size = font.measureString('Syncfusion');
3030
// Create a new text web link annotation
3131
let annotation: PdfTextWebLinkAnnotation = new PdfTextWebLinkAnnotation({ x: 50, y: 40, width: size.width, height: size.height }, { r: 0, g: 0, b: 0}, { r: 165, g: 42, b: 42 }, 1);
32+
// Sets the URL of the annotation.
33+
annotation.url = ‘http://www.syncfusion.com’;
3234
// Add annotation to the page
3335
page.annotations.add(annotation);
3436
// Save the document
@@ -51,6 +53,8 @@ var font = document.embedFont(ej.pdf.PdfFontFamily.helvetica, 10, ej.pdf.PdfFont
5153
var size = font.measureString('Syncfusion');
5254
// Create a new text web link annotation
5355
var annotation = new ej.pdf.PdfTextWebLinkAnnotation({ x: 50, y: 40, width: size.width, height: size.height }, { r: 0, g: 0, b: 0 }, { r: 165, g: 42, b: 42 }, 1);
56+
// Sets the URL of the annotation.
57+
annotation.url = ‘http://www.syncfusion.com’;
5458
// Add annotation to the page
5559
page.annotations.add(annotation);
5660
// Save the document

Document-Processing/PDF/PDF-Library/javascript/Lists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ document.destroy();
244244

245245
## Creating nested list structures
246246

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.
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 sub points, or grouping related items clearly.
248248

249249
{% tabs %}
250250
{% highlight typescript tabtitle="TypeScript" %}

Document-Processing/PDF/PDF-Library/javascript/Text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ document.destroy();
411411

412412
## Embedded font
413413

414-
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.
414+
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 Unicode text display. After embedding, the font can be applied through `embedded.getFont()`, allowing precise control over size and style. Additionally, using embedded fonts helps reduce overall PDF size, since the font dictionary is not duplicated for each usage—ensuring cleaner and more efficient output.
415415

416416
{% tabs %}
417417
{% highlight typescript tabtitle="TypeScript" %}

0 commit comments

Comments
 (0)