<?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>Hello, I am creating a custom smart service to convert .odt file to .pdf fi</title><link>https://community.appian.com/discussions/f/general/1211/hello-i-am-creating-a-custom-smart-service-to-convert-odt-file-to-pdf-fi</link><description>Hello, I am creating a custom smart service to convert .odt file to .pdf file.I am using xdocReport lib for that. My code: String inputFilename = cs.getInternalFilename(inputDocument); FileInputStream in= new FileInputStream(new File(inputFilename));</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hello,&lt;br /&gt;I am creating a custom smart service to convert .odt file to .pdf fi</title><link>https://community.appian.com/thread/4161?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2013 14:32:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e877691-a529-4393-a009-43fd90dcc0ff</guid><dc:creator>Sathya Srinivasan</dc:creator><description>Okay, couple of things to test.  Since you&amp;#39;re telling me that you have independently tested this and it works, I would assume that the issue is retrieving the content from CS.  Let&amp;#39;s do this.  &lt;br /&gt;First, check that you&amp;#39;re injecting the content service and setting the value in the constructor.  Next, put logging and find out what the cs holds and also check what cs.getinternalversion.... etc., returns.  &lt;br /&gt;When you retrieve a document, it will return an Array.  Ensure you get document[0] and put a log around this to ensure that the values are coming through.  &lt;br /&gt;Let&amp;#39;s see what the log says and take it from there.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am creating a custom smart service to convert .odt file to .pdf fi</title><link>https://community.appian.com/thread/4160?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2013 14:25:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c31972b7-2427-4cd4-8681-094074d5b6cc</guid><dc:creator>hrishikeshd</dc:creator><description>Ya. I am exactly doing this . cs in my example is nothing but a content service.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am creating a custom smart service to convert .odt file to .pdf fi</title><link>https://community.appian.com/thread/4159?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2013 14:02:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dcf1d06a-127d-451d-99ad-2d5f201dc686</guid><dc:creator>Sathya Srinivasan</dc:creator><description>You will need ContentService to access the Appian Document from DMS.  Make sure that the user has correct privileges for this otherwise you&amp;#39;ll end up with Access violation.&lt;br /&gt;&lt;br /&gt;Here is an example code:&lt;br /&gt;CS = ContentService.  You have this injected automatically in your constructor. &lt;br /&gt;String documentPath = cs.getInternalFilename(document_input);&lt;br /&gt;FileInputStream fis = new FileInputStream(documentPath);&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;I am creating a custom smart service to convert .odt file to .pdf fi</title><link>https://community.appian.com/thread/4155?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2013 10:19:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9539c9c6-6608-453f-a94d-73a29320d7d7</guid><dc:creator>hrishikeshd</dc:creator><description>...Document. I am passing the name of the file which is to be converted&lt;br /&gt;and according to error Object type is wrong . so how to access the file on the apian in this scenario ?? or what should be done in this scenario ? Any suggestions ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>