Hi,
I've constructed a page which containers some paragraph blocks and charts. I have a button that will export the DOM to an A4 PDF. I have some influence on the paragraphs, but the charts are not being scaled to the A4 format.
The page is based on Bootstrap, so I use rows and columns.
kendo.drawing.drawDOM($(
".page-container"
),
{
paperSize:
"A4"
,
margin: { left:
"20mm"
, top:
"20mm"
, right:
"20mm"
, bottom:
"20mm"
}
})
.then(
function
(group) {
// Render the result as a PDF file
return
kendo.drawing.exportPDF(group);
})
.done(
function
(data) {
// Save the PDF file
kendo.saveAs({
dataURI: data,
fileName:
"Proposal.pdf"
,
forceProxy:
true
,
proxyURL:
'@Url.Action("Download")'
});
});
Questions
- Is Bootstrap not supported at all?
- Can I have influence on the size of the charts like I can with e.g. <p> tags by adding the .k-pdf-export class?
- Can I have influence on where I put page breaks?
Thanks in advance,
Daniel