[scribus-dev] a bug about Page Type
gpittman at iglou.com
Tue Nov 8 15:50:38 UTC 2016
A bug was created asking for a new Scripter command, setPageType().
The filer is writing a script that seemingly might be doing some
imposition too, judging from his comments.
At any rate, he is bothered by the fact that when he goes to make a PDF,
he gets feedback that there is a mismatch between the page type of his
created Master Page and the page that it's on.
As I looked into this, for one thing it seems that whenever you create a
Master Page with Scripter, it will be a Right Page (the Left parameter
is always "0").
It also looked to me that getPageType() checks the type of the actual
page, not the Master Page, but now I'm not so sure. I just made a facing
pages file, and the Master Pages had the page type set, but all the
document pages had LEFT = "0". If you edit the SLA and change the
setting in actual pages, Scribus doesn't seem to care, but if you change
it in a Master Page, you get the warning.
About the only solution I can think of would be to add a parameter in
createMasterPage() for the page type (since you can set this when you
create a new Master Page in the main window), but that wouldn't help a
situation when you might apply that Master Page to both right and left
pages, since you would still get the warning. I did suggest he could
edit the SLA file, though that seems more work than it's worth.
So in the end, it seems to me one of these situations where you may have
to note but ignore a warning. It's certainly not the only kind of error
we might ignore on a routine basis.
More information about the scribus-dev