pdf-lib-extended 1.0.40 → 1.0.41

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.40",
3
+ "version": "1.0.41",
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": {
@@ -587,7 +587,7 @@ class PDFLibExtended {
587
587
  const page = this.getCurrentPage();
588
588
 
589
589
  /*** DRAW TEXT ***/
590
- page.moveTo(x, y);
590
+ page.moveTo(x, y - (defaultOptions.padding / 2));
591
591
  let drawParagraphResponse = this.drawParagraph(text, {
592
592
  align: defaultOptions.align,
593
593
  range: {
@@ -622,7 +622,7 @@ class PDFLibExtended {
622
622
  }
623
623
 
624
624
  /*** DRAW TEXT ***/
625
- page.moveTo(x, y);
625
+ page.moveTo(x, y - (defaultOptions.padding / 2));
626
626
  drawParagraphResponse = this.drawParagraph(text, {
627
627
  align: defaultOptions.align,
628
628
  range: {