<?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: Custom Printing with Flex, Part 3: Printing Data</title>
	<atom:link href="http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/</link>
	<description>The Dead Tree Blog</description>
	<lastBuildDate>Wed, 18 Jan 2012 08:30:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Buerkle</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-72306</link>
		<dc:creator>Buerkle</dc:creator>
		<pubDate>Wed, 18 Jan 2012 08:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-72306</guid>
		<description>Thanks for info

Andrew MacArthur</description>
		<content:encoded><![CDATA[<p>Thanks for info</p>
<p>Andrew MacArthur</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wally Kolcz</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-70396</link>
		<dc:creator>Wally Kolcz</dc:creator>
		<pubDate>Mon, 09 Jan 2012 00:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-70396</guid>
		<description>DUmb question, but I can&#039;t find an answer anywhere on Google. If it possible to generate the PDF with AlivePDF but rather than generate it with Flash, send ti to a FlexPrintJob directly and print the formatted PDF? Love how AlivePDF generates a PDF without server side language and allows me to dynamically place text and images, but my animal rescues would like to send the PDF directly to print (as an option). Can you send the pdf created to a UIComponent as a DisplayObject? Thanks!</description>
		<content:encoded><![CDATA[<p>DUmb question, but I can&#8217;t find an answer anywhere on Google. If it possible to generate the PDF with AlivePDF but rather than generate it with Flash, send ti to a FlexPrintJob directly and print the formatted PDF? Love how AlivePDF generates a PDF without server side language and allows me to dynamically place text and images, but my animal rescues would like to send the PDF directly to print (as an option). Can you send the pdf created to a UIComponent as a DisplayObject? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-57460</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Tue, 08 Nov 2011 21:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-57460</guid>
		<description>I believe the AlivePDF API gives you access to images.  If look at the previous article in this series you can see that when I do the printing I actually create an image first, then add it to a PDF before generating the PDF. But you&#039;d have to dig into AlivePDF a bit to see what functionality is available to you.</description>
		<content:encoded><![CDATA[<p>I believe the AlivePDF API gives you access to images.  If look at the previous article in this series you can see that when I do the printing I actually create an image first, then add it to a PDF before generating the PDF. But you&#8217;d have to dig into AlivePDF a bit to see what functionality is available to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Winters</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-57250</link>
		<dc:creator>Aaron Winters</dc:creator>
		<pubDate>Mon, 07 Nov 2011 21:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-57250</guid>
		<description>Or... Is there a way to run the cfm (or php) locally on the device (ex. calling http://localhost/pdfCreator.php) from within a flex mobile app?</description>
		<content:encoded><![CDATA[<p>Or&#8230; Is there a way to run the cfm (or php) locally on the device (ex. calling <a href="http://localhost/pdfCreator.php" rel="nofollow">http://localhost/pdfCreator.php</a>) from within a flex mobile app?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Winters</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-57244</link>
		<dc:creator>Aaron Winters</dc:creator>
		<pubDate>Mon, 07 Nov 2011 21:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-57244</guid>
		<description>Kalen,
Do you know how I could turn a pdf bytearray into an image? That, or is there some wacky way to produce the response that you create in your cfm programmatically? Thanks again!

-Aaron</description>
		<content:encoded><![CDATA[<p>Kalen,<br />
Do you know how I could turn a pdf bytearray into an image? That, or is there some wacky way to produce the response that you create in your cfm programmatically? Thanks again!</p>
<p>-Aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-57239</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Mon, 07 Nov 2011 20:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-57239</guid>
		<description>Hi Aaron,
  Wow, you can&#039;t save the file but you can&#039;t call the server either, that&#039;s a predicament.  I&#039;m not quite sure what you&#039;re trying to accomplish but one other option would be to turn the bytearray into an image that can be displayed or transferred in some way.</description>
		<content:encoded><![CDATA[<p>Hi Aaron,<br />
  Wow, you can&#8217;t save the file but you can&#8217;t call the server either, that&#8217;s a predicament.  I&#8217;m not quite sure what you&#8217;re trying to accomplish but one other option would be to turn the bytearray into an image that can be displayed or transferred in some way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Winters</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-56700</link>
		<dc:creator>Aaron Winters</dc:creator>
		<pubDate>Sat, 05 Nov 2011 15:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-56700</guid>
		<description>Kalen,
I have a very similar problem to what Harry is having. I have the pdf in a byteArray and want to show the pdf locally without having to save the file or ping against a web service. Basically, I can&#039;t have the data leaving the device, but I can&#039;t save the data on the device either, just temporarily showing the data. Is this feasible? Thanks, I really appreciate your help!

-Aaron</description>
		<content:encoded><![CDATA[<p>Kalen,<br />
I have a very similar problem to what Harry is having. I have the pdf in a byteArray and want to show the pdf locally without having to save the file or ping against a web service. Basically, I can&#8217;t have the data leaving the device, but I can&#8217;t save the data on the device either, just temporarily showing the data. Is this feasible? Thanks, I really appreciate your help!</p>
<p>-Aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-52554</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Thu, 13 Oct 2011 20:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-52554</guid>
		<description>Harry,
  If you don&#039;t have a web server to generate the PDFs in the browser why don&#039;t you just follow the steps mentioned in the &quot;Save locally from Flash&quot; section of this post?  That will allow users to simply open the PDF without the browser or save it on their hard drive.</description>
		<content:encoded><![CDATA[<p>Harry,<br />
  If you don&#8217;t have a web server to generate the PDFs in the browser why don&#8217;t you just follow the steps mentioned in the &#8220;Save locally from Flash&#8221; section of this post?  That will allow users to simply open the PDF without the browser or save it on their hard drive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Xu</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-52541</link>
		<dc:creator>Harry Xu</dc:creator>
		<pubDate>Thu, 13 Oct 2011 18:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-52541</guid>
		<description>Kalen,

Thank you for your quick reply. However, I just realize I don&#039;t have a http service in my project. My situation is actually more flex side. I store my PDF as base64 string in the database and return this as a byte array all the way to the flex and store it as the &quot;data&quot; field of a mx.controls.Text control. The text control is hyperlinked, so when the user clicks on it, the evenhandler code immediately has access to the PDF&#039;s byte array. My problem here really is how can I show this PDF in a popup window when this happens. 

I used your code snipplet and did this:

                       private function SelectWhitePaper(event:MouseEvent):void{
                        
                        var text:Text = Text(event.currentTarget);
	        var header:URLRequestHeader = new URLRequestHeader(&quot;Content-type&quot;, &quot;application/octet-stream&quot;);
                        var urlString:String = &quot;http://kalengibbons.com/assets/pages/pdfCreator.cfm&quot;;
	        urlString += &quot;?method=inline&quot;; 
	
	        var sendRequest:URLRequest = new URLRequest(urlString);
	        sendRequest.requestHeaders.push(header);
	        sendRequest.method = URLRequestMethod.POST;
	        sendRequest.data = text.data;
	        navigateToURL(sendRequest, &quot;_self&quot;);
                       }

This works fine which proves that my pdf byte stream is good. However, due to the fact we don&#039;t have an http service and won&#039;t be easily get one (firm policy). I&#039;m wondering if there is another way at the FLEX side that can simply shows the PDF from the already available byte array?

Thanks again,

Harry</description>
		<content:encoded><![CDATA[<p>Kalen,</p>
<p>Thank you for your quick reply. However, I just realize I don&#8217;t have a http service in my project. My situation is actually more flex side. I store my PDF as base64 string in the database and return this as a byte array all the way to the flex and store it as the &#8220;data&#8221; field of a mx.controls.Text control. The text control is hyperlinked, so when the user clicks on it, the evenhandler code immediately has access to the PDF&#8217;s byte array. My problem here really is how can I show this PDF in a popup window when this happens. </p>
<p>I used your code snipplet and did this:</p>
<p>                       private function SelectWhitePaper(event:MouseEvent):void{</p>
<p>                        var text:Text = Text(event.currentTarget);<br />
	        var header:URLRequestHeader = new URLRequestHeader(&#8220;Content-type&#8221;, &#8220;application/octet-stream&#8221;);<br />
                        var urlString:String = &#8220;http://kalengibbons.com/assets/pages/pdfCreator.cfm&#8221;;<br />
	        urlString += &#8220;?method=inline&#8221;; </p>
<p>	        var sendRequest:URLRequest = new URLRequest(urlString);<br />
	        sendRequest.requestHeaders.push(header);<br />
	        sendRequest.method = URLRequestMethod.POST;<br />
	        sendRequest.data = text.data;<br />
	        navigateToURL(sendRequest, &#8220;_self&#8221;);<br />
                       }</p>
<p>This works fine which proves that my pdf byte stream is good. However, due to the fact we don&#8217;t have an http service and won&#8217;t be easily get one (firm policy). I&#8217;m wondering if there is another way at the FLEX side that can simply shows the PDF from the already available byte array?</p>
<p>Thanks again,</p>
<p>Harry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/04/custom-printing-with-flex-part-3-printing-data/comment-page-1/#comment-52473</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Thu, 13 Oct 2011 06:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=254#comment-52473</guid>
		<description>Hi Harry,
  Yes, you are correct, you should put the upload file on your domain like you mentioned. &quot;http://myownsite.com/pdfCreator.cfm&quot;

I have uploaded a .cfm (ColdFusion) and a .php (PHP) sample for you to try:
www.kalengibbons.com/assets/pages/pdfCreator.zip

Thanks,
Kalen Gibbons</description>
		<content:encoded><![CDATA[<p>Hi Harry,<br />
  Yes, you are correct, you should put the upload file on your domain like you mentioned. &#8220;http://myownsite.com/pdfCreator.cfm&#8221;</p>
<p>I have uploaded a .cfm (ColdFusion) and a .php (PHP) sample for you to try:<br />
<a href="http://www.kalengibbons.com/assets/pages/pdfCreator.zip" rel="nofollow">http://www.kalengibbons.com/assets/pages/pdfCreator.zip</a></p>
<p>Thanks,<br />
Kalen Gibbons</p>
]]></content:encoded>
	</item>
</channel>
</rss>

