I have a HTML popup displaying data retrieved from the server, and I am attempting to download this data as a PDF using the pdfmake plugin. While I am able to generate the PDF file, the challenge lies in replicating the HTML page layout in the PDF. Here is a sample data from the HTML popup: https://i.sstatic.net/6CCBZ.jpg
Below is my JavaScript code:
$scope.download_pdf = function(questions,temptitle,extid,info){
// Code logic here
}
I am seeking to create a PDF file that mimics the design of the image provided. Any guidance on how to accomplish this would be greatly appreciated.
Thank you, Sankar.