Skip to content

Releases: fraserxu/electron-pdf

v1.1.7

10 Feb 14:40
Compare
Choose a tag to compare

Fixes

  • #168 Fixes bugs introduced in #159 by removing windows from the cache during normal job destruction.
    • If you are on v1.1.5-1.1.6 you should upgrade to this version.

v1.1.6

10 Feb 14:50
Compare
Choose a tag to compare

New Features

  • #166 - Added a short delay to address issue with missing content of capturePage for PNG exports

v1.1.5

09 Feb 14:10
Compare
Choose a tag to compare

New Features

  • #159 - For export jobs that are provided more than one resource, the job now resets the arguments to their original state before processing each resource.
  • New Events added:
    • window.termination emits an object with id and lifespan when a window is forcefully terminated. The id is the Electron.BrowserWindow id.
    • job.render.loadurl emits an object with url of the resource about to be loaded into the window and rendered.

Fixes

  • #163 - If a window remains open past a certain threshold (default: 5 minutes) it is automatically closed. The following two env properties are now supported:
    • ELECTRONPDF_WINDOW_CLEANUP_INTERVAL - in milliseconds, default 30 seconds; how often to check if open windows are hung
    • ELECTRONPDF_WINDOW_LIFE_THRESHOLD - in milliseconds, default 5 minutes

Breaking Changes

  • In versions prior to 1.1.5 if you provided a custom pageSize object for PDF rendering and set the landscape option it it, the job would flip the dimensions. This is undesirable, and now the landscape option will be ignored for any job that has the pageSize set.

1.1.1 Release

14 Dec 17:25
Compare
Choose a tag to compare

New Features

  • #143 - Add support for in-memory Buffers to prevent disk IO
  • #145 - Support HTML output for server-side rendering

Bugs

  • #139 Single session concurrency issue when using cookies

Version Updates

  • Ava.js to version 0.17
  • Electron to version 1.4.12

1.1.0 Release

02 Dec 17:13
Compare
Choose a tag to compare

Features

  • #132 - new observeReadyEvent available on the Job API
    • Sample Usage:
    job.observeReadyEvent( (detail) => {
        return new Promise( (resolve,reject) => {
          if( detail && detail.landscape ){
            job.changeArgValue('landscape', true)
          }
          resolve()
        })
    })

1.0.0 Release

11 Nov 01:41
Compare
Choose a tag to compare

This is the first major release, from 1.0.0 forward semver will be followed.

Breaking Changes from 0.13

  • Promises were introduced to better deal with markdown conversion, and now PDFExporter .createJob returns a promise instead of a job object. You should update your code accordingly,
    for example:
exporter.createJob(source, target, options).then( job => {
    job.on('job-complete', (r) => {
            console.log('pdf files:', r.results)
            // Process the PDF file(s) here
        })
        job.render()
    })  

Fixes

  • Issue #129 - Markdown generation was
    broken and PDF files had suffixes at the end of the filename