[scribus] Scripter and Preferences

Olivier BERTEN olivier.berten at gmail.com
Tue Nov 23 09:58:23 CET 2010


The thing is I'd like to create a new document with the user's default
unit. getUnit() is available only when the document is already created.

And for the profile question, I want to import CIE-Lab colors as RGB or
CMYK in the user's color space (or it doesn't really make sense...).

Olivier


Le 23/11/10 09:47, Owen a écrit :
>> Hi!
>>
>> Is it possible to get the preferences through the scripter?
>> Like the default unit when you want to create a new document, or the
>> color profiles if you want to do color conversions.
>
>
> Under Document Commands there is;
>
> getUnit(...)       getUnit() -> integer (Scribus unit constant)
>
> Returns the measurement units of the document. The returned value will
> be one of the UNIT_* constants: UNIT_INCHES, UNIT_MILLIMETERS,
> UNIT_PICAS, UNIT_POINTS.
>
> Under Printing there is useICC which might be of interest to you.
>
>
> The scripter API is very extensive and worth perusing.
>
>
>
>




More information about the scribus mailing list