[scribus-dev] Extended Page Attributes

Gregory Pittman gpittman at iglou.com
Mon Oct 3 15:25:31 UTC 2016


On 10/03/2016 10:34 AM, John L. Poole wrote:
> Is there a way for a user to add attributes to a PAGE object?
> 
> I'm thinking of the model as it is exported into XML.  For example I would
> add attributes pageName and pageReference to the <PAGE> element
> were I extending the element:
> 
> <PAGE PAGEXPOS="1684" PAGEYPOS="1000" PAGEWIDTH="684"
> PAGEHEIGHT="864" BORDERLEFT="40" BORDERRIGHT="40" BORDERTOP="40"
> BORDERBOTTOM="40" NUM="0" NAM="" MNAM="Normal Right"
> Size="Custom" Orientation="0" LEFT="0" PRESET="0" VerticalGuides=""
> HorizontalGuides="" AGhorizontalAutoGap="0" AGverticalAutoGap="0"
> AGhorizontalAutoCount="0" AGverticalAutoCount="0" AGhorizontalAutoRefer="0"
> AGverticalAutoRefer="0" AGSelection="0 0 0 0" pageEffectDuration="1"
> pageViewDuration="1" effectType="0" Dm="0" M="0" Di="0"
> 
> pageName="Overflow2" pageReference="Chap1p4"
> 
> />
> 
> I'm finding I would like to identify pages by a name or some designation
> (when scripting)
> and cannot find a way to add an attribute.  As a hack, I could add an
> object to each page
> and possibly use that as a storage area for my attribute value.
> 
> 
I don't know of any way to do this, and adding variables to PAGE would
seem to be a bigger job than you might think.
You might consider some work around, like adding an empty text frame to
pages. Frames can have names which you can then search for in a script.

I've always either search for a page by its number, or searched for some
content on the page.

Greg



More information about the scribus-dev mailing list