I have a link on my page that, when clicked by the user, retrieves a list from the database using an ajax call and displays it.
Now, I'm looking to add another link that, when clicked, will fetch the list from the database via ajax and present it in PDF format for easy printing or saving as a PDF file, without displaying any other information (such as webpage headers, footers, menus, etc).
Despite extensive research, I haven't been able to find a solution for this. Could you please advise if this is possible and provide some ideas on how to accomplish this task?