I’m not a professional developer, but am working on a small JavaScript single page application for my wife’s company. The app walks users through a vehicle inspection form with multiple screens. Users are free to navigate through different sections of the app until the final screen, at which point a PDF* detailing the results of the inspection is uploaded to a server.
I have two primary questions:
-
What’s the best way to temporarily persist the data until the PDF is generated? The bulk of the data is user’s answers to the inspection form questions, but they will also be able to take pictures using their smart phones or tablets to document any observable damage to the vehicle being inspected. I’m leaning towards using local storage, but wondering if there are better alternatives.
-
Is there a good JavaScript library for generating a PDF summarizing user’s responses to the inspection questions, including any attached damage images?
- Ultimately data will be written to a MySQL database as well, but PDF output is also required (for sharing with clients to document vehicle damage)