Export to bitmap

savePageAsEPS

savePageAsEPS("name")

Saves the current page as an EPS to the file "name".

May raise ScribusError if the save failed.

class ImageExport

Image export

Class ImageExport() provides the bitmap graphics exporting
for Python scripting as you know it from Export/Save as Image
menu. See related class PDFfile() and procedure savePageAsEPS().
Example:
i = ImageExport()
i.type = 'PNG' # select one from i.allTypes list
i.scale = 200 # I want to have 200%
i.name = '/home/subik/test.png'
i.save()

two last lines should be replaced with:
i.saveAs('/home/subik/test.png')

save

save() -> boolean

Saves image under previously set 'name'.

saveAs

saveAs('filename') -> boolean

Saves image as 'filename'.

Members

allTypes

Available image types. Read only list of strings.

dpi

This value will be used for export as DPI. Read/write integer.

name

Filename of the image. With or without path. Read/write string.

quality

Quality/compression: minimum 1 (poor), maximum 100 (qaulity). Read/write integer.

scale

This is the scaling of the image. 100 = 100% etc. Read/write integer.

transparentBkgnd

Enable or disable transparent background.

type

Bitmap type. See allTypes list for more info. Read/write string.