<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>silverPDF - Silverlight PDF library</title><link>http://silverpdf.codeplex.com/project/feeds/rss</link><description>silverPDF is a Silverlight library that makes it easier for developers to create PDF files on the client side.</description><item><title>New Post: Loading an image</title><link>http://silverpdf.codeplex.com/discussions/322768</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to show an png in my pdf, but I always get an error. I am using the following code to read the image:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;WebClient client = &lt;span style="color:blue"&gt;new&lt;/span&gt; WebClient();
                client.OpenReadCompleted &amp;#43;= (sender, e) =&amp;gt;
                {
                    &lt;span style="color:blue"&gt;if&lt;/span&gt; (e.Error == &lt;span style="color:blue"&gt;null&lt;/span&gt;)
                    {
                        &lt;span style="color:blue"&gt;this&lt;/span&gt;.polLogo = XImage.FromStream(e.Result);
                    }
                };
                client.OpenReadAsync(&lt;span style="color:blue"&gt;new&lt;/span&gt; Uri(&lt;span style="color:#a31515"&gt;&amp;quot;http://localhost:6976/ClientBin/Resources/Images/Icons/images.png&amp;quot;&lt;/span&gt;, UriKind.Absolute));
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then I use this one to draw it:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;this&lt;/span&gt;.document = &lt;span style="color:blue"&gt;new&lt;/span&gt; PdfDocument();
                PdfPage page = &lt;span style="color:blue"&gt;this&lt;/span&gt;.document.AddPage();
                page.Size = PageSize.A4;

                XGraphics gfx = XGraphics.FromPdfPage(page);

                &lt;span style="color:green"&gt;// Rectangle to write text in&lt;/span&gt;
                XRect lRect = &lt;span style="color:blue"&gt;new&lt;/span&gt; XRect(0.0, 20.0, page.Width.Value, 20);

                gfx.DrawImage(&lt;span style="color:blue"&gt;this&lt;/span&gt;.polLogo, 50, 50);

                &lt;span style="color:green"&gt;// Dispose graphics object&lt;/span&gt;
                gfx.Dispose();
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;While the method DrawImage following exception (translated into english from me) is thrown:&lt;/p&gt;
&lt;p&gt;&amp;quot;The Value must not be null&lt;br&gt;
Parametername: value&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; bei PdfSharp.Pdf.PdfDictionary.DictionaryElements.set_Item(String key, PdfItem value)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Pdf.Advanced.PdfImage.Merge(PdfDictionary other)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Pdf.Advanced.PdfImage..ctor(PdfDocument document, XImage source_image)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Pdf.Advanced.PdfImageTable.GetImage(XImage image)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Pdf.PdfPage.GetImageName(XImage image)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Drawing.Pdf.XGraphicsPdfRenderer.GetImageName(XImage image)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Drawing.Pdf.XGraphicsPdfRenderer.Realize(XImage image)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Drawing.Pdf.XGraphicsPdfRenderer.DrawImage(XImage image, Double x, Double y, Double width, Double height)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Drawing.XGraphics.DrawImage(XImage image, Double x, Double y)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei PdfSharp.Drawing.XGraphics.DrawImage(XImage image, Int32 x, Int32 y)&lt;br&gt;
&amp;nbsp;&amp;nbsp; bei Polizeiliche_Fotografie.Code.Helper.PdfHelper.CreatePdf(String quizName, String userName, Int32 reachablePoints, Int32 reachedPoints)&amp;quot;&lt;/p&gt;
&lt;p&gt;The image is read correctly but it is not drawn. Can somebody help me? I use Silverlight 4.&lt;/p&gt;
&lt;/div&gt;</description><author>aplomo</author><pubDate>Fri, 17 Feb 2012 13:25:59 GMT</pubDate><guid isPermaLink="false">New Post: Loading an image 20120217012559P</guid></item><item><title>New Post: Text string spacing is not right....</title><link>http://silverpdf.codeplex.com/discussions/77632</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Also try diffrent fonts, some of them work better with this !$#^$#$5 librarry :)&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Wed, 08 Feb 2012 01:58:41 GMT</pubDate><guid isPermaLink="false">New Post: Text string spacing is not right.... 20120208015841A</guid></item><item><title>New Post: Text string spacing is not right....</title><link>http://silverpdf.codeplex.com/discussions/77632</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I will try, pity that it is now included into a recent binary download if it works.&lt;/p&gt;&lt;/div&gt;</description><author>patricka</author><pubDate>Wed, 08 Feb 2012 01:56:33 GMT</pubDate><guid isPermaLink="false">New Post: Text string spacing is not right.... 20120208015633A</guid></item><item><title>New Post: Text string spacing is not right....</title><link>http://silverpdf.codeplex.com/discussions/77632</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;read this&lt;/p&gt;
&lt;p&gt;&lt;a href="http://silverpdf.codeplex.com/discussions/232794"&gt;http://silverpdf.codeplex.com/discussions/232794&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Wed, 08 Feb 2012 01:48:13 GMT</pubDate><guid isPermaLink="false">New Post: Text string spacing is not right.... 20120208014813A</guid></item><item><title>New Post: Text string spacing is not right....</title><link>http://silverpdf.codeplex.com/discussions/77632</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I'm running into a similar problem, the interword spacing is just way too large. I'm using "Courier" as a font...&lt;/p&gt;
&lt;p&gt;Is there a sample where this works ?&lt;/p&gt;
&lt;p&gt;I tried&amp;nbsp;PDFsharp Sample: Text Layout the one with four rectangles of different alignments on a salmon background (Straight from the Source Test file) and it does not space characters properly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is probably a problem with my setting: the font that displays in these salmon rectangles is bold and definitively not Times Roman. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm using SilverLight 4 and VS 2010.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>patricka</author><pubDate>Wed, 08 Feb 2012 01:39:55 GMT</pubDate><guid isPermaLink="false">New Post: Text string spacing is not right.... 20120208013955A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;np :)&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Wed, 08 Feb 2012 01:33:54 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208013354A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Well, Ai_Boy thank you for your responsiveness.&lt;/p&gt;&lt;/div&gt;</description><author>patricka</author><pubDate>Wed, 08 Feb 2012 01:32:37 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208013237A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I have to dissapoint you here. IText code used in this project only for Image support. There is nothing i can help you right now. I will try to solve that in the next version&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Wed, 08 Feb 2012 01:12:28 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208011228A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;My bad : a caching problem in Chrome, the browser was still using the old code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I'm note sure it has everything I want in any case.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Certificates would really be the way. I know IText (Java) has it, I have already used it.&lt;/p&gt;&lt;/div&gt;</description><author>patricka</author><pubDate>Wed, 08 Feb 2012 01:06:08 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208010608A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Well, it seems that i have to digg into that.&amp;nbsp; I can't say for sure right now is it SilverPDF bug or is it PDFSharp bug. Give me some time, I'll give you a response as soon as i get some results.&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Wed, 08 Feb 2012 01:03:05 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208010305A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I did.&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;PdfSecuritySettings securitySettings = document.SecuritySettings;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.PermitAccessibilityExtractContent = false; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="white-space: pre;"&gt;&amp;nbsp;&lt;/span&gt;securitySettings.PermitAnnotations = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.PermitAssembleDocument = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.PermitExtractContent = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.PermitFormsFill = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.PermitFullQualityPrint = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.PermitModifyDocument = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.PermitPrint = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;securitySettings.DocumentSecurityLevel = PdfDocumentSecurityLevel.None;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;document.Save(dlg.OpenFile());&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Still produces a PDF that requests me for a password (no where supplied!), and when I supply "owner" as the password I see protection levels that bear no ressemblance to what I set...&lt;/p&gt;&lt;/div&gt;</description><author>patricka</author><pubDate>Wed, 08 Feb 2012 00:34:41 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208123441A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I know that my question my sound stupid to you... but... why don't you&amp;nbsp;just&amp;nbsp;try to implement PdfSharp example with SilverPDF?&amp;nbsp;:)&lt;/p&gt;
&lt;p&gt;I'll say it again. SilverPDF is 99% based on PdfSharp. The two main problems in SilverPDF is luck of "printing" support and Images support (it's a little bit laggy for some type of images)&lt;/p&gt;
&lt;p&gt;PS: don't forget to download source code - you can find a lot of examples how to use SilverPDF up there.&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Wed, 08 Feb 2012 00:21:30 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208122130A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;THere is also a sample how to protrect (&lt;a href="http://www.pdfsharp.net/wiki/ProtectDocument-sample.ashx"&gt;http://www.pdfsharp.net/wiki/ProtectDocument-sample.ashx&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm just wondering if SilverPDF supports this...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyone got it to work? I don't want my users to be able to alter the documents and I don't want them to key a password to view the file.&lt;/p&gt;&lt;/div&gt;</description><author>patricka</author><pubDate>Wed, 08 Feb 2012 00:06:03 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120208120603A</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;look at this &lt;a href="http://pdfsharp.com/PDFsharp/index.php?option=com_content&amp;amp;task=view&amp;amp;id=39&amp;amp;Itemid=50"&gt;http://pdfsharp.com/PDFsharp/index.php?option=com_content&amp;amp;task=view&amp;amp;id=39&amp;amp;Itemid=50&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;this is an example how you could "UNPROTECT" a document... so, if you can "unprotect"&amp;nbsp;then&amp;nbsp;it's&amp;nbsp;mean&amp;nbsp;that&amp;nbsp;you can "protect" it using same method.&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Tue, 07 Feb 2012 21:42:18 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120207094218P</guid></item><item><title>New Post: Is it possible to sign an PDF with a certificate</title><link>http://silverpdf.codeplex.com/discussions/297720</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;i'm not quite shure about that,&amp;nbsp;SilverPdf is based on PdfSharp (&lt;a href="http://www.pdfsharp.net"&gt;http://www.pdfsharp.net&lt;/a&gt;) so... if PdfSharp have this ability then SilverPDF will have it too :)&lt;/p&gt;&lt;/div&gt;</description><author>Ai_boy</author><pubDate>Tue, 07 Feb 2012 21:37:30 GMT</pubDate><guid isPermaLink="false">New Post: Is it possible to sign an PDF with a certificate 20120207093730P</guid></item><item><title>New Post: Is there a way to make sure the file may not be altered?</title><link>http://silverpdf.codeplex.com/discussions/297725</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Is there any way that Silverlight could enforce some security ? At least a readonly protection ?&lt;/p&gt;
&lt;/div&gt;</description><author>patricka</author><pubDate>Tue, 07 Feb 2012 21:29:14 GMT</pubDate><guid isPermaLink="false">New Post: Is there a way to make sure the file may not be altered? 20120207092914P</guid></item><item><title>New Post: Is it possible to sign an PDF with a certificate</title><link>http://silverpdf.codeplex.com/discussions/297720</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Can Silverpdf sign a PDF with a certificate?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>patricka</author><pubDate>Tue, 07 Feb 2012 21:26:05 GMT</pubDate><guid isPermaLink="false">New Post: Is it possible to sign an PDF with a certificate 20120207092605P</guid></item><item><title>New Post: Copyright character in text </title><link>http://silverpdf.codeplex.com/discussions/236139</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi there. I found some &lt;span class="word"&gt;special character like copy right will display as "?" is because the font not have this character. you can input these word and print to PDF file. and you will see the copy right character use the font &lt;/span&gt;&lt;strong&gt;"Calibri&lt;/strong&gt;". you can use this font to draw these character and set the font options encoding to &lt;strong&gt;Unicode&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;some very useful skill: use word to input your content. print to pdf (use adobe pdf printer is better) and check the pdf file fonts.&lt;/p&gt;
&lt;p&gt;This is my way to fix the blod style.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;XPdfFontOptions options = &lt;span style="color: blue;"&gt;new&lt;/span&gt; XPdfFontOptions(PdfFontEncoding.Unicode, PdfFontEmbedding.None);
XFont titleFont = new XFont("Arial-BoldMT", 14);&lt;br /&gt;XFont contentFont = new XFont("ArialMT", 14);
XFont copyrightFont = &lt;span style="color: blue;"&gt;new&lt;/span&gt; XFont(&lt;span style="color: #a31515;"&gt;"Calibri"&lt;/span&gt;, 7, XFontStyle.Regular, options);
&lt;span style="color: blue;"&gt;var&lt;/span&gt; blackColor = &lt;span style="color: blue;"&gt;new&lt;/span&gt; XSolidBrush(XColors.Black);&lt;br /&gt;&lt;br /&gt;gfx.DrawString("hello world", titleFont, blackColor, 10, 10);&lt;br /&gt;gfx.DrawString("hello world", contentFont, blackColor, 20, 10);&lt;br /&gt;gfx.DrawString(&lt;span style="color: #a31515;"&gt;"&lt;/span&gt;&amp;copy;&lt;span style="color: #a31515;"&gt;"&lt;/span&gt;, copyrightFont, blackColor, 30, 10);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>ghostuz</author><pubDate>Thu, 26 Jan 2012 19:57:04 GMT</pubDate><guid isPermaLink="false">New Post: Copyright character in text  20120126075704P</guid></item><item><title>New Post: Multipage PDF from several images.</title><link>http://silverpdf.codeplex.com/discussions/251251</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Use PdfReader.Open to open the pdf file and returns a PdfDocument object, thus can use AddPage method&lt;/p&gt;
&lt;p&gt;Note: you need to specify PdfDocument.Version before saving, otherwise PdfReader.Open will throw an excepction as per this line:&lt;/p&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&lt;span&gt;if&lt;/span&gt;&amp;nbsp;(document.version&amp;nbsp;==&amp;nbsp;0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;throw&lt;/span&gt;&amp;nbsp;&lt;span&gt;new&lt;/span&gt;&amp;nbsp;&lt;span&gt;InvalidOperationException&lt;/span&gt;(&lt;span&gt;PSSR&lt;/span&gt;.InvalidPdf);&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>jamesatcodeplex</author><pubDate>Thu, 19 Jan 2012 14:57:46 GMT</pubDate><guid isPermaLink="false">New Post: Multipage PDF from several images. 20120119025746P</guid></item><item><title>Created Issue: Bug in RelacedPdfImage.cs [11627]</title><link>http://silverpdf.codeplex.com/workitem/11627</link><description>I&amp;#39;m using silverpdf-60830 code base, and encountered an error in a windows phone app I&amp;#39;m wring on&lt;br /&gt;&lt;br /&gt;The line &amp;#34; Elements&amp;#91;key&amp;#93; &amp;#61; t&amp;#59;&amp;#34; will throw an error when the t is null, should check if null before set the value in next line.&lt;br /&gt;&lt;br /&gt;Code Before&amp;#58;&lt;br /&gt;&lt;br /&gt;public void Merge&amp;#40;PdfDictionary other&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            foreach &amp;#40;var key in other.Elements.Keys&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                &amp;#47;&amp;#47;var k &amp;#61; new PdfName&amp;#40;key&amp;#41;&amp;#59;&lt;br /&gt;                var t &amp;#61; other.Elements.GetObject&amp;#40;key&amp;#41;&amp;#59;&lt;br /&gt;                Elements&amp;#91;key&amp;#93; &amp;#61; t&amp;#59;&lt;br /&gt;                &lt;br /&gt;            &amp;#125;&lt;br /&gt;           &lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;Code After&amp;#58;&lt;br /&gt;public void Merge&amp;#40;PdfDictionary other&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            foreach &amp;#40;var key in other.Elements.Keys&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                &amp;#47;&amp;#47;var k &amp;#61; new PdfName&amp;#40;key&amp;#41;&amp;#59;&lt;br /&gt;                var t &amp;#61; other.Elements.GetObject&amp;#40;key&amp;#41;&amp;#59;&lt;br /&gt;                if &amp;#40;t &amp;#33;&amp;#61; null&amp;#41; &amp;#47;&amp;#47;JZ&amp;#58; cannot add null value, otherwise exception occurrs&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    Elements&amp;#91;key&amp;#93; &amp;#61; t&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;                &lt;br /&gt;            &amp;#125;&lt;br /&gt;           &lt;br /&gt;        &amp;#125;&lt;br /&gt;</description><author>jamesatcodeplex</author><pubDate>Fri, 13 Jan 2012 16:27:59 GMT</pubDate><guid isPermaLink="false">Created Issue: Bug in RelacedPdfImage.cs [11627] 20120113042759P</guid></item></channel></rss>
