Support multi-page PDFs for more than 3 selected checks

- pdfService: batch checks into groups of 3, add doc.addPage() between groups
- pdf route: remove 1-3 limit, accept any number of check IDs
- Frontend: remove 3-check selection cap; any number of checks can be selected
This commit is contained in:
2026-03-12 21:16:37 -06:00
parent 667ec146cc
commit 5f9cc16ea5
3 changed files with 16 additions and 26 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ const { generateCheckPdf } = require('../services/pdfService');
router.post('/', async (req, res) => {
const { checkIds } = req.body;
if (!Array.isArray(checkIds) || checkIds.length === 0 || checkIds.length > 3) {
return res.status(400).json({ error: 'checkIds must be an array of 13 IDs' });
if (!Array.isArray(checkIds) || checkIds.length === 0) {
return res.status(400).json({ error: 'checkIds must be a non-empty array' });
}
// Fetch account