To use the "Download All PDFs (ZIP)" button and get all guides at once, you must run a local web server. This is required because browsers block JavaScript from accessing local files directly for security reasons.
Step-by-Step Instructions
- Open a terminal in your project directory.
- Run this command:
python3 -m http.server 8080 - Open your browser and go to:
http://localhost:8080/index.html - Click the "Download All PDFs (ZIP)" button. All PDFs will be downloaded as a single ZIP file.
Tip: You can still download individual PDFs using the other buttons, even without a server. The ZIP download only requires a server because of browser security rules.
Troubleshooting
- If you see errors about CORS or files not found, make sure you are using
http://localhost:8080and not opening the file directly from your computer. - Make sure all PDF files are present in the project folder.
- If you use a different port, update the URL accordingly (e.g.,
http://localhost:8000).