biz-dev-ops / md-docs-cli

Apache License 2.0
1 stars 1 forks source link

Add pdf letter support #713

Closed arjangeertsema closed 1 month ago

arjangeertsema commented 2 months ago

Remove depricated paged js library and add prince xml rendering.

arjangeertsema commented 2 months ago

@stiekstra I have added all the base elements. Can you style and position pdf which is added heren: https://github.com/biz-dev-ops/md-docs-cli/blob/feature/pdf/assets/scripts/pdf.js

This button should only be visisble when maximized.

arjangeertsema commented 2 months ago

@stiekstra

Input:

{{ recipient.salutation}}

Er staat een nieuw bericht voor je klaar op onze website: {{data.message_type}}.
Lees je post. Dan blijf je op de hoogte van je hypotheek.

::: call-to-action
  # Lees je post

  * Bekijk in jouw eigen postbus al je persoonlijke post.
  * Log makkelijk in met jouw identiteit on je post te bekijken.

  [Ga naar {{tenant.message_box_url}}]({{{tenant.message_box_url}}}/{{{data.message_id}}})
:::

Output

<p>Beste mevrouw Jansen,</p>
<p>Er staat een nieuw bericht voor je klaar op onze website: de aflosnota.\nLees je post. Dan blijf je op de hoogte van je hypotheek.</p>
<div class="call-to-action">
   <h1>Lees je post</h1>
   <ul>
      <li>Bekijk in jouw eigen postbus al je persoonlijke post.</li>
      <li>Log makkelijk in met jouw identiteit on je post te bekijken.</li>
   </ul>
   <p>
      <a href="https://www.url.nl/post/8b2d9d0b-4652-4b48-a6c1-70b097c235b3">Ga naar https://www.url.nl/post</a> 
   </p
</div>