A custom fax cover page can be added by including the cover page as the first attachment and having the fax API not include its own cover page.
The demo shows how to create a custom cover page using HTML and use it with the fax API.
Components of the demo include:
- Creating and rendering a HTML template (using handlebars.js in this demo) for the cover page.
- Creating a temporary
cover.html
for the rendered HTML and adding it as the first file attachment for the fax. - Seeing the fax
coverIndex
to0
to represent "None" and not include a RingCentral provided cover page.
Sample files:
$ git clone https://github.com/ringcentral-tutorials/fax-cover-page-nodejs-demo.git
$ cd fax-cover-page-nodejs-demo
$ npm install
cp .env.sample .env
vim .env
node index.js