Generating PDF report with image, header text and footer text
Hi,
I am looking for generating a report.
The report will typically contain:
- A header and a header logo image
- A graph image in document body
- Then a tabular data , using jsPDF autoTable plugin already
- Then the page footer with page number
For now, I have the png file for body image and header logo and i have the pdf already generating with tabular data using auto Table plugin.
What am i supposed to do ti add graph image, header or details text data and footer as page number in the pdf report generated?
Did you resolve this issue? There is an example showing this now in the jspdf-autotable repo.
Yes i was able to fix it. I am no more working on that project now. But your library was really awesome to work on. I am sure the new version must be doing well too. Keep it up!!
On Tuesday 1 March 2016, Simon Bengtsson [email protected] wrote:
Did you resolve this issue? There is an example showing this now in the jspdf-autotable repo.
— Reply to this email directly or view it on GitHub https://github.com/MrRio/jsPDF/issues/533#issuecomment-190732986.
Love and death are Two Uninvited guests, when they will come nobody knows.
but both do the same work, one takes heart and the other its beats......
Regards, Richa.
Sweet!
Hi,
I am using html2canvas to convert my html page to PDF. I want to add header in the PDF which is a part of canvas. My page is not with table. It is having <div> tag.
How to add this perticular part of canvas as header in PDF ???
I tried to make 2 canvas for this. First was the header and second was the content other than header.
I then did addImage(header) at every page start.
But only my header is printed in the PDF.
I also tried html2pdf plugin for this with the <header> tag, but it doesnt convert CSS to the PDF.
Convert your headerimage into dataURL and use below code when you define your jsPDF object:
$scope.doc = new jsPDF('p', 'pt', 'a4'); $scope.doc.internal.scaleFactor = 1.55; $scope.doc.context2d.pageWrapY = $scope.doc.internal.pageSize.height - 20; var coverImageData = "data:image/jpeg;base64,/---imageURL"; $scope.doc.addImage(coverImageData, 'JPEG', 60, 58, 460, 320);
i want to generate a pdf image using jspdfautotable A header and a header logo image A graph image in document body Then a tabular data , using jsPDF autoTable plugin already Then most way i want is the image which iam having has been convert into pdf
pls help me how to add header footer in jspdf and add an image in header and add page counter in footer pls save me as i am in deadline