All Questions
9 questions
0
votes
3
answers
312
views
SVG is not displayed correctly when adding it to pdfmake pdf
I have a react project with pdfmake added by yarn, a component draws a chart (svg) using d3, I use an id to get the svg.
This is how I get the svg and add it to an empty document:
const svgElement = ...
1
vote
0
answers
86
views
PDFmake looking for 'svg' property in Image for document builder in Ionic 7 / Angular 16- compile error
I am using PDFmake in an Ionic 7.1 Angular 16 form Git repo here.
I have built my document definition below, according to the docs .
This is the document builder:
createPdf(){
const formValue = ...
0
votes
1
answer
670
views
How to create slanting SVG Image with slanting text
I am trying yo create the slanting Image in svg with slanting text as shown in below Image
I have tried to create same format but not able to create exact design as display in overall text, you can ...
3
votes
1
answer
2k
views
Node.js: Adding SVG to a specific page of PDF by pdfmake
I am trying to create PDF content by pdfmake. However, pdfmake do not support adding SVG at v0.1.38.
So I use SVG-to-PDFKit to achieve that. Here is my code:
var printer = new pdfMakePrinter(...
2
votes
1
answer
2k
views
pdfmake - Transform SVG to image64 in ANGULAR 4
I'm trying to transform an SVG into an image with pdfmake.
const svg = document.getElementById('chart-grafico-pizza').childNodes[0];
const img = document.createElement('img');
const canvas = document....
2
votes
1
answer
555
views
Streaming multiple svg strings to png in nodejs using promises
I am trying to convert multiple svg strings to png's so I can render them onto a pdf using PdfMake in nodejs. This works fine for one svg, but when I add multiple svg strings, they get overwritten by ...
0
votes
0
answers
170
views
Dotted line in pdf file with IE 10
The graph is the same and correct on browser, Chorme, IE11, IE10, etc....
In IE 11, I press a button to create png file, the result is correct.
In IE 10, I press a button to create png file, the ...
0
votes
1
answer
7k
views
How to handle SVG and canvas in pdfmake & html2pdfmake
I am using html2pdfmake to convert a div to pdf. My div contains tables and also contains some svg charts. But i am not getting the svg into the pdf. I tried converting it using base64 but is paste ...
4
votes
1
answer
4k
views
AngularJS export SVG to PDF
I'm trying to export a <svg> element sitting in DOM to a PDF file, generated on client side.
I tried with different libraries, and pdfmake is so close to what I want. Any working example with ...