<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PDF generation using XSL FO</title><link>https://community.appian.com/discussions/f/general/12697/pdf-generation-using-xsl-fo</link><description>I am trying to generate a dynamic PDF with &amp;#39;PDF from XSL FO Transformation&amp;#39;, it is generating a PDF but after opening it I&amp;#39;m getting an error stating &amp;#39;The file is damaged and could not be repaired.&amp;#39; Has anyone came across such scenario? I&amp;#39;m not able find</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/68512?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 15:31:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8cafadc-bac1-4688-beb0-667ee2ae35b2</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;Hello Himanshu,&lt;/p&gt;
&lt;p&gt;Have you tested the XSLT with the xml in any XMLs tool? The complexity of doing this is that you are merging 2 languages the first is the XSLT and the second is the what I call the FO syntax &lt;/p&gt;
&lt;p&gt;If the ending xlsfo has wrong syntax or an invalid xml tag that kind of error could happen &lt;/p&gt;
&lt;p&gt;Jose&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/68443?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 08:58:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d00083fc-edc0-44a9-9c6c-62ee766a3d77</guid><dc:creator>himanshuk885</dc:creator><description>&lt;p&gt;Hi Chanakya,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am sending the xslt file in the xsl document input of the plugin. I am getting the same issue of corrupted pdf. could you let me know how you resolved this issue?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/68442?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 08:51:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7825e55a-01c5-44ac-85ee-0c17b2b4d357</guid><dc:creator>himanshuk885</dc:creator><description>&lt;p&gt;Hi paschimav,&lt;/p&gt;
&lt;p&gt;Could you please elaborate your 2nd point. I am using .xml for xml document and .xsl for xsl document. My confusion is which should be the input document in the inputs of xsl document in the Pdf from xsl-fo plugin. Should it be xsl file, xslt file or xsl-fo file. I am confused in between them as well and also between their extensions. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/67400?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 09:14:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5a180bd-d42f-4cd7-9b29-eb798e4c194b</guid><dc:creator>rajats246</dc:creator><description>&lt;p&gt;It would be much helpful if someone provides test sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/61098?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 17:53:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8c841ec-d3a7-4e83-9e30-be64f8af98d6</guid><dc:creator>laurenc20</dc:creator><description>This is often an error that is returned when the formatting is off. A good way to figure out the mistake is to take out all the formatting and add one small section back at a time. For every header or grid you will see it show up in a test PDF and when the PDF becomes corrupt you can find the missing or extra &amp;quot;(&amp;quot; or other character.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/60385?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 00:16:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1644bb2-dc65-4134-b125-9df0068a8a23</guid><dc:creator>josep</dc:creator><description>Ohhh understood! As you saw it was the XSLFO. Not other Format is available in that transformation. &lt;br /&gt;
&lt;br /&gt;
That’s Great that you got it working!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/60383?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 00:12:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7117323-9681-400e-9db3-e24de0cc0574</guid><dc:creator>Chanakya Volam</dc:creator><description>Hi Joseph,&lt;br /&gt;
&lt;br /&gt;
So my question was should I pass generic XSLT or formatted XSL-FO which is standard for PDF conversion, btw I was able to generate PDF using XSL-FO.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/60381?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 23:53:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb6c6da1-ac49-45c4-b696-be910d0136c6</guid><dc:creator>josep</dc:creator><description>Hello Chanakya, &lt;br /&gt;
&lt;br /&gt;
Well I am not sure what is the difference you are making between the XSLT of the XLS-FO . For me both files should be the same.  The real difference in both is that &lt;br /&gt;
* XSLT is a generic transformation  which transform XML(XSD-1) to XML(XSD-2)&lt;br /&gt;
* XSL-FO is a transformation to a specific Type file  which transform XML(XSD-1) to XML(FO). &lt;br /&gt;
&lt;br /&gt;
At the end both files are an XSLT.  So, can you give an example of what you have in one file or the other?&lt;br /&gt;
&lt;br /&gt;
I think the first file you are passing is the correct one with some problems in the XSLT transformation. are you 100% sure the syntax of your file is correct?  you were able to generate the PDF using the link I provided above?&lt;br /&gt;
&lt;br /&gt;
Note: to the plugin you should pass the Document id, which points to the xsl-fo and if the pdf is getting generated corrupted it means you have some error in your transformation, please take a look at the logs and paste it here, and try to generate the pdf using the link I suggested before. &lt;br /&gt;
&lt;br /&gt;
Let me know if this helps&lt;br /&gt;
&lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/60360?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 14:41:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12a3ad74-3b06-4015-ab35-812b53465d15</guid><dc:creator>Chanakya Volam</dc:creator><description>Hi  ,&lt;br /&gt;
&lt;br /&gt;
I am having same issues with this plugin, I have one big confusion&lt;br /&gt;
&lt;br /&gt;
Do we give the normal XSL-Transformation file as XSL File input to the plugin or the XSL-FO file. I tried both of these scenarios, If I use xslt then the pdf is corrupted and if I use xsl-fo then plugin itself is crashing&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/56899?ContentTypeID=1</link><pubDate>Wed, 20 Jun 2018 05:51:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e11be6e-f8ef-4852-aef6-c39158d88e62</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;Hello Deepanshua, &lt;/p&gt;
&lt;p&gt;That error is commonly found when the XSL-FO is not well formed and/or the commands were not interpreted by the Apache FOP library. &lt;/p&gt;
&lt;p&gt;Lot of the comments from the others might help you, what I recommend you to do is the following. &lt;/p&gt;
&lt;p&gt;Since you are working with multiple languages at the same time(I always use the analogy with the JSP which includes html-java or php).&lt;/p&gt;
&lt;p&gt;Here you are mixing he XSLT(xml2xml transformation) and the FO(pdf structure) tags.&lt;/p&gt;
&lt;p&gt;First make sure your FO part is working as expected. &lt;/p&gt;
&lt;p&gt;So use the XSL-Transformation (the first section the input is the xml and The XSL) from:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.utilities-online.info/foprender"&gt;www.utilities-online.info/foprender&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BY doing this you will get the pure FO file(I always recommend start with this then create the xsl)&lt;/p&gt;
&lt;p&gt;When you have this file you can review your tags and make sure that’s what you want as pdf. If the error still happen, remove sections so you can figure it out which is the cause of the error. To test it use the second section of the link above to debug the FO file. &lt;/p&gt;
&lt;p&gt;When ready now tweak your original XSL-Fo File to correct the issue.&lt;/p&gt;
&lt;p&gt;What can be happening is that the transformation is not making the things right, and it is creating an FO file with sintax problems or not valid tags. That why it’s better to first create the FO file, make sure that’s the PDF you want and then deal with the xml transformation.&lt;/p&gt;
&lt;p&gt;Hope this helps. &lt;/p&gt;
&lt;p&gt;Please feel free to ask if you have more problems, if that’s the case if you can share any file that might help to see the your issue. &lt;/p&gt;
&lt;p&gt;Jose&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/56847?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 11:01:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aaa50989-a4c9-4826-bb03-33de557d75ba</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;this might help u&lt;/p&gt;
&lt;p&gt;&lt;a href="/discussions/f/plug-ins/11747/how-to-convert-dynamic-doc-to-pdf-document-is-multi-language"&gt;https://community.appian.com/discussions/f/plug-ins/11747/how-to-convert-dynamic-doc-to-pdf-document-is-multi-language&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/56824?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 05:32:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ca07523-30f5-4f2d-98ac-cacd84fce6b6</guid><dc:creator>paschimav</dc:creator><description>Hi,&lt;br /&gt;
-Try verifying your XSL and XML code. You could use the link :  &lt;a href="http://www.utilities-online.info/foprender/#.Ww4iNkiFPIX"&gt;www.utilities-online.info/.../&lt;/a&gt; for the same.&lt;br /&gt;
-Check if the extension of the files you have uploaded is correct for both XML and XSL doc.&lt;br /&gt;
-And if you have an image in your  document, try removing the image and see if it gets generated then . I came across a similar scenario - &lt;br /&gt;
 when I had an image in the doc , Once it was removed ,the PDF document got generated.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/56819?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 04:52:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c67a818e-059b-4a45-acd9-ccfc238530a6</guid><dc:creator>vamshidhar</dc:creator><description>Hi Deepanshu,&lt;br /&gt;
&lt;br /&gt;
The PDF generation fails because of the following reasons. &lt;br /&gt;
1.When XML and XSL fields are mismatched.&lt;br /&gt;
2.Error in XSL code.&lt;br /&gt;
&lt;br /&gt;
Check whether the code is written correctly.&lt;br /&gt;
Even i faced the same issue.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/56795?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 13:53:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed44bcc7-63a9-4bf5-8141-ad33836668fc</guid><dc:creator>Justin Watts</dc:creator><description>That error likely means that the transformation resulted in an invalid schema (i.e. XML tags in the wrong place or dependent tags missing)&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;ve had success using validators like this &lt;a href="http://www.utilities-online.info/foprender/#.Wye456dKhPY"&gt;www.utilities-online.info/.../&lt;/a&gt; to try to better understand what the plug-in is doing and where I might need to adjust my XSL file to be compliant.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDF generation using XSL FO</title><link>https://community.appian.com/thread/56782?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 10:36:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7633949b-d4b1-49b1-a2d6-cab5b93bd25a</guid><dc:creator>prakashb9987</dc:creator><description>Please go through the below link which helps you understanding about XSL-FO in more detailed manner  &lt;br /&gt;
 &lt;a href="http://w3schools.sinsixx.com/xslfo/default.asp.htm"&gt;w3schools.sinsixx.com/.../default.asp.htm&lt;/a&gt; .&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>