setLayerFlow
setLayerLocked
setLayerOutlined
setLayerPrintable
setLayerTransparency
setLayerVisible
setLineBlendmode
setLineCap
--
setLineSpacing
setLineSpacingMode
setLineStyle
setLineTransparency
setLineWidth
setLinkAnnotation
setMargins
setMinWordTracking
setMultiLine
setNewName
setNormalMode
setObjectAttributes
setPDFBookmark
setParagraphStyle
--
setTextFlowMode
setTextScalingH
setTextScalingV
setTextShade
setTextStroke
setTextVerticalAlignment
setTracking
setURIAnnotation
setUnit
setVGuides
setWordTracking
sizeObject
statusMessage
--
newDocument
newDocument(size, margins, orientation, firstPageNumber,                         unit, pagesType, firstPageOrder, numPages) -> bool

Creates a new document and returns true if successful. The parameters have the following meaning:

size = A tuple (width, height) describing the size of the document. You can use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc.

margins = A tuple (left, right, top, bottom) describing the document margins

orientation = the page orientation - constants PORTRAIT, LANDSCAPE

firstPageNumer = is the number of the first page in the document used for pagenumbering. While you'll usually want 1, it's useful to have higher numbers if you're creating a document in several parts.

unit: this value sets the measurement units used by the document. Use a predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS.
--
example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, PAGE_4, 3, 1)

May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. 

PDFfile
Exporting PDF

Class PDFfile() provides the PDF exporting
for Python scripting as you know it from Save as PDF
menu. 
Example:
pdf = PDFfile()
pdf.thumbnails = 1 # generate thumbnails too
--
setImageScale
setImageScale(x, y [, "name"])

Sets the scaling factors of the picture in the image frame "name". If "name" is not given the currently selected item is used. A number of 1 means 100 %. Scaling factors are equal to the values shown on properties palette.

May raise WrongFrameTypeError if the target frame is not an image frame 

setImageOffset
setImageOffset(x, y [, "name"])

Sets the position of the picture in the image frame "name". If "name" is not given the currently selected item is used. The specified offset values are equal to the values shown on  properties palette when point unit is used.

May raise WrongFrameTypeError if the target frame is not an image frame 

--
setLineSpacing
setLineSpacing(size, ["name"])

Sets the line spacing ("leading") of the text frame "name" to "size". "size" is a value in points. If "name" is not given the currently selected item is used.

May throw ValueError if the line spacing is out of bounds. 

setTextFlowMode
setTextFlowMode("name" [, state])

Enables/disables "Text Flows Around Frame" feature for object "name". Called with parameters string name and optional int "state" (0 <= state <= 3). Setting "state" to 0 will disable text flow. Setting "state" to 1 will make text flow around object frame. Setting "state" to 2 will make text flow around bounding box. Setting "state" to 3 will make text flow around contour line. If "state" is not passed, text flow is toggled. 

createParagraphStyle
createParagraphStyle(...)

Creates a paragraph style. This function takes the following keyword parameters:

"name" [required] -> specifies the name of the paragraphstyle to create

linespacingmode [optional] -> specifies the linespacing mode; possible modes are:

--
setFirstLineOffset
setFirstLineOffset(offset, ["name"])

Sets the offset of the first line of text inside text frame "name" to the specified offset policy. If "name" is not given the currently selected item is used. "offset"  should be one of the FLOP_* constants defined in this module - see dir(scribus).

May throw ValueError for an invalid offset constant. 
