JiMax Reservation PDF
AI-generatedSummary
Generates a dark, gold-accented PDF reservation card (600x300 pt) for the Le Marivaux restaurant and saves it to the n8n server's local disk. Returns the file path, not the file contents.
Inputs
- fullName (required) — Customer's full name. Printed on the card and used (lowercased, spaces to underscores, non-alphanumerics stripped) in the filename.
- numberOfPeople (required) — Guest count (default 2). Printed as 'N Personne(s)', pluralized when greater than 1.
- dateTime (required) — Free-text reservation date and time (e.g. 'Samedi 20 Juin à 20:30'). Printed as given and sanitized into the filename.
- phone (required) — Customer's phone number, printed on the card.
- reservationCode (required) — Unique reservation code. Printed on the card and encoded as a gold-on-dark QR code.
Output shape
One output item per input item, with json containing status ('success') and pdfPath (absolute path of the generated PDF).
Files are written to a 'reservationsPDFs' folder under the n8n process working directory (created if missing), named
<random 4-digit>.pdf. No binary data is attached, so downstream nodes must read the file from disk (this won't work where there's no shared filesystem access). The restaurant address and opening hours (07:00 AM - 01:00 AM) are hardcoded on the card, and the logo is included only if icons/logo_marivaux.png is found. With Continue On Fail enabled, failed items return json.error instead of throwing.
Examples
Example 1: Create a confirmation card after a booking form submission
Map fullName, numberOfPeople, dateTime, phone and reservationCode from the form/webhook data with expressions; then read the file at pdfPath and email it.
Example 2: Generate a card with a static test value
fullName='Jean Dupont', numberOfPeople=4, dateTime='Samedi 20 Juin à 20:30', phone='+212600000000', reservationCode='MRX-1234'.