<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/gdsprinting/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/gdsprinting/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 21 Jun 2006 13:39:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gdsprinting/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>doesn't print chars on right and cuts final line</title><link>https://sourceforge.net/p/gdsprinting/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The Printing code (taken from someone else's code) &lt;br /&gt;
has been stripped of the Graphics2D scale method, &lt;br /&gt;
which correctly formats the page so that the edge of &lt;br /&gt;
the right and at the bottom are not clipped&lt;/p&gt;
&lt;p&gt;here is the code&lt;/p&gt;
&lt;p&gt;insert at top of print method&lt;/p&gt;
&lt;p&gt;Graphics2D g2 = (Graphics2D) g;&lt;/p&gt;
&lt;p&gt;add following after "dim" variable&lt;/p&gt;
&lt;p&gt;double width = dim.getWidth();&lt;br /&gt;
double pageWidth = pf.getImageableWidth();&lt;br /&gt;
double scale = pageWidth / width;&lt;/p&gt;
&lt;p&gt;after "g.translate(0, (int)(-pageIndex * &lt;br /&gt;
pageHeight));"&lt;/p&gt;
&lt;p&gt;put this&lt;br /&gt;
g2.scale(scale,scale);&lt;/p&gt;
&lt;p&gt;change ALL references of "g" to "g2"&lt;/p&gt;
&lt;p&gt;e.g.&lt;br /&gt;
g2.translate((int)(pf.getImageableX()), (int)&lt;br /&gt;
(pf.getImageableY()));&lt;br /&gt;
g2.translate(0, (int)(-pageIndex * pageHeight));&lt;br /&gt;
editorPane.paint(g2);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 21 Jun 2006 13:39:57 -0000</pubDate><guid>https://sourceforge.net19b5ff3035bdf9d575664b641a43df1a4e4751e9</guid></item></channel></rss>