Looking for a solution to save a complex table generated via JavaScript as a PDF on the server. Existing pdf generation libraries have limitations with style and fonts, making it difficult for 'complex' tables. The table can currently be downloaded client-side as a PDF or printed.
Wondering if there's a way to use AJAX to send the created PDF document to a PHP file on the server for server-side storage instead of downloading it client-side. The function responsible for generating the form to be printed is reportBody(data);
, which includes other variables and function calls.
In essence, can we achieve sending a PDF file generated client-side to the server through an AJAX post?