[cairo-commit]
pycairo/examples/cairo_snippets snippets_pdf.py, 1.4, 1.5
Steve Chaplin
commit at pdx.freedesktop.org
Mon May 16 19:44:22 PDT 2005
- Previous message: [cairo-commit] pycairo ChangeLog,1.116,1.117
- Next message: [cairo-commit]
pycairo/cairo Makefile.am, 1.14, 1.15 pycairo-misc.h,
1.3, NONE pycairo-private.h, 1.24, 1.25 pycairosvg-private.h,
1.4, 1.5 pycairo-surface.c, 1.40, 1.41 pycairo.h, 1.31,
1.32 pycairo-font.c, 1.18, 1.19 pycairo-context.c, 1.53,
1.54 cairosvgmodule.c, 1.6, 1.7 cairogtkmodule.c, 1.23, 1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: stevech1097
Update of /cvs/cairo/pycairo/examples/cairo_snippets
In directory gabe:/tmp/cvs-serv23144/examples/cairo_snippets
Modified Files:
snippets_pdf.py
Log Message:
SC
Index: snippets_pdf.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets_pdf.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- snippets_pdf.py 16 May 2005 01:05:28 -0000 1.4
+++ snippets_pdf.py 17 May 2005 02:44:20 -0000 1.5
@@ -19,8 +19,8 @@
if Verbose_mode:
print 'processing %s' % snippet,
- file_obj = file('snippets/%s.pdf' % snippet, 'wb')
- surface = cairo.PDFSurface (file_obj, width, height)
+ filename = 'snippets/%s.pdf' % snippet
+ surface = cairo.PDFSurface (filename, width, height)
cr = cairo.Context (surface)
cr.save()
@@ -34,9 +34,6 @@
cr.show_page()
- surface.finish() # to finish using file object
- file_obj.close()
-
if Verbose_mode:
print
- Previous message: [cairo-commit] pycairo ChangeLog,1.116,1.117
- Next message: [cairo-commit]
pycairo/cairo Makefile.am, 1.14, 1.15 pycairo-misc.h,
1.3, NONE pycairo-private.h, 1.24, 1.25 pycairosvg-private.h,
1.4, 1.5 pycairo-surface.c, 1.40, 1.41 pycairo.h, 1.31,
1.32 pycairo-font.c, 1.18, 1.19 pycairo-context.c, 1.53,
1.54 cairosvgmodule.c, 1.6, 1.7 cairogtkmodule.c, 1.23, 1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list