<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/pdfsharp/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/pdfsharp/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/pdfsharp/bugs/</id><updated>2016-09-28T22:02:31.046000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#16 Index was outside the bounds of the array</title><link href="https://sourceforge.net/p/pdfsharp/bugs/16/?limit=25#c148" rel="alternate"/><published>2016-09-28T22:02:31.046000Z</published><updated>2016-09-28T22:02:31.046000Z</updated><author><name>Bradley Peet</name><uri>https://sourceforge.net/u/bradleypeet/</uri></author><id>https://sourceforge.nete4253d1388efd7a822cd06f6d82d287f9e464f54</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've been battling this thread safety bug and finally figured it out.  As you may know, FontData instances are stored in a dictionary and shared globally (via FontDataStock and FontDescriptorStock).  FontData.CreateFontSubset() calls over to GlyphDataTable.CompleteGlyphClosure() which calls AddCompositeGlyphs() and that's where the trouble really begins. You wind up with multiple threads changing the FontData instance's Position property simulanteously while trying to read from its buffer. The whole concept of FontData having a "current position" for reading the internal buffer is just asking for trouble in a multi-threaded environment where FontData instances are widely shared.&lt;/p&gt;
&lt;p&gt;I've got a fix for this that involves significant (but non-breaking) changes to the FontData class and small changes to GlyphDataTable. If anyone is interested I can elaborate and/or share the code.  The PDFSharp version I'm working with is 1.3.2608.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#17 Several ContentWriter bugs</title><link href="https://sourceforge.net/p/pdfsharp/bugs/17/?limit=25#b413" rel="alternate"/><published>2014-11-06T16:37:44.631000Z</published><updated>2014-11-06T16:37:44.631000Z</updated><author><name>PDFsharp Team</name><uri>https://sourceforge.net/u/pdfsharp/</uri></author><id>https://sourceforge.net4da943ba52ecf938dcdfaa5d97385b8a4f3438a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you very much for your feedback.&lt;br /&gt;
The fix for 2 will be included in the next release.&lt;/p&gt;
&lt;p&gt;We think that your fix for 1 is not the cleanest solution. I think the fix should be made with CArray or CSequence. Can you provide a PDF file and may some (more) code that allows us to replicate the problem?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#13 unbelievable Font size</title><link href="https://sourceforge.net/p/pdfsharp/bugs/13/?limit=25#4222" rel="alternate"/><published>2014-11-06T12:51:23.332000Z</published><updated>2014-11-06T12:51:23.332000Z</updated><author><name>PDFsharp Team</name><uri>https://sourceforge.net/u/pdfsharp/</uri></author><id>https://sourceforge.net81a02fb96b4dc4700ae32736744e7e3471356581</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0 (example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#13 unbelievable Font size</title><link href="https://sourceforge.net/p/pdfsharp/bugs/13/?limit=25#aab0" rel="alternate"/><published>2014-11-06T12:50:44.821000Z</published><updated>2014-11-06T12:50:44.821000Z</updated><author><name>PDFsharp Team</name><uri>https://sourceforge.net/u/pdfsharp/</uri></author><id>https://sourceforge.net00ceaa2839e1fc09d816ad16b55672d3fd2e5fbf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Fix can be found here:&lt;br /&gt;
&lt;a href="http://forum.pdfsharp.net/viewtopic.php?p=7853#p7853" rel="nofollow"&gt;http://forum.pdfsharp.net/viewtopic.php?p=7853#p7853&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Fix will be included with the next release.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#17 Several ContentWriter bugs</title><link href="https://sourceforge.net/p/pdfsharp/bugs/17/?limit=25#2a9f" rel="alternate"/><published>2013-06-19T14:21:18.058000Z</published><updated>2013-06-19T14:21:18.058000Z</updated><author><name>PDFsharp Team</name><uri>https://sourceforge.net/u/pdfsharp/</uri></author><id>https://sourceforge.net514af6d917c878451900df056ee41a5aa4e7a89f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; accepted&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#17 Several ContentWriter bugs</title><link href="https://sourceforge.net/p/pdfsharp/bugs/17/?limit=25#dbeb" rel="alternate"/><published>2013-06-19T14:16:07.230000Z</published><updated>2013-06-19T14:16:07.230000Z</updated><author><name>PDFsharp Team</name><uri>https://sourceforge.net/u/pdfsharp/</uri></author><id>https://sourceforge.net35166e9843ec6af8800fe4c39ac8a0d939931726</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the bug fixes, they are on the list for the next major update.&lt;/p&gt;
&lt;p&gt;Re second fix:&lt;br /&gt;
It seems that "#.0#########" would sometimes save a byte (but I didn't test it yet).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Several ContentWriter bugs</title><link href="https://sourceforge.net/p/pdfsharp/bugs/17/" rel="alternate"/><published>2013-06-19T05:38:32.789000Z</published><updated>2013-06-19T05:38:32.789000Z</updated><author><name>xiperware</name><uri>https://sourceforge.net/u/xiperware/</uri></author><id>https://sourceforge.net5d465cedc4a8f3e4af480b3e28d2cca8a12f4705</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The following code can break a pdf file by changing its content to something invalid.&lt;/p&gt;
&lt;p&gt;CSequence content = ContentReader.ReadContent( page );&lt;br /&gt;
byte[] data = content.ToContent();&lt;br /&gt;
page.Contents.Elements.GetDictionary( 0 ).Stream.Value = data;&lt;br /&gt;
doc.Save( outputFile );&lt;/p&gt;
&lt;p&gt;1) CArray with multiple CReals are not seperated with spaces&lt;/p&gt;
&lt;p&gt;Old: &lt;span&gt;[6.1048 6.1048 ]&lt;/span&gt;0 d&lt;br /&gt;
New: &lt;span&gt;[6.10486.1048]&lt;/span&gt;0 d&lt;/p&gt;
&lt;p&gt;(My fix: move the '+ " "' in CInteger and CReal from WriteObject() to ToString())&lt;/p&gt;
&lt;p&gt;2) CReal's of sufficient precision are converted to scientific notation&lt;/p&gt;
&lt;p&gt;Old: .017701 .089784 .91061 .000031 k&lt;br /&gt;
New: 0.017701 0.089784 0.91061 3.1E-05 k&lt;/p&gt;
&lt;p&gt;(My fix: add format "0.0#########" to CReal.ToString())&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Several ContentWriter bugs</title><link href="https://sourceforge.net/p/pdfsharp/bugs/17/" rel="alternate"/><published>2013-06-19T05:38:32.789000Z</published><updated>2013-06-19T05:38:32.789000Z</updated><author><name>xiperware</name><uri>https://sourceforge.net/u/xiperware/</uri></author><id>https://sourceforge.net6aef6153ab4f4d13c9a942a4eef4d83a21da2e22</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 17 has been modified: Several ContentWriter bugs&lt;br /&gt;
Edited By: PDFsharp Team (pdfsharp)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'accepted'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#16 Index was outside the bounds of the array</title><link href="https://sourceforge.net/p/pdfsharp/bugs/16/?limit=25#b8c0" rel="alternate"/><published>2013-05-13T09:23:43.074000Z</published><updated>2013-05-13T09:23:43.074000Z</updated><author><name>PDFsharp Team</name><uri>https://sourceforge.net/u/pdfsharp/</uri></author><id>https://sourceforge.netc1fe77ae9c9452c2978ae99b3be612b75d72bf6c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0 (example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#14 Faulty dirty tracking in XSolidBrush Color setter</title><link href="https://sourceforge.net/p/pdfsharp/bugs/14/?limit=25#9c07" rel="alternate"/><published>2013-05-13T09:20:39.881000Z</published><updated>2013-05-13T09:20:39.881000Z</updated><author><name>PDFsharp Team</name><uri>https://sourceforge.net/u/pdfsharp/</uri></author><id>https://sourceforge.net631c43dcb42bbaf6c90755e735769155db686996</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0 (example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry></feed>