pdf-lib-extended 1.0.36 → 1.0.37
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 +1 -1
- package/src/PDFLibExtended.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-lib-extended",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
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": {
|
package/src/PDFLibExtended.js
CHANGED
|
@@ -605,7 +605,7 @@ class PDFLibExtended {
|
|
|
605
605
|
x: x,
|
|
606
606
|
y: y - drawParagraphResponse.height + defaultOptions.size - defaultOptions.padding,
|
|
607
607
|
width: width,
|
|
608
|
-
height: drawParagraphResponse.height,
|
|
608
|
+
height: (defaultOptions.height) ? defaultOptions.height : drawParagraphResponse.height,
|
|
609
609
|
color: defaultOptions.backgroundColor,
|
|
610
610
|
borderWidth: defaultOptions.lineThickness,
|
|
611
611
|
borderColor: defaultOptions.borderColor,
|
|
@@ -616,7 +616,7 @@ class PDFLibExtended {
|
|
|
616
616
|
x: x,
|
|
617
617
|
y: y - drawParagraphResponse.height + defaultOptions.size - defaultOptions.padding,
|
|
618
618
|
width: width,
|
|
619
|
-
height: drawParagraphResponse.height,
|
|
619
|
+
height: (defaultOptions.height) ? defaultOptions.height : drawParagraphResponse.height,
|
|
620
620
|
color: defaultOptions.backgroundColor,
|
|
621
621
|
});
|
|
622
622
|
}
|