<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Create PDF in runtime with Actionscript 3 (AlivePDF, Zinc or AIR, Flex or Flash)</title>
	<atom:link href="http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/</link>
	<description>luca mezzalira&#039;s blog, a place to talk about Flash Platform</description>
	<lastBuildDate>Mon, 13 Feb 2012 10:01:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: lucamezzalira</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4918</link>
		<dc:creator><![CDATA[lucamezzalira]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 09:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4918</guid>
		<description><![CDATA[I suggest to create a dll or a server side script that make it instead of zinc and Flash because probably you can&#039;t do that only with Zinc without having a worst user experience]]></description>
		<content:encoded><![CDATA[<p>I suggest to create a dll or a server side script that make it instead of zinc and Flash because probably you can&#8217;t do that only with Zinc without having a worst user experience</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zieff</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4917</link>
		<dc:creator><![CDATA[zieff]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 09:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4917</guid>
		<description><![CDATA[Hi Lucas,
Your article is great and your code works well for a small byteArray.
The pdf I have to save is very big (more than 100 pages with many pictures) and running time is to long so it stop before finish. How can I &quot;cut&quot; the byteArray to save it by using mdm zinc append routine?]]></description>
		<content:encoded><![CDATA[<p>Hi Lucas,<br />
Your article is great and your code works well for a small byteArray.<br />
The pdf I have to save is very big (more than 100 pages with many pictures) and running time is to long so it stop before finish. How can I &#8220;cut&#8221; the byteArray to save it by using mdm zinc append routine?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lucamezzalira</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4916</link>
		<dc:creator><![CDATA[lucamezzalira]]></dc:creator>
		<pubDate>Mon, 12 Sep 2011 06:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4916</guid>
		<description><![CDATA[With AlivePDF you can&#039;t do that, you need to use something like LiveCycle or a server side library]]></description>
		<content:encoded><![CDATA[<p>With AlivePDF you can&#8217;t do that, you need to use something like LiveCycle or a server side library</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4915</link>
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Sat, 10 Sep 2011 22:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4915</guid>
		<description><![CDATA[anyway to dynamically password protect a pdf in actionscript]]></description>
		<content:encoded><![CDATA[<p>anyway to dynamically password protect a pdf in actionscript</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4872</link>
		<dc:creator><![CDATA[a]]></dc:creator>
		<pubDate>Thu, 11 Aug 2011 10:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4872</guid>
		<description><![CDATA[is any sample for pdf create in air using  flash builder 4 ?
:)]]></description>
		<content:encoded><![CDATA[<p>is any sample for pdf create in air using  flash builder 4 ? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petr</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4828</link>
		<dc:creator><![CDATA[Petr]]></dc:creator>
		<pubDate>Tue, 19 Jul 2011 09:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4828</guid>
		<description><![CDATA[I downloaded &quot;createPDFwithZinc&quot; from this web.]]></description>
		<content:encoded><![CDATA[<p>I downloaded &#8220;createPDFwithZinc&#8221; from this web.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petr</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4827</link>
		<dc:creator><![CDATA[Petr]]></dc:creator>
		<pubDate>Tue, 19 Jul 2011 09:14:04 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4827</guid>
		<description><![CDATA[Hi,
i need create PDF from flash cs5.5. I have a problem with definition in Main.as. I have error that &quot;Definition mdm is not found.&quot; And other problems connected with it.
Sorry for my english.
Thanks for help.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
i need create PDF from flash cs5.5. I have a problem with definition in Main.as. I have error that &#8220;Definition mdm is not found.&#8221; And other problems connected with it.<br />
Sorry for my english.<br />
Thanks for help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Finkbeiner</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4776</link>
		<dc:creator><![CDATA[David Finkbeiner]]></dc:creator>
		<pubDate>Mon, 13 Jun 2011 14:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4776</guid>
		<description><![CDATA[After creating the PDF in Flex, how can you then get the browser to &quot;open&quot; the PDF using the normal, registered application (Adobe Reader)?  I know that if you save the PDF to the server you can then request it from the browser - and if the server sets the correct Content-Type and Content-Disposition headers the browser will know to open it with Adobe Reader.  But how can you do that without a round-trip to the server?  From Flex can you call a JavaScript function, passing the PDF bytes and then have the JavaScript function set the appropriate parameters on the browser&#039;s Document object so that it&#039;s the same net effect as the browser receiving an HTTP response with those MIME headers set?]]></description>
		<content:encoded><![CDATA[<p>After creating the PDF in Flex, how can you then get the browser to &#8220;open&#8221; the PDF using the normal, registered application (Adobe Reader)?  I know that if you save the PDF to the server you can then request it from the browser &#8211; and if the server sets the correct Content-Type and Content-Disposition headers the browser will know to open it with Adobe Reader.  But how can you do that without a round-trip to the server?  From Flex can you call a JavaScript function, passing the PDF bytes and then have the JavaScript function set the appropriate parameters on the browser&#8217;s Document object so that it&#8217;s the same net effect as the browser receiving an HTTP response with those MIME headers set?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neelima</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4702</link>
		<dc:creator><![CDATA[Neelima]]></dc:creator>
		<pubDate>Wed, 30 Mar 2011 07:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4702</guid>
		<description><![CDATA[Can any one help me in understanding, how can I run and generate the pdf using the source files.....

Many Thanks in advanve.]]></description>
		<content:encoded><![CDATA[<p>Can any one help me in understanding, how can I run and generate the pdf using the source files&#8230;..</p>
<p>Many Thanks in advanve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lucamezzalira</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4677</link>
		<dc:creator><![CDATA[lucamezzalira]]></dc:creator>
		<pubDate>Thu, 03 Mar 2011 06:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4677</guid>
		<description><![CDATA[you can&#039;t do that with as2, it&#039;s only as3 library.
In as2 you have to pass your data to a serverside script that make a PDF for you

cheers]]></description>
		<content:encoded><![CDATA[<p>you can&#8217;t do that with as2, it&#8217;s only as3 library.<br />
In as2 you have to pass your data to a serverside script that make a PDF for you</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manoj</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4676</link>
		<dc:creator><![CDATA[Manoj]]></dc:creator>
		<pubDate>Thu, 03 Mar 2011 06:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4676</guid>
		<description><![CDATA[Nice to see code but i need little bit help that can i create pdf in AS2, Here i have logo and text and want to create pdf when user click on finish. please suggests me in AS2]]></description>
		<content:encoded><![CDATA[<p>Nice to see code but i need little bit help that can i create pdf in AS2, Here i have logo and text and want to create pdf when user click on finish. please suggests me in AS2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joephuz</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4663</link>
		<dc:creator><![CDATA[Joephuz]]></dc:creator>
		<pubDate>Fri, 11 Feb 2011 04:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4663</guid>
		<description><![CDATA[For those trying to build a web application with CS4... I was able to get this code working by removing the mdm code and replacing the event dispatched from CreatePDF.as  savePDF(); method - using the FileReference class (built into FP9 )

ex: ( in CreatePDF.as )
public function savePDF(pdfName:String):void
		{
			
			var fileReference:FileReference = new FileReference();
			var byteArray:ByteArray = pdf.save(Method.LOCAL);
			fileReference.save(byteArray, pdfName+&#039;.pdf&#039;);
			
		}

Works great locally or deployed to the server - pretty good code thanks much!]]></description>
		<content:encoded><![CDATA[<p>For those trying to build a web application with CS4&#8230; I was able to get this code working by removing the mdm code and replacing the event dispatched from CreatePDF.as  savePDF(); method &#8211; using the FileReference class (built into FP9 )</p>
<p>ex: ( in CreatePDF.as )<br />
public function savePDF(pdfName:String):void<br />
		{</p>
<p>			var fileReference:FileReference = new FileReference();<br />
			var byteArray:ByteArray = pdf.save(Method.LOCAL);<br />
			fileReference.save(byteArray, pdfName+&#8217;.pdf&#8217;);</p>
<p>		}</p>
<p>Works great locally or deployed to the server &#8211; pretty good code thanks much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web informer</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4643</link>
		<dc:creator><![CDATA[web informer]]></dc:creator>
		<pubDate>Thu, 20 Jan 2011 08:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4643</guid>
		<description><![CDATA[how to create canvas in to a pdf from a flex application. I have already made pdf for text and images. But if i want to claim for canvas will you please let me know the code for it]]></description>
		<content:encoded><![CDATA[<p>how to create canvas in to a pdf from a flex application. I have already made pdf for text and images. But if i want to claim for canvas will you please let me know the code for it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lucamezzalira</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4426</link>
		<dc:creator><![CDATA[lucamezzalira]]></dc:creator>
		<pubDate>Fri, 21 May 2010 05:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4426</guid>
		<description><![CDATA[download this zip file: http://code.google.com/p/purepdf/downloads/detail?name=purePDF_Examples.zip&amp;can=2&amp;q=
you can find tons of samples.
In this zip file the base class where everything start is DefaultBasicExample.as and, for example, HelloWorld is a good sample to create text in a PDF file and save it with FileReference.
If you need more infos you can also write in PurePDF list: http://code.google.com/p/purepdf/issues/list or drop me an email]]></description>
		<content:encoded><![CDATA[<p>download this zip file: <a href="http://code.google.com/p/purepdf/downloads/detail?name=purePDF_Examples.zip&#038;can=2&#038;q" rel="nofollow">http://code.google.com/p/purepdf/downloads/detail?name=purePDF_Examples.zip&#038;can=2&#038;q</a>=<br />
you can find tons of samples.<br />
In this zip file the base class where everything start is DefaultBasicExample.as and, for example, HelloWorld is a good sample to create text in a PDF file and save it with FileReference.<br />
If you need more infos you can also write in PurePDF list: <a href="http://code.google.com/p/purepdf/issues/list" rel="nofollow">http://code.google.com/p/purepdf/issues/list</a> or drop me an email</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/#comment-4425</link>
		<dc:creator><![CDATA[Bob]]></dc:creator>
		<pubDate>Fri, 21 May 2010 00:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://lucamezzalira.com/?p=204#comment-4425</guid>
		<description><![CDATA[Hi,

Thanks for your reply. I have tried to use purePDF as u recomended. I have downloaded the lib and a helloworld example but i seriously cannot get it work. can u send me an example project file that works with purepdf? idonno how to run it.

I&#039;m using a class file called helloworld which i bring it here:

package
{
	import flash.events.Event;
	
	import org.purepdf.elements.Paragraph;
        
	public class HelloWorld extends DefaultBasicExample
	{
		public function HelloWorld(d_list:Array=null)
		{
               super([&quot;This example shows how to add a simple text to the document&quot;,&quot;using a Paragraph element&quot;]);
               registerDefaultFont();
               
        }
               
        override protected function execute(event:Event=null) : void
        {
                super.execute();
       
                createDocument( &quot;Hello World&quot; );
                document.open();
                document.add( new Paragraph(&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vel lectus lorem. Phasellus convallis, tortor a venenatis mattis, erat mi euismod tellus, in fermentum sapien nibh sit amet urna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent tellus libero, lacinia ac egestas eget, interdum quis purus. Donec ut nisl metus, sit amet viverra turpis. Mauris ultrices dapibus lacus non ultrices. Cras elementum luctus mauris, vitae eleifend diam accumsan ut. Aliquam erat volutpat. Suspendisse placerat nibh in libero tincidunt a elementum mi vehicula. Donec lobortis magna vel nibh mollis tempor. Maecenas et elit nunc. Nam non auctor orci. Aliquam vel velit vel mi adipiscing semper in ac orci. Vestibulum commodo sem eget tortor lobortis semper. Ut sit amet sapien non velit rutrum egestas sollicitudin in elit. Fusce laoreet leo a sem mattis iaculis&quot;) );
                document.close();
                save();
        } 

	}
}

and here is my mxml file:



	
		
	
	


but after clicking the button nothing happens.

Could you please help me out?

Many thanks in advance..]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for your reply. I have tried to use purePDF as u recomended. I have downloaded the lib and a helloworld example but i seriously cannot get it work. can u send me an example project file that works with purepdf? idonno how to run it.</p>
<p>I&#8217;m using a class file called helloworld which i bring it here:</p>
<p>package<br />
{<br />
	import flash.events.Event;</p>
<p>	import org.purepdf.elements.Paragraph;</p>
<p>	public class HelloWorld extends DefaultBasicExample<br />
	{<br />
		public function HelloWorld(d_list:Array=null)<br />
		{<br />
               super(["This example shows how to add a simple text to the document","using a Paragraph element"]);<br />
               registerDefaultFont();</p>
<p>        }</p>
<p>        override protected function execute(event:Event=null) : void<br />
        {<br />
                super.execute();</p>
<p>                createDocument( &#8220;Hello World&#8221; );<br />
                document.open();<br />
                document.add( new Paragraph(&#8220;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vel lectus lorem. Phasellus convallis, tortor a venenatis mattis, erat mi euismod tellus, in fermentum sapien nibh sit amet urna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent tellus libero, lacinia ac egestas eget, interdum quis purus. Donec ut nisl metus, sit amet viverra turpis. Mauris ultrices dapibus lacus non ultrices. Cras elementum luctus mauris, vitae eleifend diam accumsan ut. Aliquam erat volutpat. Suspendisse placerat nibh in libero tincidunt a elementum mi vehicula. Donec lobortis magna vel nibh mollis tempor. Maecenas et elit nunc. Nam non auctor orci. Aliquam vel velit vel mi adipiscing semper in ac orci. Vestibulum commodo sem eget tortor lobortis semper. Ut sit amet sapien non velit rutrum egestas sollicitudin in elit. Fusce laoreet leo a sem mattis iaculis&#8221;) );<br />
                document.close();<br />
                save();<br />
        } </p>
<p>	}<br />
}</p>
<p>and here is my mxml file:</p>
<p>but after clicking the button nothing happens.</p>
<p>Could you please help me out?</p>
<p>Many thanks in advance..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

