n8n-nodes-htmlcsstopdf
Version:
n8n community node to convert HTML and CSS to PDF using PdfMunk API - perfect for invoices, reports, certificates, and document generation
47 lines • 1.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HtmlcsstopdfApi = void 0;
class HtmlcsstopdfApi {
constructor() {
this.name = 'htmlcsstopdfApi';
this.displayName = 'HTML to PDF API';
this.documentationUrl = 'https://www.pdfmunk.com/api-docs';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'CLIENT-API-KEY': '={{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: 'https://pdfmunk.com',
url: '/api/v1/generatePdf',
method: 'POST',
headers: {
'CLIENT-API-KEY': '={{$credentials.apiKey}}',
'Content-Type': 'application/json',
},
body: {
html_content: '<div></div>',
css_content: '',
response_format: 'url',
},
},
};
}
}
exports.HtmlcsstopdfApi = HtmlcsstopdfApi;
//# sourceMappingURL=HtmlcsstopdfApi.credentials.js.map