We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I am trying to convert svg with devanagari fonts and it is not rendering the way it was supposed to.
Following is the code that I am trying to use
const svg = fs.readFileSync('random.svg').toString(); const doc = new PDFDocument(); const fontData = fs.readFileSync('./NotoSansDevanagari/NotoSansDevanagari-Regular.ttf'); doc.registerFont('NotoSansDevanagari', fontData); SVGToPDF(doc, svg, 0, 0, {fontCallback: () => { return 'NotoSansDevanagari'; }}) doc.pipe(res) doc.end()
Below is the svg file I am trying to convert and it is getting converted to response.pdf
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to convert svg with devanagari fonts and it is not rendering the way it was supposed to.
Following is the code that I am trying to use
Below is the svg file I am trying to convert
and it is getting converted to
response.pdf
The text was updated successfully, but these errors were encountered: