Skip to main content
chiarag0001
Known Participant
Oct 21, 2022 2:31 PM UTC
Solved

Damaged file: PDF from XSL-FO Transformation with Fonts

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 

New Participant
Nov 24, 2022 6:30 AM UTC

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
Known Participant
Nov 8, 2022 2:41 PM UTC

Still hoping for someone to help! :)

meenakshi.velmurugan
Employee
Nov 21, 2022 12:56 PM UTC

Hi Chiara,

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

chiarag0001
Known Participant
Nov 21, 2022 1:13 PM UTC

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.

New Participant
Nov 24, 2022 6:30 AM UTC

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
Known Participant
Nov 25, 2022 3:43 PM UTC

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!