Skip to content

Commit abecba5

Browse files
CopilotMrRio
andcommitted
Add AIGC property to documentProperties
Co-authored-by: MrRio <[email protected]>
1 parent 1004cde commit abecba5

17 files changed

+537
-507
lines changed

dist/jspdf.es.js

Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @license
22
*
33
* jsPDF - PDF Document creation from JavaScript
4-
* Version 4.0.0 Built on 2025-12-18T10:27:09.425Z
4+
* Version 4.0.0 Built on 2026-01-13T03:55:44.701Z
55
* CommitID 00000000
66
*
77
* Copyright (c) 2010-2025 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
@@ -1663,7 +1663,8 @@ function jsPDF(options) {
16631663
subject: "",
16641664
author: "",
16651665
keywords: "",
1666-
creator: ""
1666+
creator: "",
1667+
aigc: ""
16671668
};
16681669
API.__private__.getDocumentProperty = function (key) {
16691670
if (Object.keys(documentProperties).indexOf(key) === -1) {
@@ -20548,23 +20549,23 @@ WebPDecoder.prototype.getData = function () {
2054820549
};
2054920550
})(jsPDF.API);
2055020551

20551-
/**
20552-
* jsPDF split_text_to_size plugin
20553-
*
20554-
* @name split_text_to_size
20555-
* @module
20552+
/**
20553+
* jsPDF split_text_to_size plugin
20554+
*
20555+
* @name split_text_to_size
20556+
* @module
2055620557
*/
2055720558
(function (API) {
2055820559

20559-
/**
20560-
* Returns an array of length matching length of the 'word' string, with each
20561-
* cell occupied by the width of the char in that position.
20562-
*
20563-
* @name getCharWidthsArray
20564-
* @function
20565-
* @param {string} text
20566-
* @param {Object} options
20567-
* @returns {Array}
20560+
/**
20561+
* Returns an array of length matching length of the 'word' string, with each
20562+
* cell occupied by the width of the char in that position.
20563+
*
20564+
* @name getCharWidthsArray
20565+
* @function
20566+
* @param {string} text
20567+
* @param {Object} options
20568+
* @returns {Array}
2056820569
*/
2056920570
var getCharWidthsArray = API.getCharWidthsArray = function (text, options) {
2057020571
options = options || {};
@@ -20600,21 +20601,21 @@ WebPDecoder.prototype.getData = function () {
2060020601
return output;
2060120602
};
2060220603

20603-
/**
20604-
* Returns a widths of string in a given font, if the font size is set as 1 point.
20605-
*
20606-
* In other words, this is "proportional" value. For 1 unit of font size, the length
20607-
* of the string will be that much.
20608-
*
20609-
* Multiply by font size to get actual width in *points*
20610-
* Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.
20611-
*
20612-
* @name getStringUnitWidth
20613-
* @public
20614-
* @function
20615-
* @param {string} text
20616-
* @param {string} options
20617-
* @returns {number} result
20604+
/**
20605+
* Returns a widths of string in a given font, if the font size is set as 1 point.
20606+
*
20607+
* In other words, this is "proportional" value. For 1 unit of font size, the length
20608+
* of the string will be that much.
20609+
*
20610+
* Multiply by font size to get actual width in *points*
20611+
* Then divide by 72 to get inches or divide by (72/25.4) to get 'mm' etc.
20612+
*
20613+
* @name getStringUnitWidth
20614+
* @public
20615+
* @function
20616+
* @param {string} text
20617+
* @param {string} options
20618+
* @returns {number} result
2061820619
*/
2061920620
var getStringUnitWidth = API.getStringUnitWidth = function (text, options) {
2062020621
options = options || {};
@@ -20635,8 +20636,8 @@ WebPDecoder.prototype.getData = function () {
2063520636
return result;
2063620637
};
2063720638

20638-
/**
20639-
returns array of lines
20639+
/**
20640+
returns array of lines
2064020641
*/
2064120642
var splitLongWord = function splitLongWord(word, widths_array, firstLineMaxLen, maxLen) {
2064220643
var answer = [];
@@ -20768,22 +20769,22 @@ WebPDecoder.prototype.getData = function () {
2076820769
return lines.map(postProcess);
2076920770
};
2077020771

20771-
/**
20772-
* Splits a given string into an array of strings. Uses 'size' value
20773-
* (in measurement units declared as default for the jsPDF instance)
20774-
* and the font's "widths" and "Kerning" tables, where available, to
20775-
* determine display length of a given string for a given font.
20776-
*
20777-
* We use character's 100% of unit size (height) as width when Width
20778-
* table or other default width is not available.
20779-
*
20780-
* @name splitTextToSize
20781-
* @public
20782-
* @function
20783-
* @param {string} text Unencoded, regular JavaScript (Unicode, UTF-16 / UCS-2) string.
20784-
* @param {number} size Nominal number, measured in units default to this instance of jsPDF.
20785-
* @param {Object} options Optional flags needed for chopper to do the right thing.
20786-
* @returns {Array} array Array with strings chopped to size.
20772+
/**
20773+
* Splits a given string into an array of strings. Uses 'size' value
20774+
* (in measurement units declared as default for the jsPDF instance)
20775+
* and the font's "widths" and "Kerning" tables, where available, to
20776+
* determine display length of a given string for a given font.
20777+
*
20778+
* We use character's 100% of unit size (height) as width when Width
20779+
* table or other default width is not available.
20780+
*
20781+
* @name splitTextToSize
20782+
* @public
20783+
* @function
20784+
* @param {string} text Unencoded, regular JavaScript (Unicode, UTF-16 / UCS-2) string.
20785+
* @param {number} size Nominal number, measured in units default to this instance of jsPDF.
20786+
* @param {Object} options Optional flags needed for chopper to do the right thing.
20787+
* @returns {Array} array Array with strings chopped to size.
2078720788
*/
2078820789
API.splitTextToSize = function (text, maxlen, options) {
2078920790

dist/jspdf.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jspdf.es.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jspdf.es.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)