Skip to main content
Inspiring
February 26, 2020
Question

Using a form to auto generate a letter

  • February 26, 2020
  • 2 replies
  • 933 views

Hi, 

I am not sure the best way to approach this or if it's possible. 

I am looking for a way to auto generate a letter based on the selections in a pdf form (the fillable form is already created)

The problem is that based on the form selections the paragraphs can be all different sizes making it hard to format. 

Currently I have multiple text boxes with custom calculation scripts in all of them so the text boxes auto populate with the proper paragraph (based on check boxes and dropdowns) but this method does not seem that efficient. After the form is completed all of the text boxes are filled in with the correct paragraph but I am then exporting it to a word document and formatting the whole letter which is a challenge at times (depending on how it exported). I have to format line spaces, indentations, and margins (basically all basic layout formatting).

Is there a better way out there ? 

The goal is to fill out the form and have the entire letter auto generate and just be ready to print. 

 

Thank you in advance. 

 

 

 

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
February 27, 2020

If the formatting is not overly complex and the letter does not cross a page boundary, then yes this is possible to do entirely in a PDF in Acrobat.

Look at the rich text options for Form fields. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
February 26, 2020

PDF files are not really suited for that kind of task.