Product Update

Decembre 2023 : Doppio product update

Decembre 2023 : Doppio product update

Decembre 2023 : Doppio product update

Introducing Template creation on Doppio: Streamlining document design

This December, Doppio is excited to unveil a game-changing feature: Template Creation. This addition to our platform is designed to significantly ease the process of generating consistent, visually appealing documents - be it contracts, invoices, or social media banners. Our HTML template editor, complemented with basic models including Paged.js, empowers you to accelerate the construction of Doppio templates.

What Makes a Doppio Template Special?

A Doppio template is essentially an HTML file, enabling the creation of both PDFs and screenshots. These templates are pivotal in maintaining a consistent layout across documents, saving you from repeatedly writing the same HTML code. Here's an example of a simple Doppio template:

<!DOCTYPE html>
<html>
  <body>
    <h1>This a heading</h1>
    <p>This a paragraph</p>
  </body>
</html>

Managing Templates with Ease

You can easily manage your templates through the 'templates' menu in Doppio's dashboard. This area allows for creating, modifying, and deleting templates. We offer five basic templates to start with (3 for PDFs and 2 for screenshots). For PDF templates, we recommend using PagedJS for effortless layout management.

Interactive Template Editor

Our user-friendly HTML editor comes with a real-time preview feature, enhancing your template building experience. For an accurate representation, use the 'Real Doppio Render' button to see the actual Doppio output of your template in a new browser tab.

Customizing with Variables and Parameters

Templates support custom variables, which you can define using the syntax {* DOP_VARIABLE *}. These variables and their default values can be managed in the Parameters & Settings section. Additionally, templates allow you to predefine custom parameters for your document, eliminating the need to specify them during rendering.

Utilizing Templates in Your Code

Templates can be used with any Doppio rendering method - direct, sync, or async. Simply specify the `templateId` and `templateData` properties in your API call to render documents using your template, which will automatically replace your custom variables with the specified values.

const options = {
  method: 'POST',
  url: 'https://api.doppio.sh/v1/template/direct',
  headers: {
    'Authorization': 'Bearer <YOUR API KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    templateId: '<YOUR TEMPLATE ID>',
    templateData: {
      "DOP_HEADING": "Heading Title",
      "DOP_PARAGRAPH": "Paragraph Text"
    }
  })
};


With this new feature, we're thrilled to offer a more streamlined and efficient way to create and manage documents. We encourage you to explore this new functionality and share your feedback. Remember, we're still in beta and highly value your input as we continuously improve our services.

This December, Doppio is excited to unveil a game-changing feature: Template Creation. This addition to our platform is designed to significantly ease the process of generating consistent, visually appealing documents - be it contracts, invoices, or social media banners. Our HTML template editor, complemented with basic models including Paged.js, empowers you to accelerate the construction of Doppio templates.

What Makes a Doppio Template Special?

A Doppio template is essentially an HTML file, enabling the creation of both PDFs and screenshots. These templates are pivotal in maintaining a consistent layout across documents, saving you from repeatedly writing the same HTML code. Here's an example of a simple Doppio template:

<!DOCTYPE html>
<html>
  <body>
    <h1>This a heading</h1>
    <p>This a paragraph</p>
  </body>
</html>

Managing Templates with Ease

You can easily manage your templates through the 'templates' menu in Doppio's dashboard. This area allows for creating, modifying, and deleting templates. We offer five basic templates to start with (3 for PDFs and 2 for screenshots). For PDF templates, we recommend using PagedJS for effortless layout management.

Interactive Template Editor

Our user-friendly HTML editor comes with a real-time preview feature, enhancing your template building experience. For an accurate representation, use the 'Real Doppio Render' button to see the actual Doppio output of your template in a new browser tab.

Customizing with Variables and Parameters

Templates support custom variables, which you can define using the syntax {* DOP_VARIABLE *}. These variables and their default values can be managed in the Parameters & Settings section. Additionally, templates allow you to predefine custom parameters for your document, eliminating the need to specify them during rendering.

Utilizing Templates in Your Code

Templates can be used with any Doppio rendering method - direct, sync, or async. Simply specify the `templateId` and `templateData` properties in your API call to render documents using your template, which will automatically replace your custom variables with the specified values.

const options = {
  method: 'POST',
  url: 'https://api.doppio.sh/v1/template/direct',
  headers: {
    'Authorization': 'Bearer <YOUR API KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    templateId: '<YOUR TEMPLATE ID>',
    templateData: {
      "DOP_HEADING": "Heading Title",
      "DOP_PARAGRAPH": "Paragraph Text"
    }
  })
};


With this new feature, we're thrilled to offer a more streamlined and efficient way to create and manage documents. We encourage you to explore this new functionality and share your feedback. Remember, we're still in beta and highly value your input as we continuously improve our services.

By Priscila Nogues

December 20, 2023