<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Generating PDF with AlivePDF in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700281#M15660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, The version of AlicePDF included with this sample is 0.1.4.9 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The latest download of AlivePDF is 0.1.5RC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the latest AlivePDF but you will have to redo the AlivePDF code in the layout templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample is really just to show the concept.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 19:27:26 GMT</pubDate>
    <dc:creator>MarkHoyland</dc:creator>
    <dc:date>2011-02-22T19:27:26Z</dc:date>
    <item>
      <title>Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700278#M15657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been using the Flex Map Printing Utility by Mark Hoyland (&lt;/SPAN&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=16778" rel="nofollow noopener noreferrer" target="_blank"&gt;http://arcscripts.esri.com/details.asp?dbid=16778&lt;/A&gt;&lt;SPAN&gt;) for the past year, and it works great.&amp;nbsp; I especially like the fact that it will clip the map to a different extent based on the page orientation.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to add a PDF button to the PrintPreview that allows the user to save the same layout into a PDF.&amp;nbsp; I have gathered from other posts that he and others are using the AlivePDF library to accomplish this.&amp;nbsp; I now have the AlivePDF library and can generate a PDF, but I'm having trouble using the suggestion from a thread from Mark Hoyland &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=296597" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=296597&lt;/A&gt;&lt;SPAN&gt;(see the March 17, 2010 post).&amp;nbsp; The post from Mark says he does the following, but not where:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myBitmapData:BitmapData = Bitmap(mapImage.content).bitmapData;
myPDF.addImage(new Bitmap(myBitmapData),rectangle.x,rectangle.y,image.width,image.height, ImageFormat.JPG, 75);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It just doesn't seem like I have all of the pieces in the same place at one time in order to send the images or objects to be made into a PDF.&amp;nbsp; So far, I've made the same mistakes as my predecessors in the forums (like getting low quality, small versions of the layout or map in a PDF), but still can't figure out the solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't figure out how I'm supposed to link up PrintMapUtil.as with the PDF code.&amp;nbsp; Am I supposed to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Add something to PrintMapUtil.as to get the layout as BitmapData and then generate the PDF there, OR&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Make new MXML layouts for PDFs and call the trimmedMap function from those, OR&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Add the PDF generating functions to the PrintPreview.mxml.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone point me in the right direction?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700278#M15657</guid>
      <dc:creator>MelonyBarrett</dc:creator>
      <dc:date>2021-12-12T05:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700279#M15658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Melony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a modified version of my Print example. This one has included a PDF button on the PrintPreview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previously the map layouts eg A5_Portrait.mxml were based on Canvas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All layouts now need to be based on my new MXML Component PrintLayoutCanvas (which is based on Canvas).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PrintLayoutCanvas has some functions which the layouts need to generate the PDF. The two functions are overriden in the layouts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the functions returns an AlivePDF pdf object. You set up the pdf 'layout' in each layout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also updated the two layouts (A5_Portrait, and A5_Landscape to be actually A5 in size. My original example had them at A6 size!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The .zip file can be imported into flex as an archive project. You might need to go to project - clean, once it has been imported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this all makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 01:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700279#M15658</guid>
      <dc:creator>MarkHoyland</dc:creator>
      <dc:date>2011-02-21T01:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700280#M15659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Mark!!&amp;nbsp; I now have it working!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I first started trying to figure this out using info gleaned from the forums, I kept getting errors at .addImage, not enough arguments or incorrect argument, or maybe something to do with the BitmapData.&amp;nbsp; So, when I put the components you sent in the project, it happened again.&amp;nbsp; Well, I noticed that the ArcGIS API for Flex library in your project was only at 1.3, so I thought maybe the AlivePDF.swc could be older, too (I had been trying to use the most recent).&amp;nbsp; At any rate, I substituted the .swc that you sent in the project, and it all worked!&amp;nbsp; Finally, I with it working, i as able to tweak the layouts to be letter size, and I am overjoyed to be done with this part of my app!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I'll figure out later how the AlivePDF library changed, but for now I'm satisfied with being done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, and I hope this helps some other PDF latecomers!&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Melony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 18:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700280#M15659</guid>
      <dc:creator>MelonyBarrett</dc:creator>
      <dc:date>2011-02-22T18:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700281#M15660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, The version of AlicePDF included with this sample is 0.1.4.9 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The latest download of AlivePDF is 0.1.5RC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the latest AlivePDF but you will have to redo the AlivePDF code in the layout templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample is really just to show the concept.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 19:27:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700281#M15660</guid>
      <dc:creator>MarkHoyland</dc:creator>
      <dc:date>2011-02-22T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700282#M15661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been following this thread , and i hit the block at changing the Layout page size .I am using Mark Hoylard Flex Map Printing Utility&amp;nbsp; suggestion from &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=296597"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=296597&lt;/A&gt;&lt;SPAN&gt;. I am using&amp;nbsp; AlivePDF is 0.1.5RC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one please help me to port this nice tool to AlivePDF is 0.1.5RC?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;God bless!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700282#M15661</guid>
      <dc:creator>MGSethe</dc:creator>
      <dc:date>2011-06-24T16:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700283#M15662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to port this app as is to the newer version of AlivePDF or are you trying to use it in the viewer for flex?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 17:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700283#M15662</guid>
      <dc:creator>AlexJones</dc:creator>
      <dc:date>2011-06-24T17:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700284#M15663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you trying to port this app as is to the newer version of AlivePDF or are you trying to use it in the viewer for flex?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use it in the Viewer for Flex : 2.3.1 with AlivePDF&amp;nbsp; 0.1.5RC. Api&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like i have to change the Code in the Layout pages as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help with that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2011 17:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700284#M15663</guid>
      <dc:creator>MGSethe</dc:creator>
      <dc:date>2011-06-25T17:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700285#M15664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached is a zip file with a basic conversion of M. Hoylands application as a flex widget. It has the previews and templates and is in flexviewer 2.x and the Alive PDF 0.1.5RC. You &lt;/SPAN&gt;&lt;STRONG&gt;will&lt;/STRONG&gt;&lt;SPAN&gt; need to adjust the pdf code, but most likely want to change the layout and functionality anyway . Although it does generate a pdf the measurements appear to be a bit off. So you will need to adjust the x and y or something. I apologize but I cant get into that part right now. I might be able to pick it up again towards the end of the week or next week. Add all of these files to to the widgets folder, change the config file, and add as a module to the project. Let me know if you have any questions, but try to post viewer questions in the &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex"&gt;Viewer forum&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 17:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/generating-pdf-with-alivepdf/m-p/700285#M15664</guid>
      <dc:creator>AlexJones</dc:creator>
      <dc:date>2011-06-28T17:05:33Z</dc:date>
    </item>
  </channel>
</rss>

