Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

PDF From DOCX Not Preserving Line Breaks from Dynamic Paragraph Text

Certified Lead Developer

Hi Everyone,

I’m facing an issue while generating a PDF from a dynamically generated Word document.

Requirement:

  • Capture multi-line text from an Appian UI Paragraph Field
  • Populate it into a DOCX template using DOCX From Dynamic Template
  • Convert the generated DOCX to PDF using PDF From DOCX
  • Both smart services are from the Advanced Document Templating plugin

Issue:

  • The DOCX file is generated correctly and preserves all line breaks as expected.
  • However, when converting the DOCX to PDF, the line breaks are not rendered in the PDF output.

What I’ve tried so far:

  • Replacing char(10) with the XML equivalent 

  • Tested multiple variations, but the issue still persists
  • Implemented solutions suggested in the references below

(Links referenced below)
Link 1: https://community.appian.com/discussions/f/plug-ins/28870/line-break-docx-from-dynamic-template
Link 2: https://community.appian.com/discussions/f/plug-ins/28812/next-line-not-working-when-converting-from-docx-to-pdf
Link 3: https://community.appian.com/discussions/f/general/8837/rendering-line-breaks-in-pdf

Has anyone faced a similar issue or found a reliable way to preserve line breaks when converting DOCX to PDF using this plugin?

Any help or guidance would be greatly appreciated.

Thanks in advance!

  Discussion posts and replies are publicly visible