• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Documnent Marge with HTML inside the Json

New Here ,
Apr 19, 2021 Apr 19, 2021

Copy link to clipboard

Copied

Hello, i would like to use the Document Merge feature of the Document Services API to create a pdf by using a  MS Word template and a JSON file.

 

Is it possibile to have HTML inside the JSON file ?

For example if i have in the Json

 

"paymentTerms": "<strong>Hello world</strong>"

 

when I generate a PDF from a word template that have written

 

Payment terms

{{paymentTerms}}

 

I would like to see Hello world in the generated document.

Is that possible with document merge ?

If not how do you suggest to obtain the same result ?

My Json is generated from a POJO object.

 

Thank you for the answers!

 

 

 

TOPICS
Document Generation API , How to , PDF Services API

Views

291

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 19, 2021 Apr 19, 2021

Copy link to clipboard

Copied

Hi @ICGEB98BC ,

 

I like your way of thinking! Right now, we don't quite have that option, but it is in our roadmap.

 

In the mean time, if you are wanting to merge HTML into a PDF, your best option right now would be to use the Create PDF action which allows you to convert HTML to PDF.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2021 Apr 20, 2021

Copy link to clipboard

Copied

Hello and thank you for your answer.

So if I understand well i should convert my POJO in a JSON object and merge it with an HTML template to produce the PDF

And if i want a DOCX from that PDF i should convert it.

Am I right ?

When do you plan to release this function ?

I ask because build a template in DOCX is easier for people that usually do not mange HTML pages.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2021 Apr 20, 2021

Copy link to clipboard

Copied

LATEST

Also it would be great if you can support Base 64 images inside the HTML code in the JSON.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources