45
45
.. method:: document.writeEPSfile(file, title=None, strip_fonts=True, text_as_path=False, mesh_as_bitmap=False, mesh_as_bitmap_resolution=300)
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
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)
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`
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.
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)
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`.
72
74
.. method:: document.writetofile(filename, *args, **kwargs)