html-pdf-lts
Version:
HTML to PDF converter that uses phantomjs
191 lines (122 loc) • 11.6 kB
Markdown
### Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v2.2.7](https://github.com/sambacha/node-html-pdf/compare/v2.2.6...v2.2.7)
> 6 August 2020
- fix moved else clause accidentally [`b736cee`](https://github.com/sambacha/node-html-pdf/commit/b736cee5eb430278e72dc410304f3bf20058d9a3)
#### [v2.2.6](https://github.com/sambacha/node-html-pdf/compare/v2.2.5...v2.2.6)
> 5 August 2020
- add page settings options [`9fd41fc`](https://github.com/sambacha/node-html-pdf/commit/9fd41fcd8bcd99307b9e46f52f2dd72e196e97a5)
#### [v2.2.5](https://github.com/sambacha/node-html-pdf/compare/v2.2.4...v2.2.5)
> 8 June 2020
- adds possibilty to get height and width of content [`897a9de`](https://github.com/sambacha/node-html-pdf/commit/897a9decdb71e9d8ea0eb05d5c8f4fb8a5c83212)
- update deps [`8d1c693`](https://github.com/sambacha/node-html-pdf/commit/8d1c693ed1d178fdbc37bd866968b49de515f499)
- A better way for handling PhantomJS exits [`a0f4500`](https://github.com/sambacha/node-html-pdf/commit/a0f4500a5a003ce69e62f0f4dbe73bb2537aeb0e)
#### [v2.2.4](https://github.com/sambacha/node-html-pdf/compare/v2.2.3...v2.2.4)
> 11 February 2020
- fix pageFooter-first/last and pagination [`2192d55`](https://github.com/sambacha/node-html-pdf/commit/2192d551e3ab6e8a7ea4152239e6c6397e996099)
#### [v2.2.3](https://github.com/sambacha/node-html-pdf/compare/v2.2.2...v2.2.3)
> 7 June 2019
- update deps [`3ee35e9`](https://github.com/sambacha/node-html-pdf/commit/3ee35e9eb7f17bcac13c9eba89840102b38d2adf)
#### [v2.2.2](https://github.com/sambacha/node-html-pdf/compare/v2.2.1...v2.2.2)
> 4 December 2018
- improves calculation of height and width [`221d90d`](https://github.com/sambacha/node-html-pdf/commit/221d90d9586b0af0f0c58267a4b74401f894e105)
#### [v2.2.1](https://github.com/sambacha/node-html-pdf/compare/v2.2.0...v2.2.1)
> 7 November 2018
- adds possibilty to get height and width of content [`a60f921`](https://github.com/sambacha/node-html-pdf/commit/a60f921e540f13e76f33aadc743138fd0e76b6ea)
- Extract business card test into separate file [`89a41e3`](https://github.com/sambacha/node-html-pdf/commit/89a41e3bfe079a3d062c6053f26a9183a1a548a2)
- Fix two of three broken links [`b0018c4`](https://github.com/sambacha/node-html-pdf/commit/b0018c4a8bf53304da4075d19c5e12c22ec884ae)
#### [v2.2.0](https://github.com/sambacha/node-html-pdf/compare/v2.1.0...v2.2.0)
> 27 September 2017
- Add missing comma in example config in README [`#262`](https://github.com/sambacha/node-html-pdf/pull/262)
- Remove CoffeScript dependency [`#236`](https://github.com/sambacha/node-html-pdf/pull/236)
- Apply standard style to all files [`#230`](https://github.com/sambacha/node-html-pdf/pull/230)
- Add `manual` renderDelay support using `window.callPhantom` [`6830076`](https://github.com/sambacha/node-html-pdf/commit/6830076fbd41db77ab53b002763c65b3c51650ef)
- Improve error handling and pipe stdout to process.stdout [`b672aa8`](https://github.com/sambacha/node-html-pdf/commit/b672aa862528d111e4cd0235238da3a3c183a580)
- Improve `renderDelay` option and add to README. [`91b359c`](https://github.com/sambacha/node-html-pdf/commit/91b359c839c813d5f00aa89b9ad7e0b2048b13c5)
#### [v2.1.0](https://github.com/sambacha/node-html-pdf/compare/2.0.1...v2.1.0)
> 17 August 2016
- Replace multiple occurences of {{page}} and {{pages}} [`#170`](https://github.com/sambacha/node-html-pdf/pull/170)
- Add MIT LICENSE file [`#169`](https://github.com/sambacha/node-html-pdf/pull/169)
- Get rid of 'undefined' in header and footers [`#167`](https://github.com/sambacha/node-html-pdf/pull/167)
- Exposing zoomFactor in options [`#162`](https://github.com/sambacha/node-html-pdf/pull/162)
- Handle spawn errors gracefully. [`#145`](https://github.com/sambacha/node-html-pdf/pull/145)
- Replace {{page}} and {{pages}} placeholders globally in header & footer [`#161`](https://github.com/sambacha/node-html-pdf/issues/161)
- Expose config for custom header & footer per page. [`#154`](https://github.com/sambacha/node-html-pdf/issues/154)
- Remove changelog file [`3bf4c68`](https://github.com/sambacha/node-html-pdf/commit/3bf4c6823f6750aad0e859f5efd9f31b59e50fd9)
- Handle spawn errors gracefully, [`07b9868`](https://github.com/sambacha/node-html-pdf/commit/07b98682b98d757c44043772650426171513faa5)
- Prevent the callback from getting called twice. [`b087cde`](https://github.com/sambacha/node-html-pdf/commit/b087cdec23887011a86287153cf4161c13ee3638)
#### [2.0.1](https://github.com/sambacha/node-html-pdf/compare/2.0.0...2.0.1)
> 19 February 2016
- Fix tmp directory path [`#117`](https://github.com/sambacha/node-html-pdf/pull/117)
- Version 2.0.1 [`c771f3c`](https://github.com/sambacha/node-html-pdf/commit/c771f3c6cade82e28f4db2ff1ff6a2211728eecc)
### [2.0.0](https://github.com/sambacha/node-html-pdf/compare/1.5.0...2.0.0)
> 16 February 2016
- Upgrade to phantomjs v2 [`#107`](https://github.com/sambacha/node-html-pdf/pull/107)
- Migrate module to javascript [`d454deb`](https://github.com/sambacha/node-html-pdf/commit/d454debf52c0477b2e58563afa5f7bdb7c98ef61)
- Add footer and header support to readme [`02748ee`](https://github.com/sambacha/node-html-pdf/commit/02748ee67b6ba37de7188fe34b472c6826470d9b)
- Support relative links using `base` option [`b791d6d`](https://github.com/sambacha/node-html-pdf/commit/b791d6d07abf4d39c01722cda46787c485a9d7b3)
#### [1.5.0](https://github.com/sambacha/node-html-pdf/compare/1.2.1...1.5.0)
> 27 January 2016
- Support dynamic headers and footers [`#105`](https://github.com/sambacha/node-html-pdf/pull/105)
- Add .npmignore [`#79`](https://github.com/sambacha/node-html-pdf/pull/79)
- Missing semicolon (even if not in strict mode) [`#92`](https://github.com/sambacha/node-html-pdf/pull/92)
- The command line il `html-pdf`, not `htmlpdf` [`#70`](https://github.com/sambacha/node-html-pdf/pull/70)
- Add http header support, fixes #69 [`#69`](https://github.com/sambacha/node-html-pdf/issues/69)
- Fixed issue 71. Refactored code a little. [`2c41416`](https://github.com/sambacha/node-html-pdf/commit/2c4141674cda6209cdd8de07263905d1f1b5a3f7)
- Add multiple pages example [`109b477`](https://github.com/sambacha/node-html-pdf/commit/109b4770eddb1da602b01cf2017bbf5e56a16bbc)
- Update example in README [`3a0a561`](https://github.com/sambacha/node-html-pdf/commit/3a0a56128934122c829e55fa47be04b222b29fe3)
#### [1.2.1](https://github.com/sambacha/node-html-pdf/compare/1.2.0...1.2.1)
> 14 June 2015
- Remove 2 minute force timeout [`#40`](https://github.com/sambacha/node-html-pdf/pull/40)
- Remove force timeout after 2minutes [`bc7d296`](https://github.com/sambacha/node-html-pdf/commit/bc7d296f3a1c6e24743c9a97c8ed164f80c3be0c)
- Version 1.2.1 [`46b3629`](https://github.com/sambacha/node-html-pdf/commit/46b36292b66d0bac94eac95ef987b3b8868adda8)
#### [1.2.0](https://github.com/sambacha/node-html-pdf/compare/1.1.0...1.2.0)
> 27 April 2015
- Phantom path [`#18`](https://github.com/sambacha/node-html-pdf/pull/18)
- Update examples & build [`23928e1`](https://github.com/sambacha/node-html-pdf/commit/23928e1f3a596514ba266307273ae217556b759a)
- Version 1.2.0 [`e734e9d`](https://github.com/sambacha/node-html-pdf/commit/e734e9daef86fb160bda1d71e70079d4555e3c56)
- Support external CSS [`b894f38`](https://github.com/sambacha/node-html-pdf/commit/b894f38bb0f38cffc62e8bca403db83c191a381f)
#### [1.1.0](https://github.com/sambacha/node-html-pdf/compare/v1.0.0...1.1.0)
> 25 February 2015
- Add phantomPath option [`21efba5`](https://github.com/sambacha/node-html-pdf/commit/21efba5ffeee478958151ff849a19c09cf49e60f)
- Update README [`fe94e72`](https://github.com/sambacha/node-html-pdf/commit/fe94e7212f45fd4591652d4bf36a96c4be009806)
- Version 1.1.0 [`187aa2b`](https://github.com/sambacha/node-html-pdf/commit/187aa2bf956dbd184df468f2eb04a16647d4fff3)
### [v1.0.0](https://github.com/sambacha/node-html-pdf/compare/0.3.0...v1.0.0)
> 25 January 2015
- Add tests & cleanup library [`4d6782a`](https://github.com/sambacha/node-html-pdf/commit/4d6782a20ffd549d7f25a13e47c90650172a203a)
- Add new API [`d26ae56`](https://github.com/sambacha/node-html-pdf/commit/d26ae5677b50f087b36a1d4b05730f18cf458893)
- Add toBuffer, toStream & toFile methods [`3ea3cc3`](https://github.com/sambacha/node-html-pdf/commit/3ea3cc3412396ef3ee85cfb83cdb9f45187b7e05)
#### [0.3.0](https://github.com/sambacha/node-html-pdf/compare/0.2.1...0.3.0)
> 27 November 2014
- Windows support [`#6`](https://github.com/sambacha/node-html-pdf/pull/6)
- Merge pull request #6 from marcbachmann/windows-support [`#5`](https://github.com/sambacha/node-html-pdf/issues/5)
- Use alternative loading of html. [`f448af1`](https://github.com/sambacha/node-html-pdf/commit/f448af1ffaa0fbe0cb9bf4db5750bda7c7cdd0ad)
- Add more tests [`be94dd3`](https://github.com/sambacha/node-html-pdf/commit/be94dd388c1acd8d2ea7b9b466e8a00a27300356)
- Deprecate options.buffer option [`bc639bf`](https://github.com/sambacha/node-html-pdf/commit/bc639bfea1596c3c5f0ebb6243c5e44e0601dd11)
#### [0.2.1](https://github.com/sambacha/node-html-pdf/compare/0.2.0...0.2.1)
> 25 July 2014
- Support global css styles [`#2`](https://github.com/sambacha/node-html-pdf/pull/2)
- Support remote images in pdf [`#1`](https://github.com/sambacha/node-html-pdf/pull/1)
- Allow global styles in HTML head, refactor script [`d829f73`](https://github.com/sambacha/node-html-pdf/commit/d829f73fe79f95b1906cab4f7d77b83b2ca0a357)
- Add options documentation [`d020202`](https://github.com/sambacha/node-html-pdf/commit/d0202025ef9f738b4301b421d1e69800ebc5d8d8)
- Version 0.2.1 [`ea7b887`](https://github.com/sambacha/node-html-pdf/commit/ea7b887c9bf1271401e0e0f5dbeed1988396e712)
#### [0.2.0](https://github.com/sambacha/node-html-pdf/compare/0.1.3...0.2.0)
> 17 July 2014
- Update example html with images [`aa89e36`](https://github.com/sambacha/node-html-pdf/commit/aa89e36e47d2a90d89c03263a2de40890a7e68d8)
- Wait for page load in phantomjs script [`12aa074`](https://github.com/sambacha/node-html-pdf/commit/12aa07422bbc87d1d25405ba927510974524aaaa)
- Version 0.2.0 [`3f3a36d`](https://github.com/sambacha/node-html-pdf/commit/3f3a36d8952add65749f78f09aaa6577806f3406)
#### [0.1.3](https://github.com/sambacha/node-html-pdf/compare/0.1.2...0.1.3)
> 4 June 2014
- Version 0.1.3 [`613840d`](https://github.com/sambacha/node-html-pdf/commit/613840d25b05ea300c25a81bf2b728d1b87b4e40)
- Update phantomjs package dependencies. They updated the binary host [`d032f46`](https://github.com/sambacha/node-html-pdf/commit/d032f4646a048b132c0e8e8b4bf7ff4907d5c61e)
#### [0.1.2](https://github.com/sambacha/node-html-pdf/compare/0.1.1...0.1.2)
> 27 April 2014
- Update README options syntax [`710e0ba`](https://github.com/sambacha/node-html-pdf/commit/710e0baee356f2e79816eaa92b34a16f680c4d15)
- Update Javascript lib/index.js file [`53b3dc9`](https://github.com/sambacha/node-html-pdf/commit/53b3dc98b47e5598937b34d436c03673a7163615)
- Version 0.1.2 [`d7e63f3`](https://github.com/sambacha/node-html-pdf/commit/d7e63f32726186d3906b83d340f762389ae6e13d)
#### 0.1.1
> 27 April 2014
- Basic setup. Perfectly working. [`1171beb`](https://github.com/sambacha/node-html-pdf/commit/1171bebd217caa1e7b4f5b0750210c59a97b7cf5)
- Remove async requirement [`947be3c`](https://github.com/sambacha/node-html-pdf/commit/947be3cc78970b6ddce097bf345a04cb7563acf1)
- Update README [`7b7589a`](https://github.com/sambacha/node-html-pdf/commit/7b7589a8ba18d291fd358af5b2f88b0d63436daa)