Scribus Forums

Scribus => Scripts and Plugins => Topic started by: Erhard on June 13, 2022, 09:47:03 PM

Title: Change page dimension of one page only
Post by: Erhard on June 13, 2022, 09:47:03 PM
Hello,
the pdf for the online Printshop (for a photobook) needs to have the first page as cover twice as great  as a normal page + spine and bleeding. So I only want to change the size of the first page accordingly.
There are methods on the page object getPageSize but not setPageSize. How can I set the dimension of one page only? I do it in scripter, because I want to automate the process of book creation.
Any hints are wellcome
I use scribus 1.55   

Health and Peace
Erhard
Title: Re: Change page dimension of one page only
Post by: RodneyLee on June 14, 2022, 02:06:33 PM
Make it a separate file, you could do Back page, Spine, and cover as one page or two if you are doing text on inside of cover
Title: Re: Change page dimension of one page only
Post by: Erhard on June 15, 2022, 09:48:30 AM
Thanks for this hint. The print provider (gelato.com) wants one pdf file. Is it then possible to concatinate the two pdfs (content and cover) to one pdf ?
Title: Re: Change page dimension of one page only
Post by: RodneyLee on June 15, 2022, 02:39:47 PM
wonder if doing the entire book as a two-page spread (not sure proper name for that) say your book is 8x10 you would make pages 16x10 with your first and last page on your first page (printer spread), not sure about combining pDF's of differant sizes
Title: Re: Change page dimension of one page only
Post by: utnik on June 15, 2022, 03:56:10 PM
hi erhard

i just took a look at the instructions from 'gelato.com' (https://apisupport.gelato.com/hc/en-us/articles/360014611999-How-do-I-design-a-photo-book-#01G3DQHRHEMGKAEF9WH86GVRXP).
you should:
this is a really strange workflow, but they like it this way. (i would consider changing the provider...)

utnik
Title: Re: Change page dimension of one page only
Post by: Erhard on June 16, 2022, 05:13:31 PM
Hi Utnik,
Thanks for your approach. The solution for me is making 2 separate sla files. And then import the cover in the content file (page->import choose the file and the page).
The generated pdf has then the correct cover with separate dimensions inside. I generate the book and the cover skeleton by script, because its hard to set the spine content in the exact positions without calculating
I changed the provider from epubli to gelato......because I wait at epubli at least 2 month for a book. I hope gelato is better. Its not only the technique which triggers a decision.

Health and Peace
Erhard
Title: Re: Change page dimension of one page only
Post by: Nermander on June 16, 2022, 08:17:10 PM
As far as I know every page in Scribus can have its own size?
Title: Re: Change page dimension of one page only
Post by: Meho R. on June 19, 2022, 06:11:23 AM
Quote from: Nermander on June 16, 2022, 08:17:10 PM
As far as I know every page in Scribus can have its own size?

While this is true, there is a caveat: "Normal" master page is applied to pages by default, so if you change a page size manually via "Page > Manage Page Properties...", and at some point even just open master page settings (Edit > Master Pages...), those manual changes will be reset, and "Normal" master page will be automatically reapplied to all pages. I am not sure if this is a bug or a feature.

Thus, @OP, even if your way of doing it works for you, it is more of a workaround under the circumstances. For the sake of those that might face a similar issue and stumble upon this thread, I'd suggest trying the following:


Just as one should always use paragraph and character styles for text, same goes for pages: it is a good idea to use "page styles", which are basically master pages. This is true not only when the size of a page should be different, but in general, whenever a different layout or background is needed (a typical example being "Parts" in a book).