'jsPDF - Nodejs compression not working with ASCIIhexEncode - returning empty pdf
We use jsPdf to create pdf's in client (ReactJS) and backend(NodeJS). It was working good in Client with and without compression. But in backend (Nodejs), it working only without compression and if we enable compression, its returning only an empty page. Below is the config.
var doc = new jsPDF({
orientation: 'l',
format: 'a3',
filters: ['ASCIIHexEncode'],
putOnlyUsedFonts: true,
// compress: true,
})
I have tried different combinations (Disabling filters, commenting putOnlyUsedFonts etc. ) in this config, but nothing works. Note: We have german language in our texts, so we use Roboto font and it was already configured using addFiletoVFS and AddFont.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|