<?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/"
		>
<channel>
	<title>Comments on: Creating PDF with images using flex and AlivePDF</title>
	<atom:link href="http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/</link>
	<description>...coding blast beat!</description>
	<lastBuildDate>Wed, 14 Apr 2010 21:27:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrea Franz</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-364</link>
		<dc:creator>Andrea Franz</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-364</guid>
		<description>Nil, I think you should send it to the server and then send the output to the browser</description>
		<content:encoded><![CDATA[<p>Nil, I think you should send it to the server and then send the output to the browser</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patrick</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-363</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Wed, 20 Jan 2010 19:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-363</guid>
		<description>if you have time, can you contact me via email? i have a question you might be able to answer related to the alivepdf actionscript. thank you.</description>
		<content:encoded><![CDATA[<p>if you have time, can you contact me via email? i have a question you might be able to answer related to the alivepdf actionscript. thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nils</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-357</link>
		<dc:creator>Nils</dc:creator>
		<pubDate>Wed, 06 Jan 2010 14:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-357</guid>
		<description>Hello Andrea!

Is it possible to display a preview of the generated pdf by using the bytearray that is a result of the save method as source for an instance of the loader or image class? I played a little bit but had no success yet!

Do you have any ideas?

Thank you in advance!

Nils</description>
		<content:encoded><![CDATA[<p>Hello Andrea!</p>
<p>Is it possible to display a preview of the generated pdf by using the bytearray that is a result of the save method as source for an instance of the loader or image class? I played a little bit but had no success yet!</p>
<p>Do you have any ideas?</p>
<p>Thank you in advance!</p>
<p>Nils</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Franz</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-356</link>
		<dc:creator>Andrea Franz</dc:creator>
		<pubDate>Wed, 16 Dec 2009 12:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-356</guid>
		<description>It could be a problem in the image header. Did you try with other jpg&#039;s?</description>
		<content:encoded><![CDATA[<p>It could be a problem in the image header. Did you try with other jpg&#8217;s?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theo</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-355</link>
		<dc:creator>theo</dc:creator>
		<pubDate>Wed, 16 Dec 2009 09:57:05 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-355</guid>
		<description>Hi, thanks a lot for your example! I followed you idea, but when I use the addImageStream method, it gives me an error:&quot;Image format not supported for now&quot;. I want to display jpg images.I first thought that my AlivePfd version does not suport jpg, but when I looked at the sources I saw that JPEGImage, JPEGEncoder exist. Maybe I have to do some decoding. I don&#039;t know. Maybe you have encounted this before. Thanks</description>
		<content:encoded><![CDATA[<p>Hi, thanks a lot for your example! I followed you idea, but when I use the addImageStream method, it gives me an error:&#8221;Image format not supported for now&#8221;. I want to display jpg images.I first thought that my AlivePfd version does not suport jpg, but when I looked at the sources I saw that JPEGImage, JPEGEncoder exist. Maybe I have to do some decoding. I don&#8217;t know. Maybe you have encounted this before. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Girton</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-353</link>
		<dc:creator>George Girton</dc:creator>
		<pubDate>Mon, 30 Nov 2009 22:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-353</guid>
		<description>woops, my prior post did not appear at all on this webpage! 
It showed defining of an 

mx:Image element with id=&quot;tomato&quot;, source=&quot;your_file.png&quot;

and then the reference

var tPt:Point = new Point(10, 12)
myPDF.addImage(tomato,null,tPt.x, tPt.y, pageWidth/3,pageWidth/3)</description>
		<content:encoded><![CDATA[<p>woops, my prior post did not appear at all on this webpage!<br />
It showed defining of an </p>
<p>mx:Image element with id=&#8221;tomato&#8221;, source=&#8221;your_file.png&#8221;</p>
<p>and then the reference</p>
<p>var tPt:Point = new Point(10, 12)<br />
myPDF.addImage(tomato,null,tPt.x, tPt.y, pageWidth/3,pageWidth/3)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Girton</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-352</link>
		<dc:creator>George Girton</dc:creator>
		<pubDate>Mon, 30 Nov 2009 22:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-352</guid>
		<description>Here you go, @Dorothy, hope this helps get you going!  Note that in &quot;addImage&quot;, the id reference to &quot;tomato&quot; is not in quotes.  You will need to supply  various bits of connection, setup, import statements, and so forth.

&lt;code&gt;





&lt;/code.</description>
		<content:encoded><![CDATA[<p>Here you go, @Dorothy, hope this helps get you going!  Note that in &#8220;addImage&#8221;, the id reference to &#8220;tomato&#8221; is not in quotes.  You will need to supply  various bits of connection, setup, import statements, and so forth.</p>
<p><code></p>
<p>&lt;/code.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Franz</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-348</link>
		<dc:creator>Andrea Franz</dc:creator>
		<pubDate>Tue, 24 Nov 2009 13:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-348</guid>
		<description>@Dorothy, in my example I use addImageStream, did you try that?
@Abhi, do you start each call after completing the previous one?</description>
		<content:encoded><![CDATA[<p>@Dorothy, in my example I use addImageStream, did you try that?<br />
@Abhi, do you start each call after completing the previous one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dorothy</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-343</link>
		<dc:creator>Dorothy</dc:creator>
		<pubDate>Mon, 16 Nov 2009 22:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-343</guid>
		<description>Hello.
I just want to add a logo to my pdf.
I&#039;ve tried the 
myPDF.addImage(&quot;logo.png&quot;,300 300)
I&#039;ve tried a number of variations of this. Seems to have an issue with the DisplayObject.


From what I&#039;ve read, addImagestream works better, but I&#039;m not getting the syntex.

Could someone provide code that simply allow me to put a small png in the pdf? I don&#039;t care if it&#039;s addImage or addImagestream.

Thanks for any help!
D</description>
		<content:encoded><![CDATA[<p>Hello.<br />
I just want to add a logo to my pdf.<br />
I&#8217;ve tried the<br />
myPDF.addImage(&#8220;logo.png&#8221;,300 300)<br />
I&#8217;ve tried a number of variations of this. Seems to have an issue with the DisplayObject.</p>
<p>From what I&#8217;ve read, addImagestream works better, but I&#8217;m not getting the syntex.</p>
<p>Could someone provide code that simply allow me to put a small png in the pdf? I don&#8217;t care if it&#8217;s addImage or addImagestream.</p>
<p>Thanks for any help!<br />
D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhi</title>
		<link>http://gravityblast.com/2009/07/19/creating-pdf-with-images-using-flex-and-alivepdf/comment-page-1/#comment-341</link>
		<dc:creator>Abhi</dc:creator>
		<pubDate>Sat, 07 Nov 2009 08:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://gravityblast.com/?p=216#comment-341</guid>
		<description>Hey Andrea ... quick question related to the way httpservice calls are handled in Flex and pdf generation using AlivePDF.

Currently I need to perform some atcion(s) on successful generation of pdf using AlivePDF. Since I am not using AIR, I cannot use the Method.LOCAL in the save call of AlivePDF. 

I hit a struts action servlet, wherein I consume the generated byte array and save it in the database using sping-jdbc. On successful save to the database, I need to perform further set of operations (httpservice) which are fired from Flex.

My problem is that the httpservice in Flex is an asynchronous call, so invariably my httpservice call(s) are getting executed even before the byte stream is stored in the db, resulting in error scenarios.

I have tried invoking the httpservice in the event: ProcessingEvent.COMPLETE, even then it gets called before the saving of the pdf.

I am trying either of the options: 

1. to propogate the alive pdf response to Flex but I get a null if I use Method.LOCAL.  I do send a response from the db saving service from the Action servlet, but have not managed to propogate the same to Flex.

2. to sequentially and synchronously call the httpservice ensuring they are called after the pdf is generated and saved.</description>
		<content:encoded><![CDATA[<p>Hey Andrea &#8230; quick question related to the way httpservice calls are handled in Flex and pdf generation using AlivePDF.</p>
<p>Currently I need to perform some atcion(s) on successful generation of pdf using AlivePDF. Since I am not using AIR, I cannot use the Method.LOCAL in the save call of AlivePDF. </p>
<p>I hit a struts action servlet, wherein I consume the generated byte array and save it in the database using sping-jdbc. On successful save to the database, I need to perform further set of operations (httpservice) which are fired from Flex.</p>
<p>My problem is that the httpservice in Flex is an asynchronous call, so invariably my httpservice call(s) are getting executed even before the byte stream is stored in the db, resulting in error scenarios.</p>
<p>I have tried invoking the httpservice in the event: ProcessingEvent.COMPLETE, even then it gets called before the saving of the pdf.</p>
<p>I am trying either of the options: </p>
<p>1. to propogate the alive pdf response to Flex but I get a null if I use Method.LOCAL.  I do send a response from the db saving service from the Action servlet, but have not managed to propogate the same to Flex.</p>
<p>2. to sequentially and synchronously call the httpservice ensuring they are called after the pdf is generated and saved.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
