(path, password)
| 13 | export default class PdfManager { |
| 14 | |
| 15 | static loadFile(path, password) { |
| 16 | if (typeof path !== 'string') { |
| 17 | throw new TypeError('path must be a valid string.'); |
| 18 | } |
| 19 | |
| 20 | if (password === undefined) { |
| 21 | password = ""; |
| 22 | } |
| 23 | |
| 24 | return PdfManagerNative.loadFile(path, password); |
| 25 | } |
| 26 | } |