<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Gtk+ now has Printing</title>
	<atom:link href="http://www.j5live.com/2006/03/24/gtk-now-has-printing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/</link>
	<description>Where the urethane hits the pavement</description>
	<lastBuildDate>Mon, 10 Oct 2011 13:34:18 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jsmith</title>
		<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/comment-page-1/#comment-19482</link>
		<dc:creator>jsmith</dc:creator>
		<pubDate>Mon, 11 Aug 2008 15:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=204#comment-19482</guid>
		<description>I thought that function would set cairo drawing calls to draw to the pixbuf, not the other way around.

   I&#039;ll try it though. Thank you.</description>
		<content:encoded><![CDATA[<p>I thought that function would set cairo drawing calls to draw to the pixbuf, not the other way around.</p>
<p>   I&#8217;ll try it though. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J5</title>
		<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/comment-page-1/#comment-19481</link>
		<dc:creator>J5</dc:creator>
		<pubDate>Mon, 11 Aug 2008 15:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=204#comment-19481</guid>
		<description>if you have a new enough glib then there should be a method called gdk_cairo_set_source_pixbuf

http://library.gnome.org/devel/gdk/stable/gdk-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf

If not then I suggest copy and pasting the code, but make sure you abide by the LGPL license if you are not a GPL&#039;ed or LGPL&#039;ed app.</description>
		<content:encoded><![CDATA[<p>if you have a new enough glib then there should be a method called gdk_cairo_set_source_pixbuf</p>
<p><a href="http://library.gnome.org/devel/gdk/stable/gdk-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf" rel="nofollow">http://library.gnome.org/devel/gdk/stable/gdk-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf</a></p>
<p>If not then I suggest copy and pasting the code, but make sure you abide by the LGPL license if you are not a GPL&#8217;ed or LGPL&#8217;ed app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jsmith</title>
		<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/comment-page-1/#comment-19480</link>
		<dc:creator>jsmith</dc:creator>
		<pubDate>Mon, 11 Aug 2008 15:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=204#comment-19480</guid>
		<description>The new printing API is interesting, but for the project I was working on all of the drawing was done using GDK.

   Is there a way to either save the gdkPixbuf and then have the image drawn to the cairo surface, or could I draw the gdkPixbuf straight to the cairo surface.

   Thanks for any help.</description>
		<content:encoded><![CDATA[<p>The new printing API is interesting, but for the project I was working on all of the drawing was done using GDK.</p>
<p>   Is there a way to either save the gdkPixbuf and then have the image drawn to the cairo surface, or could I draw the gdkPixbuf straight to the cairo surface.</p>
<p>   Thanks for any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J5</title>
		<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/comment-page-1/#comment-1990</link>
		<dc:creator>J5</dc:creator>
		<pubDate>Tue, 28 Mar 2006 04:35:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=204#comment-1990</guid>
		<description>The idea is if you write you app to display with cairo you would use the same commands (or similar) to print.  Text in cairo is handled by Pango which has a markup language which is a very small subset of HTML but for the most part you mark up with attributes.

Pagination is done by the app (Pango has the ability to do layouts).  A signal is emitted for each page which give a cairo context to draw on.  Check out printedit a simple text editor for details:

http://cvs.gnome.org/viewcvs/libegg/libegg/print-operation/printedit.c?rev=1.8&amp;view=markup</description>
		<content:encoded><![CDATA[<p>The idea is if you write you app to display with cairo you would use the same commands (or similar) to print.  Text in cairo is handled by Pango which has a markup language which is a very small subset of HTML but for the most part you mark up with attributes.</p>
<p>Pagination is done by the app (Pango has the ability to do layouts).  A signal is emitted for each page which give a cairo context to draw on.  Check out printedit a simple text editor for details:</p>
<p><a href="http://cvs.gnome.org/viewcvs/libegg/libegg/print-operation/printedit.c?rev=1.8&amp;view=markup" rel="nofollow">http://cvs.gnome.org/viewcvs/libegg/libegg/print-operation/printedit.c?rev=1.8&amp;view=markup</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/comment-page-1/#comment-1989</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 27 Mar 2006 19:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=204#comment-1989</guid>
		<description>Cairo printing from Gtk+ is cool!  I can&#039;t wait.

One thing troubles me, though: &quot;All one needs to do to print is show the dialog and then write to the cairo surface provided by the API&quot;.

This is true for trivial examples, but the big issue with printing is pagination.  I&#039;ll hold off my celebration dance until I see how that was done.

Another question is text.  If you&#039;re just drawing with Cairo commands, then printing is easy.  But what if you have a lot of text to print?  Can I pass, say, an HTML string to the Gtk+ printing system, and have it correctly formatted and paginated?  Is there a way to intersperse it with my own Cairo drawing commands?

Cairo printing is awesome -- it&#039;s a great graphics system to build a printing system upon.  But by itself, it&#039;s not a printing system.  It&#039;s not the correct layer of abstraction for most apps I&#039;ve written.</description>
		<content:encoded><![CDATA[<p>Cairo printing from Gtk+ is cool!  I can&#8217;t wait.</p>
<p>One thing troubles me, though: &#8220;All one needs to do to print is show the dialog and then write to the cairo surface provided by the API&#8221;.</p>
<p>This is true for trivial examples, but the big issue with printing is pagination.  I&#8217;ll hold off my celebration dance until I see how that was done.</p>
<p>Another question is text.  If you&#8217;re just drawing with Cairo commands, then printing is easy.  But what if you have a lot of text to print?  Can I pass, say, an HTML string to the Gtk+ printing system, and have it correctly formatted and paginated?  Is there a way to intersperse it with my own Cairo drawing commands?</p>
<p>Cairo printing is awesome &#8212; it&#8217;s a great graphics system to build a printing system upon.  But by itself, it&#8217;s not a printing system.  It&#8217;s not the correct layer of abstraction for most apps I&#8217;ve written.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J5</title>
		<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/comment-page-1/#comment-1988</link>
		<dc:creator>J5</dc:creator>
		<pubDate>Sat, 25 Mar 2006 16:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=204#comment-1988</guid>
		<description>gnomeprintui uses threads, doesn&#039;t work under Windows or MacOSX, and doesn&#039;t use cairo for rendering.  We went through all the API&#039;s out there including Windows, Java and MacOSX and decided on this one.  On the face of it it is a simple API that we feel will be suportable for years to come.</description>
		<content:encoded><![CDATA[<p>gnomeprintui uses threads, doesn&#8217;t work under Windows or MacOSX, and doesn&#8217;t use cairo for rendering.  We went through all the API&#8217;s out there including Windows, Java and MacOSX and decided on this one.  On the face of it it is a simple API that we feel will be suportable for years to come.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.j5live.com/2006/03/24/gtk-now-has-printing/comment-page-1/#comment-1987</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sat, 25 Mar 2006 11:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=204#comment-1987</guid>
		<description>I&#039;m just wondering, is there any document somewhere stating and explaining the good reasons (that must exist... but which I can&#039;t see) about why GTK+ printing API has been written from scratch instead of reusing libgnomeprint(ui) ?</description>
		<content:encoded><![CDATA[<p>I&#8217;m just wondering, is there any document somewhere stating and explaining the good reasons (that must exist&#8230; but which I can&#8217;t see) about why GTK+ printing API has been written from scratch instead of reusing libgnomeprint(ui) ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

