pdf-lib-extended 1.0.42 → 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdf-lib-extended",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "This project extends the capabilities of the pdf-lib JavaScript library by providing a set of helper functions that simplify common PDF manipulation tasks. It includes utilities for drawing and formatting text, images, and shapes within PDF documents, allowing for more advanced customization and automation. The class-based architecture, designed as a toolkit, ensures that developers can easily integrate these enhanced features into their existing workflows. With this extension, users can streamline the creation of dynamic and complex PDFs with minimal effort.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -513,6 +513,7 @@ class PDFLibExtended {
513
513
  padding: 0, // extra spacing between lines
514
514
  wordWrap: true,
515
515
  characterWrap: false,
516
+ textDecoration: null,
516
517
  ...options
517
518
  };
518
519
 
@@ -543,7 +544,8 @@ class PDFLibExtended {
543
544
  color: defaultOptions.color,
544
545
  opacity: defaultOptions.opacity,
545
546
  align: defaultOptions.align,
546
- range: defaultOptions.range
547
+ range: defaultOptions.range,
548
+ textDecoration: defaultOptions.textDecoration
547
549
  });
548
550
  let nextLineData = this.nextLine(defaultOptions.padding);
549
551
  totalHeight += nextLineData.addedSpace;
@@ -564,7 +566,8 @@ class PDFLibExtended {
564
566
  color: defaultOptions.color,
565
567
  opacity: defaultOptions.opacity,
566
568
  align: defaultOptions.align,
567
- range: defaultOptions.range
569
+ range: defaultOptions.range,
570
+ textDecoration: defaultOptions.textDecoration
568
571
  });
569
572
  }
570
573
  });