<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html" />
  <link rel="self" type="application/atom+xml" href="http://www.insideria.com/atom.xml" />
  <id>tag:www.insideria.com,2009://34/tag:www.insideria.com,2009://34.34801-</id>
  <updated>2009-11-16T15:17:18Z</updated>
  <title>Comments for Running Flex Applications Within PDFs (http://www.insideria.com/2009/01/running-flex-applications-adob.html)</title>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>
  <entry>
    <id>tag:www.insideria.com,2009://34.34801</id>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://blogs.oreilly.com/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=34/entry_id=34801" title="Running Flex Applications Within PDFs" />
    <published>2009-01-26T19:00:00Z</published>
    <updated>2009-08-09T22:53:29Z</updated>
    <title>Running Flex Applications Within PDFs</title>
    <summary>The entire family of Adobe Acrobat 9 products feature a Flash runtime, and Flex applications can now be embedded in a PDF. You can embed an XML document into a PDF, include a Flex application that reads the XML data,...</summary>
    <author>
      <name>Mike Slinn</name>
      <uri>http://mslinn.com</uri>
    </author>
    
    <category term="Blogs" />
    
    <content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
      <![CDATA[<p>The entire family of Adobe Acrobat 9 products feature a Flash runtime, and Flex applications can now be embedded in a PDF.  You can embed an XML document into a PDF, include a Flex application that reads the XML data, and mail the PDF to a colleague.  When they open the PDF they can run the embedded application.  That's a new meaning for a 'living document'.  PDFs are now just another container for a Flash runtime.  Your Flex application can either be viewed in a web browser or packaged into a PDF for viewing with Acrobat 9.</p>

<p><a href="http://www.jamesward.com/blog/?s=portableria">James Ward blogged about this</a> in November.  He calls Flex web applications embedded inside PDFs "Portable RIAs".  Adobe mentions this capability somewhat obliquely in their sales literature.  The third item in the <a href="http://www.adobe.com/products/acrobat/matrix.html">Acrobat feature matrix</a> mentions Flash support.  <a href="https://store1.adobe.com/cfusion/store/index.cfm?store=OLS-US&amp;storeRegion=US&amp;nr=0#categoryOid=1795555&amp;loc=en_us&amp;view=ols_prod&amp;category=/Applications/AcrobatPro&amp;store=OLS-US">Acrobat Pro</a> ($449) includes LiveCycle Designer, which is necessary for embedding the XML data.  LiveCycle ES is <a href="https://store1.adobe.com/cfusion/store/index.cfm?store=OLS-US&amp;storeRegion=US&amp;nr=0#categoryOid=1172072&amp;loc=en_us&amp;view=ols_prod&amp;category=/Applications/LiveCycle&amp;store=OLS-US">available separately</a> for $349.</p>

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.insideria.com/assets_c/2008/12/acrobatFamily.html" onclick="window.open('http://www.insideria.com/assets_c/2008/12/acrobatFamily.html','popup','width=766,height=135,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.insideria.com/assets_c/2008/12/acrobatFamily-thumb-500x88.png" alt="acrobatFamily.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="88" width="500" /></a></span>

<p>The Adobe Reader 9 About dialog shows support for <a href="http://www.ecma-international.org/memento/TC39.htm">ECMAScript</a>:</p>

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.insideria.com/assets_c/2008/12/ecmascriptAcrobat.html" onclick="window.open('http://www.insideria.com/assets_c/2008/12/ecmascriptAcrobat.html','popup','width=716,height=550,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.insideria.com/assets_c/2008/12/ecmascriptAcrobat-thumb-716x550.png" alt="ecmascriptAcrobat.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="384" width="500" /></a></span>

<p>The <a href="http://blogs.adobe.com/adobereader/">Adobe Reader Blog</a> is more informative: "<strong>Native Adobe Flash support</strong> - Adobe Reader 9 can natively display rich media content, which you'll notice immediately with Portfolios. Interested in viewing SWF and FLV files? Adobe Reader 9 is the answer."</p>

<p>AIR applications cannot be embedded inside PDFs, but they can be launched from Flex webapps (see <a href="http://www.rogue-development.com/blog2/2008/03/interacting-with-an-air-app-from-a-browser-based-app/">here</a>, <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html">here</a> and <a href="http://help.adobe.com/en_US/AIR/1.1/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7e15.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7c97">here</a>.)  Following is a diagram I made just for you, dear reader.  To clarify, a web server is not required to launch a Portable RIA, or an installed AIR application.</p>

<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="portingOptions.png" src="http://www.insideria.com/mslinn/portingOptions.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="322" width="365" /></span>

<p>I followed up with James and got further information.  You can either save XML data back into the PDF (as shown in his article) or save to a Local Shared Object.  This means that Portable RIAs are an alternative to AIR applications when offline operation is required.</p>

<p>The <a href="http://www.adobe.com/devnet/">Adobe Developer Connection</a> is your best source of information on this topic.</p>
<p>_______________________________</p>
<p>Mike Slinn<br />
Independent full-service software contractor and author<br />
<a href="http://slinnbooks.com/">http://slinnbooks.com</a><br />
<a href="http://www.mslinn.com/">http://mslinn.com</a></p>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.34801-comment:2051759</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.34801" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html#comment-2051759" />
    <title>Comment from Mark Piller on 2009-01-26</title>
    <author>
        <name>Mark Piller</name>
        <uri>http://www.themidnightcoders.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.themidnightcoders.com">
        <![CDATA[<p>Also, check out this PDF Generator available for .NET and Java backends:<br />
<a href="http://www.themidnightcoders.com/products/pdf-generator/overview.html">http://www.themidnightcoders.com/products/pdf-generator/overview.html</a></p>

<p> You can use Flex Builder to create your templates and generate PDF documents on the server. There's also a way to include any Flash or Flex application inside of the generated document. There's a live example of that on this page (see Flex Template Explorer):<br />
<a href="http://www.themidnightcoders.com/products/pdf-generator/examples.html">http://www.themidnightcoders.com/products/pdf-generator/examples.html</a><br />
</p>]]>
    </content>
    <published>2009-01-26T21:31:18Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.34801-comment:2051787</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.34801" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html#comment-2051787" />
    <title>Comment from Andrew Westberg on 2009-01-27</title>
    <author>
        <name>Andrew Westberg</name>
        <uri>http://www.flexjunk.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.flexjunk.com">
        <![CDATA[<p>Interesting.  What about printing capabilities of the PDF?  If I create a beautiful degrafa diagram or something, do I get a beautiful printout?</p>]]>
    </content>
    <published>2009-01-27T14:05:25Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.34801-comment:2051791</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.34801" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html#comment-2051791" />
    <title>Comment from James Ward on 2009-01-27</title>
    <author>
        <name>James Ward</name>
        <uri>http://www.jamesward.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.jamesward.com">
        <![CDATA[<p>Hi Andrew,</p>

<p>Printing out PDFs with SWFs works surprisingly well.  Try the demo in my blog post and then print it to see for yourself.</p>

<p>-James</p>]]>
    </content>
    <published>2009-01-27T16:25:53Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.34801-comment:2057071</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.34801" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/01/running-flex-applications-adob.html#comment-2057071" />
    <title>Comment from Kalavati Singh on 2009-04-06</title>
    <author>
        <name>Kalavati Singh</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>After reading documentation of Flex I am unable to decide whether LiveCycleData Service,BlazeDS ,Acrobat pro can be useful for my current requirement.pls help me to decide on my requirement.</p>

<p>Project Requirement<br />
                    We are using Flex on user interface to design and develop a web application that inturns sends and receives data to a embeded web server(Vxworks 6.6).<br />
                  I am quiet sure of designing/developing FLEX web application but my concerns is with connecting technologies(Flex----Web server).Can you please suggest me on this<br />
               Let me know if you need any further inputs on my end</p>]]>
    </content>
    <published>2009-04-06T07:40:30Z</published>
  </entry>

</feed
