Websites, apps & code / Coding & debugging
Merge and split PDFs with code
Every month you need to merge dozens of PDFs into one or split one into single pages.
1Fill in your details
Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).
3Copy the prompt
I often handle PDFs and want the simplest way to automate it. Please help. The job: Merge the 30 PDFs in the "invoices" folder into one in filename order, INV-001.pdf to INV-030.pdf Extras: Add a cover page in front and save into a folder named "merged" Approach: Use pypdf, write the full script and show me how to install it. Please: 1. First ask what you still need to confirm, such as whether files sort by number or by date. 2. Give the full method; if it is code, it must be copy-and-run. 3. If a PDF is encrypted or damaged, skip it and tell me which one instead of stopping everything. 4. Save to a new folder and never overwrite the original PDFs. 5. Remind me to be careful where I store files containing IC numbers or bank details. Explain in simple words so I can follow every step. [Make it sound human] - Explain in plain words; no pleasantry openers or empty summaries. - Only necessary, short, practical code comments; the simplest working approach, no over-engineering. - Interface text (buttons, hints, error messages) should sound like a person wrote it; no "seamless", "empower", "unlock". [Quality] Code must run as is and handle common errors; tell me how to test it and confirm it works; ask first if a requirement is unclear; never put passwords or API keys in the code.
Paste it into ChatGPT, Gemini, Claude or Meta AI.
Test result
AI tools that suit this
- Claude Suggested tool Free plan
Strong at long documents, editing and code
- ChatGPT Suggested tool Free plan
The most widely used AI chat, for writing, questions and images
- Gemini Suggested tool Free plan
Google's AI; generates and edits images, works with Gmail and Docs
Recommendations only, not sponsored. Check each site for what the free plan includes.
This site is made by FullMark Tech
Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.