pdf-lib-extended 1.0.45 → 1.0.46
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 +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-lib-extended",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
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
|
@@ -377,7 +377,7 @@ class PDFLibExtended {
|
|
|
377
377
|
* @returns {object} - An object containing the added space, the new X position, and the new Y position
|
|
378
378
|
*/
|
|
379
379
|
nextLine(padding = null) {
|
|
380
|
-
|
|
380
|
+
let addedSpace = 0;
|
|
381
381
|
if(padding && !isNaN(Number(padding))) {
|
|
382
382
|
addedSpace += Number(padding);
|
|
383
383
|
}else{
|