[scribus-dev] Scripter2: How to create page items?

Gregory Pittman gpittman at iglou.com
Fri Jan 11 01:01:06 UTC 2013


On 01/10/2013 07:47 PM, Mark Heieis wrote:
> Further to my original post. I'm attempting to test/migrate a script 
> from 1.4 to 1.5 scripter2.
>
> Any clarity on the API's that I can't readily see available or a 
> replacement for would be great.
>
> Cheers.
>
>
> *Scripter* 	*Scritper2*
>
> 	
> newDocument 	? bug report http://bugs.scribus.net/view.php?id=11342
> getPageMargins 	ActiveDocument.Dimensions()
> createText 	?
> setFillColor 	ActiveDocument.ActiveItem.setFillColor()
> setText 	ActiveDocument.ActiveItem.setText()
> setTextColor 	?
> setFont 	ActiveDocument.ActiveItem.setFont()
> setFontColor 	?
> defineColor 	?
> setRedraw 	?
> getPageType 	?
> createImage 	?
> createText 	?
> setTextAlignment 	ActiveDocument.ActiveItem.setTextAlignment()
> setFontSize 	ActiveDocument.ActiveItem.setFontSize()
> newPage 	?
> loadImage 	ActiveDocument.ActiveItem.load()
>
> On 2013-01-10 14:27, Mark Heieis wrote:
>> Hi,
>>
>> I seem to missing something? What api does one use to create/insert 
>> page items (image and text)? I've searched though the code 
>> (api_document (where I would expect to find them), api_item, 
>> api_imageitem, etc) but haven't found anything obvious.
>>
>> Thanks
>>
>> mrh.
>
I think you need to consider Scripter 2 to be experimental.

Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20130110/e7d14808/attachment.html>


More information about the scribus-dev mailing list