Scribus Forums

Scribus => Scripts and Plugins => Topic started by: agricola on October 17, 2016, 12:15:29 PM

Title: How to get the bleeds of a document
Post by: agricola on October 17, 2016, 12:15:29 PM
Hi everybody,

I want read out the bleeds of all sides of a document by means of scripting.
Let's say, I'm searching for a scribus-function like "getPageBleeds(...)" or something like that, knowing, that there is a function "getPageMargins(...)",
returning the 4 margins (but not the bleeds!) actually beeing applied to a page.

Many thanks for your help as well as for any ideas for a workaround!
Title: Re: How to get the bleeds of a document
Post by: a.l.e on October 17, 2016, 03:10:33 PM
hi agricola

if it's not there you can add it...

adding new commands to the scripter is not that hard... if you have basic python/c++ skills...

ciao
a.l.e
Title: Re: How to get the bleeds of a document
Post by: mnawij on October 19, 2016, 12:48:59 AM
Which operating system are you using?

I found the following with a quick google search for Linux:

http://unix.stackexchange.com/questions/274777/command-line-crop-pdf-to-paper-size-fedora

http://onetransistor.blogspot.com/2016/01/pdf-crop-linux-software.html

mnawij
Title: Re: How to get the bleeds of a document
Post by: Nermander on October 19, 2016, 07:44:40 AM
The question was not for cropping, but reading the information from a script. Most likely to use in some calculation.