Skip to main content
April 7, 2025
Question

generate pdf from word

  • April 7, 2025
  • 5 replies
  • 0 views

hello I'm new to Appian and i have a task to generate a pdf from word template i used DOCX From Dynamic Template smart service then PDF From DOCX i checked every thing but the document isn't generated i will attach the xml code and the word template

[View:/cfs-file/__key/communityserver-discussions-components-files/62/Stationery-Request-templete-test.docx:320:240]  

here is the xml generated 

<orders><createdBy>sliman.izz</createdBy><createdOn>4/7/2025 3:50 PM GMT+02:00</createdOn><items><orderDetails itemName='test' itemCode='54' requestedQuantity='100' receivedQuantity='50' notes='not done' /><orderDetails itemName='test' itemCode='45' requestedQuantity='20' receivedQuantity='10' notes='not done' /><orderDetails itemName='test' itemCode='85' requestedQuantity='50' receivedQuantity='50' notes='done' /><orderDetails itemName='test' itemCode='75' requestedQuantity='40' receivedQuantity='40' notes='done' /></items></orders>

what could be the problem?

5 replies

varuntejg243705
April 8, 2025

Hi [mention:075af5a4d70a4fb7ba63d7dcedf75b8f:e9ed411860ed4f2ba0265705b8793d05] ,

can you try this code and let me know?


sliman.izz
2025-04-07T15:50:00+02:00








Sometimes, XML parses accepts only double quotes,

Some parsers or XSD validators expect ISO 8601 date format.

April 8, 2025

I tried with double quotes and still it won't generate the docx file.

stefanhelzle0001
April 8, 2025

Did you read the documentation included in the download from the app market? I think that you cannot just dump XML into the document and hope it renders.

csteward
April 8, 2025

Just to add to the thread, if you are generating your own Word document on the fly via XML (not relying on something already in existence etc) and having issues, you might have better luck with generating an HTML Doc From Template instead and converting to PDF with the PDF from HTML service, if this fits your case.  That's what we use primarily to create PDFs from scratch and typically works pretty well.

stefanhelzle0001
April 9, 2025