repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/fontmetrics.spec.js
test/specs/fontmetrics.spec.js
/* global describe, it, expect, jsPDF */ describe("Module: Standard Font Metrics", () => { beforeAll(loadGlobals); it("uncompress", () => { expect( jsPDF.API.__fontmetrics__.uncompress( "{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}" ) ).toEqual({ widths: { 0: 60, fof: 100 }, kerning: { fof...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/pages.spec.js
test/specs/pages.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Paging", () => { beforeAll(loadGlobals); it("should add new page", () => { const doc = new jsP...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/canvas.spec.js
test/specs/canvas.spec.js
describe("Context2D: standard tests", () => { beforeAll(loadGlobals); it("width", () => { var doc = new jsPDF(); doc.canvas.width = undefined; expect(doc.canvas.width).toEqual(150); doc.canvas.width = 1; expect(doc.canvas.width).toEqual(1); }); it("height", () => { var doc = new jsPDF();...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/fileloading.spec.js
test/specs/fileloading.spec.js
/* global describe, it, jsPDF, expect */ describe("Module: FileLoad", () => { beforeAll(loadGlobals); var successURL = typeof isNode !== "undefined" && isNode ? "./test/reference/success.txt" : "/base/test/reference/success.txt"; it("should load a file (sync)", () => { const doc = jsPDF(); ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/filetypeRecognition.spec.js
test/specs/filetypeRecognition.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests */ describe("Module: addimage filetypeRecognition", () => { beforeAll(loadGlobals); it("webp dataUrl", () => { var webp =
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/outline.spec.js
test/specs/outline.spec.js
/* global describe, it, jsPDF, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Module: Outline", () => { beforeAll(loadGlobals); it("should create a bookmark in a pdf generated with units in ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/japanese.spec.js
test/specs/japanese.spec.js
/* global describe, it, jsPDF,loadBinaryResource, comparePdf */ describe("Module: Unicode: Japanese", function() { beforeAll(loadGlobals); it("Unicode: Japanese - Kana", function() { //https://www.freejapanesefont.com/mouhitsu-bold-font-download/ var MouhitsuBold = loadBinaryResource("reference/MouhitsuBo...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/ttfsupport.spec.js
test/specs/ttfsupport.spec.js
/* global describe, it, jsPDF, loadBinaryResource, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("TTFSupport", () => { beforeAll(loadGlobals); it("should parse directly the file", () => { ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/shapes.spec.js
test/specs/shapes.spec.js
/* global describe, it, jsPDF, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Shapes", () => { beforeAll(loadGlobals); it("should draw circles", () => { const doc = jsPDF({ floatPr...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/processArabic.spec.js
test/specs/processArabic.spec.js
/* global describe, it, expect, jsPDF */ describe("Module: ArabicParser", function() { beforeAll(loadGlobals); it("isArabicLetter", function() { expect(jsPDF.API.__arabicParser__.isArabicLetter("ف")).toEqual(true); expect(jsPDF.API.__arabicParser__.isArabicLetter("a")).toEqual(false); }); it("isArabicE...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/form-objects.spec.js
test/specs/form-objects.spec.js
/* global jsPDF */ describe("Form objects", () => { beforeAll(loadGlobals); it("should use correct bounding box for scale factors other than 1", () => { const doc = new jsPDF({ unit: "mm", format: [200, 200], orientation: "p" }); doc.advancedAPI(); doc.beginFormObject(-50, -50, 100, 100, doc.unitMat...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/gif.spec.js
test/specs/gif.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests */ describe("Module: GIFSupport", () => { beforeAll(loadGlobals); it("gif89a", () => { var gif89a = "data:image/gif;base64,R0lGODlhyABGALMAAP///wAAAIiIiN3d3ZmZmSIiIkRERBEREe7u7ru7u3d3d2ZmZszMzKqqqlVVVTMzMyH/C1hNUCBEYXRhWE1QP...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/getImageProperties.spec.js
test/specs/getImageProperties.spec.js
/* global describe, it, jsPDF, expect */ /** * Standard spec tests */ describe("Module: addimage getImageProperties", () => { beforeAll(loadGlobals); it("one blackpixel", () => { var blackpixel = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQs...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/fontstyle.spec.js
test/specs/fontstyle.spec.js
describe("Font style and font weight", () => { beforeAll(loadGlobals); it("combine font style and font weight correctly", () => { const doc = new jsPDF(); const combine = doc.__private__.combineFontStyleAndFontWeight; expect(combine("normal", "normal")).toEqual("normal"); expect(combine("normal",...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/encryption.spec.js
test/specs/encryption.spec.js
/* global describe, it, expect, jsPDF, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Standard Encryption", () => { beforeAll(loadGlobals); it("should allow text insertion", () => { ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/arabic.spec.js
test/specs/arabic.spec.js
/* global describe, it, loadBinaryResource, jsPDF, comparePdf */ describe("Module: Unicode: Arabic", function() { beforeAll(loadGlobals); //https://fonts.google.com/specimen/Amiri?selection.family=Amiri return; var AmiriRegular = loadBinaryResource("reference/Amiri-Regular.ttf"); it("simple pdf with arabic ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/autoprint.spec.js
test/specs/autoprint.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests */ describe("Module: Autoprint", () => { beforeAll(loadGlobals); it("should generate an autoprinting document with non-conform variant ", () => { const doc = jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "This is a test"); ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/init.spec.js
test/specs/init.spec.js
/* global describe, it, jsPDF, comparePdf, jasmine, expect */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Initialization Options", () => { beforeAll(loadGlobals); var global = (typeof self !=...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/context2d.complex.spec.js
test/specs/context2d.complex.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests */ describe("Module: Context2D Complex Examples", () => { beforeAll(loadGlobals); it("context2d: smiley", () => { var doc = new jsPDF({ orientation: "portrait", unit: "pt", floatPrecision: 3 }); var ctx =...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/base64.spec.js
test/specs/base64.spec.js
/* global describe, it, jsPDF, expect */ /** * Standard spec tests */ describe("Module: addimage bas64Validation", () => { beforeAll(loadGlobals); var global = (typeof self !== "undefined" && self) || (typeof window !== "undefined" && window) || (typeof global !== "undefined" && global) || Functi...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/xmpmetadata.spec.js
test/specs/xmpmetadata.spec.js
/* global describe, it, jsPDF, comparePdf */ describe("Module: xmp_metadata", () => { beforeAll(loadGlobals); it("make some metadata var. 1", () => { var doc = new jsPDF({ putOnlyUsedFonts: true, floatPrecision: 2 }); doc.addMetadata("My metadata as a string.", "http://my.namespace.uri/"); comparePdf(d...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/annotations.spec.js
test/specs/annotations.spec.js
/* global describe, it, jsPDF, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Module: Annotations", () => { beforeAll(loadGlobals); it("should draw a closed annotation", () => { const do...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/Uint8Array.spec.js
test/specs/Uint8Array.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests */ describe("Module: addimage Uint8Array", () => { beforeAll(loadGlobals); function convertDataURIToArrayBuffer(dataURI) { var BASE64_MARKER = ";base64,"; var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/context2d.w3school.spec.js
test/specs/context2d.w3school.spec.js
/* global describe, it, jsPDF, comparePdf */ /** * Standard spec tests */ describe("Module: Context2D W3School", () => { beforeAll(loadGlobals); if (typeof navigator === "undefined") { return; } if (navigator.userAgent.indexOf("Trident") !== -1) { console.warn("Skipping IE for context2d"); return...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/context2d.input-validation.spec.js
test/specs/context2d.input-validation.spec.js
/* global describe, it, expect, jsPDF */ describe("Module: Context2D Input Validation", () => { beforeAll(loadGlobals); var global = (typeof self !== "undefined" && self) || (typeof window !== "undefined" && window) || (typeof global !== "undefined" && global) || Function('return typeof this === "ob...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/viewerpreferences.spec.js
test/specs/viewerpreferences.spec.js
/* global describe, it, expect, jsPDF, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Module: ViewerPreferences", () => { beforeAll(loadGlobals); it("HideToolbar", () => { const doc = jsP...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/context2d.pageoverlap.spec.js
test/specs/context2d.pageoverlap.spec.js
/* global describe, it jsPDF, expect */ describe("Module: Context2D autoPaging", () => { beforeAll(loadGlobals); it("context2d autoPaging: rect", () => { var doc = new jsPDF({ orientation: "p", unit: "pt", format: "a4", floatPrecision: 3 }); var ctx = doc.context2d; doc.conte...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/language.spec.js
test/specs/language.spec.js
/* global describe, it, jsPDF, comparePdf */ /** * Standard spec tests */ describe("Module: SetLanguage", () => { beforeAll(loadGlobals); it("set english (US)", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.setLanguage("en-US"); comparePdf(doc.output(), "enUS.pdf", "setlanguage"); }); ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/filters.spec.js
test/specs/filters.spec.js
"use strict"; /* global describe, it, jsPDF, expect */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Module: Filters", () => { beforeAll(loadGlobals); it("ASCIIHexDecode", () => { expect( jsPDF...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/bmp.spec.js
test/specs/bmp.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests */ describe("Module: BMPSupport", () => { beforeAll(loadGlobals); it("bmp1p", () => { var bmp1p = "data:image/bmp;base64,Qk0eAgAAAAAAAD4AAAAoAAAAZAAAAB4AAAABAAEAAAAAAOABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD////////////////wAAA...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/acroform.spec.js
test/specs/acroform.spec.js
/* eslint-disable no-self-assign */ /* global describe, it, expect, jsPDF, comparePdf, Button, ComboBox, ChoiceField, EditBox, ListBox, PushButton, CheckBox, TextField, PasswordField, RadioButton, AcroForm */ /** * Acroform testing */ describe("Module: Acroform Unit Test", function() { beforeAll(loadGlobals); it...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/text.spec.js
test/specs/text.spec.js
/* global describe, it, expect, jsPDF, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Standard Text", () => { beforeAll(loadGlobals); it("should load", () => { // assertions here] ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/cell.spec.js
test/specs/cell.spec.js
/* global describe, it, expect, comparePdf jsPDF */ describe("Module: Cell", () => { beforeAll(loadGlobals); it("getTextDimensions", () => { var doc = new jsPDF("p", "pt", "a4"); expect( doc.getTextDimensions(doc.splitTextToSize("Octocat loves jsPDF", 50)).w ).toEqual(43.35999999999999); expe...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/putTotalPages.spec.js
test/specs/putTotalPages.spec.js
/* global describe, it, jsPDF, comparePdf, loadBinaryResource */ /** * Standard spec tests */ describe("Module: putTotalPages", () => { beforeAll(loadGlobals); it("standardfont", () => { const doc = new jsPDF({ floatPrecision: 2 }); const totalPagesExp = "{totalPages}"; doc.text(10, 10, "Page 1 of {...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/jspdf.unit.spec.js
test/specs/jspdf.unit.spec.js
/* global describe, xit, it, jsPDF, comparePdf, jasmine, expect */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Unit Tests", () => { beforeAll(loadGlobals); var global = (typeof self !== "unde...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/context2d.likeARealOne.spec.js
test/specs/context2d.likeARealOne.spec.js
/* global describe, xit, jsPDF, expect */ /** * Standard spec tests */ describe("Module: Context2D: HTML comparison tests", () => { beforeAll(loadGlobals); xit("default values like a real 2d-context", () => { var doc = new jsPDF(); var ctx = doc.canvas.getContext("2d"); expect(ctx.fillStyle).toEqua...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/vfs.spec.js
test/specs/vfs.spec.js
describe("Module: vFS", () => { beforeAll(loadGlobals); it("addFileToVFS and positive getFileFromVFS", () => { var doc = new jsPDF("p", "pt", "a4"); doc.addFileToVFS("test.pdf", "BADFACE"); expect(doc.getFileFromVFS("test.pdf")).toEqual("BADFACE"); doc.addFileToVFS("test2.pdf", "BADFACE2"); expe...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/html.spec.js
test/specs/html.spec.js
/* global describe, it, jsPDF, comparePdf */ const render = (markup, opts = {}) => new Promise(resolve => { const doc = jsPDF({ floatPrecision: 2 }); doc.html(markup, { ...opts, callback: resolve }); }); function toFontFaceRule(fontFace) { const srcs = fontFace.src.map( src => `url('${src.url}') fo...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/webp.spec.js
test/specs/webp.spec.js
/* global describe, it, jsPDF, comparePdf */ /** * Standard spec tests */ describe("Module: WebPSupport", () => { beforeAll(loadGlobals); it("webp", () => { var webp =
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/rgba.spec.js
test/specs/rgba.spec.js
/* global jsPDF */ /** * Standard spec tests */ describe("Module: RGBASupport", () => { beforeAll(loadGlobals); it("black pixel", () => { var blackpixel = new Uint8ClampedArray([0, 0, 0, 255]); var blackpixelData = { data: blackpixel, width: 1, height: 1 }; const doc = new jsPD...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/bidiEngine.spec.js
test/specs/bidiEngine.spec.js
/* global describe, beforeAll, it, expect, jsPDF */ describe("Lib: Bidi Engine", function() { var options = { isInputVisual: true, isSymmetricSwapping: true, isInputRtl: false, isOutputRtl: false }; var sourceString = "a(b)c\u05d0<\u05d5>\u05ea& 123"; var bidiEngine; beforeAll(async function()...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/svg.spec.js
test/specs/svg.spec.js
/* global jsPDF, loadBinaryResource */ describe("Module: svg", function() { if ( (typeof isNode !== "undefined" && isNode) || navigator.userAgent.indexOf("Chrome") < 0 ) { return; } beforeAll(loadGlobals); xit("addSvgAsImage loads canvg asynchronously", async () => { // gives different results...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/display-mode.spec.js
test/specs/display-mode.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Display modes", () => { beforeAll(loadGlobals); it("should set zoom mode to full height", () => { ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/unicode.spec.js
test/specs/unicode.spec.js
/* global describe, it, jsPDF, loadBinaryResource, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Module: Unicode: Russian", function() { beforeAll(loadGlobals); var PTSans = loadBinaryResou...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/addimage.spec.js
test/specs/addimage.spec.js
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests */ describe("Module: addimage", () => { beforeAll(loadGlobals); var jpg = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABGAAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/split_text_to_size.spec.js
test/specs/split_text_to_size.spec.js
/* global describe, it, jsPDF, expect */ /** * Standard spec tests * */ describe("Module: split_text_to_size", () => { beforeAll(loadGlobals); it("getStringUnitWidth", () => { var doc = new jsPDF(); doc.setFont("Courier"); expect(doc.getStringUnitWidth("Lorem Ipsum")).toEqual(6.599999999999999); ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/png.spec.js
test/specs/png.spec.js
/* global describe, it, xit, jsPDF, comparePdf */ /** * png spec tests */ describe("Module: PNGSupport", () => { beforeAll(loadGlobals); var colortype_6_rgba_8_bit_png =
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/test/specs/context2d.spec.js
test/specs/context2d.spec.js
/* global Canvg, describe, it, xit, jsPDF, comparePdf, loadBinaryResource, loadGlobals, isNode */ /** * Standard spec tests */ describe("Context2D: standard tests", () => { beforeAll(loadGlobals); if (typeof isNode === "undefined" || !isNode) { it("bar_graph_with_text_and_lines - direct svg", async () => { ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/docs/scripts/nav.js
docs/scripts/nav.js
function scrollToNavItem() { var path = window.location.href.split('/').pop().replace(/\.html/, ''); document.querySelectorAll('nav a').forEach(function(link) { var href = link.attributes.href.value.replace(/\.html/, ''); if (path === href) { link.scrollIntoView({block: 'center'}); r...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/docs/scripts/linenumber.js
docs/scripts/linenumber.js
/*global document */ (function() { var source = document.getElementsByClassName('prettyprint source linenums'); var i = 0; var lineNumber = 0; var lineId; var lines; var totalLines; var anchorHash; if (source && source[0]) { anchorHash = document.location.hash.substring(1); ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/docs/scripts/polyfill.js
docs/scripts/polyfill.js
//IE Fix, src: https://www.reddit.com/r/programminghorror/comments/6abmcr/nodelist_lacks_foreach_in_internet_explorer/ if (typeof(NodeList.prototype.forEach)!==typeof(alert)){ NodeList.prototype.forEach=Array.prototype.forEach; }
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/docs/scripts/search.js
docs/scripts/search.js
var searchAttr = 'data-search-mode'; function contains(a,m){ return (a.textContent || a.innerText || "").toUpperCase().indexOf(m) !== -1; }; //on search document.getElementById("nav-search").addEventListener("keyup", function(event) { var search = this.value.toUpperCase(); if (!search) { //no sea...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/docs/scripts/collapse.js
docs/scripts/collapse.js
function hideAllButCurrent(){ //by default all submenut items are hidden //but we need to rehide them for search document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) { parent.style.display = "none"; }); //only current page (if it exists) should be opened var f...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/docs/scripts/prettify/prettify.js
docs/scripts/prettify/prettify.js
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/docs/scripts/prettify/lang-css.js
docs/scripts/prettify/lang-css.js
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/jspdf.PLUGINTEMPLATE.js
examples/jspdf.PLUGINTEMPLATE.js
/* global jsPDF */ /** * jsPDF [NAME] Module * Copyright (c) 2019 [YOUR NAME HERE] [WAY TO CONTACT YOU HERE] * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */ (function(jsPDFAPI) { "use strict"; var namespace = ""; //fill here var _initialize = function(instance) { i...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/vite/main.js
examples/vite/main.js
import { jsPDF } from "jspdf"; document.addEventListener("DOMContentLoaded", () => { const button = document.getElementById("generate-pdf"); const status = document.getElementById("status"); button.addEventListener("click", () => { try { // Test that jsPDF import works const doc = new jsPDF(); ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/vite/vite.config.js
examples/vite/vite.config.js
import { defineConfig } from "vite"; export default defineConfig({ build: { sourcemap: true, rollupOptions: { // Try to ignore the warning and proceed onwarn(warning, warn) { // Ignore warnings about external modules if (warning.code === "UNRESOLVED_IMPORT") { return; ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/node/Octocat.js
examples/node/Octocat.js
const fs = require("fs"); const jsPDF = require("../../dist/jspdf.node.min"); var Octocat = fs.readFileSync("../images/Octocat.png", { encoding: "latin1" }); var doc = new jsPDF(); doc.setFontSize(40); doc.text("Octocat loves jsPDF", 40, 30, 4); doc.addImage(Octocat, "test", 10, 40, 180, 180, undefined, "SLOW"); fs...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/node/japanese.js
examples/node/japanese.js
//https://www.freejapanesefont.com/mouhitsu-bold-font-download/ const fs = require("fs"); const jsPDF = require("../../dist/jspdf.node.min"); var MouhitsuBold = fs.readFileSync("../../test/reference/MouhitsuBold.ttf", { encoding: "latin1" }); var doc = new jsPDF({ compress: true }); doc.addFileToVFS("MouhitsuBold...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/node/arabic.js
examples/node/arabic.js
const fs = require("fs"); const jsPDF = require("../../dist/jspdf.node.debug"); var AmiriRegular = fs.readFileSync("../../test/reference/Amiri-Regular.ttf", { encoding: "latin1" }); var doc = new jsPDF({ compress: true }); doc.addFileToVFS("Amiri-Regular.ttf", AmiriRegular); doc.addFont("Amiri-Regular.ttf", "Amiri"...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/PDF.js/pdfobject.js
examples/PDF.js/pdfobject.js
/*global ActiveXObject, window, console, define, module, jQuery */ //jshint unused:false, strict: false /* PDFObject v2.1.1 https://github.com/pipwerks/PDFObject Copyright (c) 2008-2018 Philip Hutchison MIT-style license: http://pipwerks.mit-license.org/ UMD module pattern from https://github.com/u...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/PDF.js/build/pdf.js
examples/PDF.js/build/pdf.js
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2019 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/PDF.js/build/pdf.worker.js
examples/PDF.js/build/pdf.worker.js
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2019 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/PDF.js/web/viewer.js
examples/PDF.js/web/viewer.js
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2019 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/PDF.js/web/debugger.js
examples/PDF.js/web/debugger.js
/* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/theme-ambiance.js
examples/js/theme-ambiance.js
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright 2011 Irakli Gozalishvili. All rights reserved. * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software with...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/images_png.js
examples/js/images_png.js
// You'll need to make your image into a Data URL // Use http://dataurl.net/#dataurlmaker var imgData =
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/lines.js
examples/js/lines.js
var doc = new jsPDF(); doc.line(20, 20, 60, 20); // horizontal line doc.setLineWidth(0.5); doc.line(20, 25, 60, 25); doc.setLineWidth(1); doc.line(20, 30, 60, 30); doc.setLineWidth(1.5); doc.line(20, 35, 60, 35); doc.setDrawColor(255, 0, 0); // draw red lines doc.setLineWidth(0.1); doc.line(100, 20, 100, 60); // ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/autoprint.js
examples/js/autoprint.js
/* global jsPDF */ // You'll need to make your image into a Data URL // Use http://dataurl.net/#dataurlmaker var imgData =
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/rectangles.js
examples/js/rectangles.js
var doc = new jsPDF(); // Empty square doc.rect(20, 20, 10, 10); // Filled square doc.rect(40, 20, 10, 10, "F"); // Empty red square doc.setDrawColor(255, 0, 0); doc.rect(60, 20, 10, 10); // Filled square with red borders doc.setDrawColor(255, 0, 0); doc.rect(80, 20, 10, 10, "FD"); // Filled red square doc.setDraw...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/editor.js
examples/js/editor.js
/* global ace, $, PDFObject, pdf, doc */ /** * jsPDFEditor * @return {[type]} [description] */ var jsPDFEditor = (function() { var editor, demos = { "images.js": "Images", "font-faces.js": "Font faces, text alignment and rotation", "two-page.js": "Two page Hello World", "circles.js": "C...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/ace.js
examples/js/ace.js
(function() { function o(n) { var i = e; n && (e[n] || (e[n] = {}), (i = e[n])); if (!i.define || !i.define.packaged) (t.original = i.define), (i.define = t), (i.define.packaged = !0); if (!i.require || !i.require.packaged) (r.original = i.require), (i.require = r), (i.require.packaged = !...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/landscape.js
examples/js/landscape.js
var doc = new jsPDF("landscape"); doc.text("Hello landscape world!", 20, 20);
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/basic.js
examples/js/basic.js
/* global jsPDF */ function demoTwoPageDocument() { var doc = new jsPDF(); doc.text(20, 20, "Hello world!"); doc.text(20, 30, "This is client-side Javascript, pumping out a PDF."); doc.addPage(); doc.text(20, 20, "Do you like that?"); // Save the PDF doc.save("Test.pdf"); } function demoLandscape() { ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/triangles.js
examples/js/triangles.js
var doc = new jsPDF(); doc.triangle(60, 100, 60, 120, 80, 110, "FD"); doc.setLineWidth(1); doc.setDrawColor(255, 0, 0); doc.setFillColor(0, 0, 255); doc.triangle(100, 100, 110, 100, 120, 130, "FD");
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/japanese.js
examples/js/japanese.js
var doc = new jsPDF(); doc.addFont("test/reference/MouhitsuBold.ttf", "Mouhitsu", "bold"); doc.setFont("Mouhitsu", "bold"); // set font doc.setFontSize(20); doc.text("なに", 20, 20);
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/pdfobject.min.js
examples/js/pdfobject.min.js
/* PDFObject v2.1.1 https://github.com/pipwerks/PDFObject Copyright (c) 2008-2018 Philip Hutchison MIT-style license: http://pipwerks.mit-license.org/ UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js */ (function(root, factory) { if (typeof define === "f...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/images.js
examples/js/images.js
// Don't forget, that there are CORS-Restrictions. So if you want to run it without a Server in your Browser you need to transform the image to a dataURL // Use http://dataurl.net/#dataurlmaker var doc = new jsPDF(); doc.setFontSize(40); doc.text("Octonyan loves jsPDF", 35, 25); doc.addImage("examples/images/Octonyan....
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/circles.js
examples/js/circles.js
/* global jsPDF */ var doc = new jsPDF(); doc.ellipse(40, 20, 10, 5); doc.setFillColor(0, 0, 255); doc.ellipse(80, 20, 10, 5, "F"); doc.setLineWidth(1); doc.setDrawColor(0); doc.setFillColor(255, 0, 0); doc.circle(120, 20, 5, "FD");
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/user-input.js
examples/js/user-input.js
var name = prompt("What is your name?"); var multiplier = parseInt(prompt("Enter a number:"), 10); var doc = new jsPDF(); doc.setFontSize(22); doc.text(20, 20, "Questions"); doc.setFontSize(16); doc.text(20, 30, "This belongs to: " + name); for (var i = 1; i <= 12; i++) { doc.text(20, 30 + i * 10, i + " x " + multi...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/cell.js
examples/js/cell.js
var generateData = function(amount) { var result = []; var data = { coin: "100", game_group: "GameGroup", game_name: "XPTO2", game_version: "25", machine: "20485861", vlt: "0" }; for (var i = 0; i < amount; i += 1) { data.id = (i + 1).toString(); result.push(Object.assign({}, dat...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/arabic.js
examples/js/arabic.js
var doc = new jsPDF(); doc.addFont("test/reference/Amiri-Regular.ttf", "Amiri", "normal"); doc.setFont("Amiri"); // set font doc.setFontSize(50); var arabicText = "إذا لم تستح فاصنع ما شئت"; doc.text(arabicText, 10, 60);
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/password.js
examples/js/password.js
var doc = new jsPDF({ // jsPDF supports encryption of PDF version 1.3. // Version 1.3 just uses RC4 40-bit which is kown to be weak and is NOT state of the art. // Keep in mind that it is just a minimal protection. encryption: { userPassword: "user", ownerPassword: "owner", userPermissions: ["print"...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/two-page.js
examples/js/two-page.js
var doc = new jsPDF(); doc.text("Hello world!", 20, 20); doc.text("This is client-side Javascript, pumping out a PDF.", 20, 30); doc.addPage("a6", "l"); doc.text("Do you like that?", 20, 20);
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/font-faces.js
examples/js/font-faces.js
var doc = new jsPDF(); doc.text("This is the default font.", 20, 20); doc.setFont("courier", "normal"); doc.text("This is courier normal.", 20, 30); doc.setFont("times", "italic"); doc.text("This is times italic.", 20, 40); doc.setFont("helvetica", "bold"); doc.text("This is helvetica bold.", 20, 50); doc.setFont(...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/russian.js
examples/js/russian.js
var doc = new jsPDF(); doc.addFont("test/reference/PTSans.ttf", "PTSans", "normal"); doc.setFont("PTSans"); // set font doc.setFontSize(10); doc.text("А ну чики брики и в дамки!", 10, 10);
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/acroforms.js
examples/js/acroforms.js
/* global jsPDF */ var doc = new jsPDF(); var { ComboBox, ListBox, CheckBox, PushButton, TextField, PasswordField, RadioButton, Appearance } = jsPDF.AcroForm; doc.setFontSize(12); doc.text("ComboBox:", 10, 105); var comboBox = new ComboBox(); comboBox.fieldName = "ChoiceField1"; comboBox.topIndex = 1;...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/string-splitting.js
examples/js/string-splitting.js
/* * Let's demonstrate string splitting with the first page of Shakespeare's Romeo and Juliet! * We'll use a 8.5 x 11 inch sheet, measuring everything in inches. */ var pageWidth = 8.5, lineHeight = 1.2, margin = 0.5, maxLineWidth = pageWidth - margin * 2, fontSize = 24, ptsPerInch = 72, oneLineHeight = ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/annotations.js
examples/js/annotations.js
var doc = new jsPDF({ unit: "px", format: [200, 300], floatPrecision: 2 }); doc.textWithLink("Click me!", 10, 10, { url: "https://parall.ax/" }); doc.createAnnotation({ type: "text", title: "note", bounds: { x: 10, y: 10, w: 200, h: 80 }, contents: "This is text annotation (closed by ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/text-colors.js
examples/js/text-colors.js
var doc = new jsPDF(); // I know the proper spelling is colour ;) doc.setTextColor(100); doc.text("This is gray.", 20, 20); doc.setTextColor(150); doc.text("This is light gray.", 20, 30); doc.setTextColor(255, 0, 0); doc.text("This is red.", 20, 40); doc.setTextColor(0, 255, 0); doc.text("This is green.", 20, 50); ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/font-size.js
examples/js/font-size.js
var doc = new jsPDF(); doc.setFontSize(22); doc.text("This is a title", 20, 20); doc.setFontSize(16); doc.text("This is some normal sized text underneath.", 20, 30);
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/test_harness.js
examples/js/test_harness.js
/** * jsPDF PDF Test Harness * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */ /** * An easy way to view PDF and PDF source code side by side. */ var pdf_test_harness_init = function(pdf, message) { v...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
false
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/jquery/jquery-1.7.1.min.js
examples/js/jquery/jquery-1.7.1.min.js
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a, b) { function cy(a) { return f.isWindow(a) ? a : a.nodeType === 9 ? a.defaultView || a.parentWindow : !1; } function cv(a) { if (!ck[a]) { var b = c.body, d = f("<" + a + ">").appendTo(b), e = d...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/js/jquery/jquery-ui-1.8.17.custom.min.js
examples/js/jquery/jquery-ui-1.8.17.custom.min.js
/*! * jQuery UI 1.8.17 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */ (function(a, b) { function d(b) { return !a(b) .parents() .andSelf() .filter(function()...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/MathJax/MathJax_Math-italic.js
examples/MathJax/MathJax_Math-italic.js
(function(jsPDFAPI) { var font =
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/examples/MathJax/MathJax_Main.js
examples/MathJax/MathJax_Main.js
(function(jsPDFAPI) { var font =
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/dist/jspdf.umd.min.js
dist/jspdf.umd.min.js
/** @license * * jsPDF - PDF Document creation from JavaScript * Version 4.0.0 Built on 2025-12-18T10:27:09.424Z * CommitID 00000000 * * Copyright (c) 2010-2025 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF * 2015-2025 yWorks GmbH, http://www.yworks.com * ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/dist/jspdf.node.js
dist/jspdf.node.js
/** @license * * jsPDF - PDF Document creation from JavaScript * Version 4.0.0 Built on 2025-12-18T10:27:09.425Z * CommitID 00000000 * * Copyright (c) 2010-2025 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF * 2015-2025 yWorks GmbH, http://www.yworks.com * ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true
parallax/jsPDF
https://github.com/parallax/jsPDF/blob/e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c/dist/jspdf.es.js
dist/jspdf.es.js
/** @license * * jsPDF - PDF Document creation from JavaScript * Version 4.0.0 Built on 2025-12-18T10:27:09.425Z * CommitID 00000000 * * Copyright (c) 2010-2025 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF * 2015-2025 yWorks GmbH, http://www.yworks.com * ...
javascript
MIT
e6cf03db2499ef0a9ccc54b2aba45156c5b32b3c
2026-01-04T15:01:19.070412Z
true