Skip to main content
chiarag0001
October 21, 2022
Solved

Damaged file: PDF from XSL-FO Transformation with Fonts

  • October 21, 2022
  • 5 replies
  • 1 view

Hello, I am using the PDF from XSL-FO Transformation with Fonts Smart Service from the Dynamic Document Generator (https://community.appian.com/b/appmarket/posts/dynamic-document-generator) plugin, version 1.9.1

I have no examples of using this Smart Service and the plugin documentation doesn't have specific examples.

I have tried to use the only complete code I can find in the community: https://community.appian.com/discussions/f/plug-ins/17891/pdf-from-xsl-fo-smart-service 

This produces a PDF without errors, but when I try to open it I get a "Damaged file" from Acrobat Reader.

This is how I configured the Smart Service:

Xml Document: a constant to test.xml file, with the code from the example

Xsl Document: a constant to _xslStyleSheet.xsl file, with the code from the example

Xsl Parameters: null

Font Document: null

Font Italic Document: null

Font Bold Document: null

Font Bold Italic Document: null

Create New Document: True

New Document Name: "pdf from xml"

New Document Desc: null

Save In Folder: a constant to a folder in Knowledge Center

Existing Document: null

Pause On Error: True

As I said, the process runs without errors, but then when I try to open the generated PDF the result is: "The file is damaged and could not be repaired".

Does anyone have a basic example with settings so I can generate a functioning PDF and develop from there? Thank you 

Best answer by sravaniy0001

Hi Chiara,

I faced the same issue, actually I deleted the document and created new one instead of uploading new version, it works now. sometimes uploading new version is not works properly. can you please try to delete the previous document and upload the new document and map that doc to constant.

5 replies

chiarag0001
November 8, 2022

Still hoping for someone to help! :)

meenakshi.velmurugan
November 21, 2022

Hi Chiara,

We are also facing the same issue. We are suspecting on plugin version only.

chiarag0001
November 21, 2022

Thank you for the feedback [mention:dba040713aae4e7590f550aede5aac10:e9ed411860ed4f2ba0265705b8793d05], unfortunately it seem like even after one month nobody cares to respond, especially in the plugin's page.

November 24, 2022

Hi Chiara,

I faced the same issue, actually I deleted the document and created new one instead of uploading new version, it works now. sometimes uploading new version is not works properly. can you please try to delete the previous document and upload the new document and map that doc to constant.

chiarag0001
November 25, 2022

Thank you [mention:03879b2441c74747945eb70631f779cc:e9ed411860ed4f2ba0265705b8793d05] for your comment.
I did as you said and in fact I was able to make the Smart Service work!