<?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 Create PDF ? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229498#M5816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a code sample to create a PDF file using the Silverlight API?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jul 2010 13:02:21 GMT</pubDate>
    <dc:creator>CraigPerreault</dc:creator>
    <dc:date>2010-07-20T13:02:21Z</dc:date>
    <item>
      <title>Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229498#M5816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a code sample to create a PDF file using the Silverlight API?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 13:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229498#M5816</guid>
      <dc:creator>CraigPerreault</dc:creator>
      <dc:date>2010-07-20T13:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229499#M5817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at this PDF libary: &lt;/SPAN&gt;&lt;A href="http://silverpdf.codeplex.com/"&gt;http://silverpdf.codeplex.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 15:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229499#M5817</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-07-20T15:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229500#M5818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's fine as long as you're not trying to render a map with a layer defined by a URL, because then you can't access the WriteableBitmap pixels to create the image to add to the PDF.&amp;nbsp; I haven't been able to find a true code-behind solution.&amp;nbsp; There may be a way to do it through a custom web service, but I haven't figured out how to do that either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 21:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229500#M5818</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-07-28T21:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229501#M5819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the SL4 print with a PDF driver is another option, but there is some UI side effect (the user has to select the PDF printer)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 17:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229501#M5819</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-07-29T17:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229502#M5820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did find a code-behind workaround to access the restricted Map content after all!&amp;nbsp; The basic approach is to export dynamic and tiled service layers through the REST API to image streams and overlay the results in a WriteableBitmap.&amp;nbsp; You can then render graphics layers and UIElements on top of that.&amp;nbsp; Probably more work than just using a PDF browser extension, but what the heck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I've created a first draft of a PDF creation class and added it to the code gallery as well as my web site:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.pierssen.com/arcgis10/silverlight.htm"&gt;http://www.pierssen.com/arcgis10/silverlight.htm&lt;/A&gt;&lt;SPAN&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 15:18:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229502#M5820</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-08-02T15:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229503#M5821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I did find a code-behind workaround to access the restricted Map content after all!&amp;nbsp; The basic approach is to export dynamic and tiled service layers through the REST API to image streams and overlay the results in a WriteableBitmap.&amp;nbsp; You can then render graphics layers and UIElements on top of that.&amp;nbsp; Probably more work than just using a PDF browser extension, but what the heck.&lt;BR /&gt;&lt;BR /&gt;Anyway, I've created a first draft of a PDF creation class and added it to the code gallery as well as my web site:&amp;nbsp; &lt;A href="http://www.pierssen.com/arcgis10/silverlight.htm"&gt;http://www.pierssen.com/arcgis10/silverlight.htm&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took a look at your code and have been playing around with it. Great work! Unfortunately, I've found a bug, or rather an intentional limitation (on the Microsoft side). Your line of code: &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;i = wbm.Pixels[0];&lt;/PRE&gt;&lt;SPAN&gt; (located on line 252) is throwing a handled error of type System.Security.SecurityException. The error is: "WriteableBitmap has protected content. Pixel access is not allowed." After research, I found out this is due to accessing maps from other sites. For example, if your base layers are coming from ESRI (and maybe Bing, I'm not sure), you'll get this error. This is due to the fact that WriteableBitmap has been prevented from accessing anything in another domain. Setting clientaccess.xml or crossdomain.xml doesn't seem to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a built-in limitation with WriteableBitmap as a security measure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information is available here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.silverlight.net/forums/t/148589.aspx"&gt;http://forums.silverlight.net/forums/t/148589.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.silverlight.net/forums/t/118030.aspx"&gt;http://forums.silverlight.net/forums/t/118030.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking through seeing how best to work around this issue, but due to the fact that some of our layers are coming from ESRI, I'm not sure how we can address this. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 14:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229503#M5821</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2010-09-02T14:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229504#M5822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to study the code more closely.&amp;nbsp; In the download, that line is within a try block to test for restricted content.&amp;nbsp; If restricted content is encountered, then the workaround is invoked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 14:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229504#M5822</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-09-02T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229505#M5823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I did find a code-behind workaround to access the restricted Map content after all!&amp;nbsp; The basic approach is to export dynamic and tiled service layers through the REST API to image streams and overlay the results in a WriteableBitmap.&amp;nbsp; You can then render graphics layers and UIElements on top of that.&amp;nbsp; Probably more work than just using a PDF browser extension, but what the heck.&lt;BR /&gt;&lt;BR /&gt;Anyway, I've created a first draft of a PDF creation class and added it to the code gallery as well as my web site:&amp;nbsp; &lt;A href="http://www.pierssen.com/arcgis10/silverlight.htm"&gt;http://www.pierssen.com/arcgis10/silverlight.htm&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see where you're catching the System.Security.SecurityException from WriteableBitmap for the layer defined by the URL in your code. The situation I'm running into seems to be related to the fact that by the time the code is trying to do document.Save(_streamOutPDF) (on line 198), silverPDF (or rather PdfSharp) has already closed the document. I'm getting a "PrepareForSave: Number of deleted unreachable objects: 1" from what looks to be PdfSharp.Pdf.PdfDocument.Save, followed by two "A first chance exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll". I'm not familiar with SilverPDF, not to mention PdfSharp. Any thoughts on how to work around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably a newbie situation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 15:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229505#M5823</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2010-09-02T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229506#M5824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting.&amp;nbsp; I haven't encountered that error myself, but I'm wondering if in your case it takes so long to create the image that the output stream provided by Silverlight is expiring.&amp;nbsp; Try asking for the output PDF file right at the start of the PDF creation stage and see if that solves the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 15:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229506#M5824</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-09-02T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229507#M5825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Interesting.&amp;nbsp; I haven't encountered that error myself, but I'm wondering if in your case it takes so long to create the image that the output stream provided by Silverlight is expiring.&amp;nbsp; Try asking for the output PDF file right at the start of the PDF creation stage and see if that solves the problem.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That's what I'm doing, actually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaveFileDialog savePDF = new SaveFileDialog();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savePDF.DefaultExt = ".pdf";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savePDF.ShowDialog();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.Stream PDFstream = savePDF.OpenFile();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PDFNew.SetOutputStream(PDFstream);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PDFNew.DoExport();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229507#M5825</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2021-12-11T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229508#M5826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I should have been more specific.&amp;nbsp; In PDFExporter.cs, comment out all the _streamOutPDF lines and move your SaveFileDialog lines to just before the document.Save line.&amp;nbsp; If that's actually the problem, then I'll revise the class accordingly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 16:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229508#M5826</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2010-09-02T16:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229509#M5827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attempting to set a WriteTimeout (System.IO.Stream.WriteTimeout) on PDFstream.WriteTimeout =4000; fails with "Timeouts are not supported on this stream". I'm stumped, as I have no idea what alternatives I have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Leave it to me to find the one situation that is just plain bizarre.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're right though, when you say that it is taking a while. I think I can time the whole operation on my watch, it's easily over 5 seconds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 16:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229509#M5827</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2010-09-02T16:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229510#M5828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sorry, I should have been more specific.&amp;nbsp; In PDFExporter.cs, comment out all the _streamOutPDF lines and move your SaveFileDialog lines to just before the document.Save line.&amp;nbsp; If that's actually the problem, then I'll revise the class accordingly.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Close. Unfortunately SaveFileDialog has to be called by a user-initiated event, like a Button_Click event. I created a new property for a SaveFileDialog object, and passed it in from my Button_Click event after showing the dialog, then created the stream from the SaveFileDialog.OpenFile() method inside PDFExporter.cs. Thanks for the suggestion, I now have a PDF file to work with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I seem to be missing layers. How exactly does your class determine the order of your layers?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 17:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229510#M5828</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2010-09-02T17:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229511#M5829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Close. Unfortunately SaveFileDialog has to be called by a user-initiated event, like a Button_Click event. I created a new property for a SaveFileDialog object, and passed it in from my Button_Click event after showing the dialog, then created the stream from the SaveFileDialog.OpenFile() method inside PDFExporter.cs. Thanks for the suggestion, I now have a PDF file to work with.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I seem to be missing layers. How exactly does your class determine the order of your layers?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not only am I missing layers, but a Dynamic Service Layer is drawing... oddly. As in, the colors of the Dynamic Service Layer are messed up. I assume this is in the bmp conversion method. Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd be happy to email you the pdfs that were output if you'd like to take a look. Otherwise I'll debug later, right now I've got to get other things taken care of in my app, so maybe I can find a fix if you don't have the time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 17:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229511#M5829</guid>
      <dc:creator>KevinSesock</dc:creator>
      <dc:date>2010-09-03T17:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229512#M5830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can someone send an example of they are using the export to pdf?&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 20:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229512#M5830</guid>
      <dc:creator>TomArnold1</dc:creator>
      <dc:date>2010-09-17T20:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229513#M5831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;using PdfSharp.Pdf;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void PDFbutton_MouseLeftButtonUp(object sender, MouseEventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaveFileDialog savePDF = new SaveFileDialog();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savePDF.Filter = "PDF file format|*.pdf";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savePDF.DefaultExt = ".pdf";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (savePDF.ShowDialog() == true)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.Stream PDFstream = savePDF.OpenFile();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PDFExporter PDFNew = new PDFExporter();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PDFNew.SetMap(myMap);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PDFNew.SetOutputStream(PDFstream);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PDFNew.DoExport();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229513#M5831</guid>
      <dc:creator>CraigPerreault</dc:creator>
      <dc:date>2021-12-11T11:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229514#M5832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can someone tell me where to place the download dll from the PDF libary: &lt;/SPAN&gt;&lt;A href="http://silverpdf.codeplex.com/"&gt;http://silverpdf.codeplex.com/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to register the PDF library silverPDF.dll but no luck &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I just added it to my vs project as a ref.... but I'm getting an error message stating it could load the assembly file silverPDF.dll &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I go to the file and right click it and click register.&amp;nbsp; The "Register ArcGIS Assembly" dialog window pops up.&amp;nbsp; I can either select Desktop or Server.&amp;nbsp; I tired both and they both give me the error "Registration Failed" - Could not load file or assembly 'System Windows, Version = 2.0.5.0 culture=neutral, PublicKeyToken 7cec85d7bea7798e or one of its dependencies.&amp;nbsp; The system cannont find the specified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;O.K. Here's a little more info.&amp;nbsp; After just adding it to the references in VS I ran debug and got an error stating it was being blocked but I unblocked it after downloading so I went into the debug directory and unblocked again.&amp;nbsp; No the application luanches but it just hangs and never gets past the original silverlight blue logo.&amp;nbsp; When I take out all the PDF stuff the app is fine.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 21:47:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229514#M5832</guid>
      <dc:creator>DavidAshton</dc:creator>
      <dc:date>2010-10-04T21:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229515#M5833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Kevin! Great Tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 22:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229515#M5833</guid>
      <dc:creator>DavidAshton</dc:creator>
      <dc:date>2010-10-05T22:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229516#M5834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi DAvid , &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can u please tell me how did u register silver.dll . I am also getting the same error .. Thank u very much &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I got it....&lt;BR /&gt;&lt;BR /&gt;Thanks Kevin! Great Tool.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 14:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229516#M5834</guid>
      <dc:creator>VikramS</dc:creator>
      <dc:date>2010-10-07T14:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create PDF ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229517#M5835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just opened my project in VS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right click on References&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click Add Reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the Browse button and browse to the dll.&amp;nbsp; This add the dll to your VS project&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 02:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-pdf/m-p/229517#M5835</guid>
      <dc:creator>DavidAshton</dc:creator>
      <dc:date>2010-10-08T02:16:25Z</dc:date>
    </item>
  </channel>
</rss>

