Formulaire d'interrogation de Moustache-swap
Main PDF file with empty pages
JSON file containing the data used for replacements
PDF files to be inserted in the main document
Sample CURL call
curl -i -X POST {{url_for('api_v1_pdf_swap', _external=True)}} \
-F "{{API.PDF.SWAP.JSON}}=@ressources/test-ok/skittles.json" \
-F "{{API.PDF.SWAP.FILE}}=@ressources/test-ok/principal.pdf" \
-F "{{API.PDF.SWAP.ANNEXES}}=@ressources/test-ok/annexe1.pdf" \
-F "{{API.PDF.SWAP.ANNEXES}}=@ressources/test-ok/annexe2.pdf" > result.pdf