~ubuntu-branches/debian/sid/pyx/sid

« back to all changes in this revision

Viewing changes to manual/document.rst

  • Committer: Package Import Robot
  • Author(s): Stuart Prescott
  • Date: 2012-12-17 13:45:12 UTC
  • mto: (9.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20121217134512-q85pr3q75fxii7mq
Tags: upstream-0.12.1
ImportĀ upstreamĀ versionĀ 0.12.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
.. method:: document.writeEPSfile(file, title=None, strip_fonts=True, text_as_path=False, mesh_as_bitmap=False, mesh_as_bitmap_resolution=300)
46
46
 
47
 
   Write a single page :class:`document` to an EPS file. *title* is used as the
48
 
   document title, *strip_fonts* enabled font stripping (removal of unused glyphs),
49
 
   *text_as_path* converts all text to paths instead of using fonts in the output,
50
 
   *mesh_as_bitmap* converts meshs (like 3d surface plots) to bitmaps (to reduce
51
 
   complexity in the output) and *mesh_as_bitmap_resolution* is the resolution of
52
 
   this conversion in dots per inch.
 
47
   Write a single page :class:`document` to an EPS file or to stdout if *file* is
 
48
   set to *-*. *title* is used as the document title, *strip_fonts* enabled
 
49
   font stripping (removal of unused glyphs), *text_as_path* converts all text
 
50
   to paths instead of using fonts in the output, *mesh_as_bitmap* converts
 
51
   meshs (like 3d surface plots) to bitmaps (to reduce complexity in the
 
52
   output) and *mesh_as_bitmap_resolution* is the resolution of this conversion
 
53
   in dots per inch.
53
54
 
54
55
 
55
56
.. method:: document.writePSfile(file, writebbox=False, title=None, strip_fonts=True, text_as_path=False, mesh_as_bitmap=False, mesh_as_bitmap_resolution=300)
56
57
 
57
 
   Write :class:`document` to a PS file. *writebbox* add the page bounding boxes to
58
 
   the output. All other parameters are identical to the :meth:`writeEPSfile`
59
 
   method.
 
58
   Write :class:`document` to a PS file or to to stdout if *file* is set to
 
59
   *-*. *writebbox* add the page bounding boxes to the output. All other
 
60
   parameters are identical to the :meth:`writeEPSfile` method.
60
61
 
61
62
 
62
63
.. method:: document.writePDFfile(file, title=None, author=None, subject=None, keywords=None, fullscreen=False, writebbox=False, compress=True, compresslevel=6, strip_fonts=True, text_as_path=False, mesh_as_bitmap=False, mesh_as_bitmap_resolution=300)
63
64
 
64
 
   Write :class:`document` to a PDF file. *author*, *subject*, and *keywords* are
65
 
   used for the document author, subject, and keyword information, respectively.
66
 
   *fullscreen* enabled fullscreen mode when the document is opened, *writebbox*
67
 
   enables writing of the crop box to each page, *compress* enables output stream
68
 
   compression and *compresslevel* sets the compress level to be used (from 1 to
69
 
   9). All other parameters are identical to the :meth:`writeEPSfile`.
 
65
   Write :class:`document` to a PDF file or to stdout if *file* is set to *-*.
 
66
   *author*, *subject*, and *keywords* are used for the document author,
 
67
   subject, and keyword information, respectively. *fullscreen* enabled
 
68
   fullscreen mode when the document is opened, *writebbox* enables writing of
 
69
   the crop box to each page, *compress* enables output stream compression and
 
70
   *compresslevel* sets the compress level to be used (from 1 to 9). All other
 
71
   parameters are identical to the :meth:`writeEPSfile`.
70
72
 
71
73
 
72
74
.. method:: document.writetofile(filename, *args, **kwargs)