Step 3: Crafting Our PDF and Connecting PDFMonkey





PreviousStep 2: Creating a User, Generating a Meal Plan, and Retrieving ItNextStep 4: Sending The Document to Our User
Last updated
Was this helpful?
Was this helpful?
<table id="recipes">
<tr>
<th>Day</th>
<th>Meal</th>
<th>Name</th>
<th>Ingredients</th>
<th>Instructions</th>
<th>Image</th>
</tr>
<tr>
<td>1</td>
<td>{{ data.mealPlan[0].meals[0].meal }}</td>
<td>{{ data.mealPlan[0].meals[0].recipe.name }}</td>
<td>{{ data.mealPlan[0].meals[0].recipe.ingredientLines }}</td>
<td>{{ data.mealPlan[0].meals[0].recipe.instructions }}</td>
<td><img src="{{ data.mealPlan[0].meals[0].recipe.mainImage }}" style="max-width: 200px;"></td>
</tr>
<tr>
<td>1</td>
<td>{{ data.mealPlan[0].meals[1].meal }}</td>
<td>{{ data.mealPlan[0].meals[1].recipe.name }}</td>
<td>{{ data.mealPlan[0].meals[1].recipe.ingredientLines }}</td>
<td>{{ data.mealPlan[0].meals[1].recipe.instructions }}</td>
<td><img src="{{ data.mealPlan[0].meals[1].recipe.mainImage }}" style="max-width: 200px;"></td>
</tr>
<tr>
<td>1</td>
<td>{{ data.mealPlan[0].meals[2].meal }}</td>
<td>{{ data.mealPlan[0].meals[2].recipe.name }}</td>
<td>{{ data.mealPlan[0].meals[2].recipe.ingredientLines }}</td>
<td>{{ data.mealPlan[0].meals[2].recipe.instructions }}</td>
<td><img src="{{ data.mealPlan[0].meals[2].recipe.mainImage }}" style="max-width: 200px;"></td>
</tr>
</table>