[scribus] How to print guides, empty image frames and, other internal indications ?
Frédéric Schütz
schutz at mathgen.ch
Thu Sep 22 22:39:27 UTC 2011
On 01.09.2011 15:18, scribus-request at lists.scribus.net wrote:
> This is the approach I would take with a script, in case it helps spark some other ideas for you.
>
> - Create a layer in the document for all the non-printing items (if the layer doesn't already exist). If the layer already exists and is not empty, delete everything on the layer (perhaps with a user confirmation dialog).
>
> - On this layer, add lines for all margins and guides. Also loop through all frames and draw a rectangle shape for each frame (shouldn't matter if it's empty or not). Each component would be represented in a different color, same as the on-screen display in Scribus.
>
> The data on this layer is "static", meaning it won't automatically reflect changes to the document (such as moving guides or frames on the page). So the script gets re-run as needed, which is why the layer gets cleared if it already exists. A GUI could also allow the user to select (through checkboxes) which components to include on the layer (margins, guides, frames).
>
> here a second version of the script, with placeholders for "empty"
> rectangular image frames:
I have now managed to test the script in detail, and it works very
nicely -- thanks Ale !
For me, it is also a good introduction to Scribus scripting, since it is
quite easy to modify. I have changed it to so that it actually draws all
objects (but only add crosses for images). This way, I can easily see
where are my text frames (especially for those that are not full, of
course).
I have used it quite a bit already (especially when working on a new
document layout earlier this week), and will try to make more
improvements. The GUI clearly seems like a very good idea.
Cheers,
Frédéric
More information about the scribus
mailing list