Recent posts

#81
Features / Re: Shortcuts for Styles and S...
Last post by AdmFubar - May 12, 2025, 03:38:29 PM
On keyboard shortcuts, is anyone having issues with scribus not switching to another set of keyboard shortcuts? it always defaults to iCalamus on startup on my system.
#82
Windows / disable "search for updates"
Last post by Serviceverantwortung AP - May 12, 2025, 12:40:31 PM
Hello team,
I have installed Vers. 1.6.4 on a win11 divice. Is it possible to disable "search for updates". if so, which parameters must be set.
thanks for you support.
best regards
Doris
#83
PDF Generation / Re: [Q] Python script written ...
Last post by jirib - May 11, 2025, 08:47:38 PM
Ignore this script for a while, please, it is very naive: it does not consider by design when you need a colourful cover or with an image spanning both pages, plus both the colourful "rectancle" (holding the cover of the cover) or the image must exceed cut/trim line! so, this script is maybe OK for black/white situations without a need to trim.

I will think about that and try to come with a better solution: one which needs to be done _inside_ Scribus (at least for the cover itself)...
#84
PDF Generation / Re: [Q] Python script written ...
Last post by Nermander - May 11, 2025, 07:54:32 PM
Quote from: jirib on May 11, 2025, 10:57:27 AMSo, it generates cover with 'cover_pairs'..., however, logically, it places crop marks and spine marks only on the first/outside cover page.

Ok, so the first two and the last two pages end up on the cover?
#85
PDF Generation / Re: [Q] Python script written ...
Last post by jirib - May 11, 2025, 11:24:02 AM
Quote from: jirib on May 11, 2025, 11:07:27 AM...
CROP_OFFSET = 6 * pt
CROP_LINE_WIDTH = 0.2 * pt
CROP_LEN = 5 * mm
...
BLEED = 5 * mm
...


IIUC, I need to introduce "slug area": CROP_OFFSET + CROP_LEN = <slug area rounded to next unit value>, eg. 2.117 mm + 5 mm = 7.117 mm, that is, 8mm.
#86
PDF Generation / Re: [Q] Python script written ...
Last post by jirib - May 11, 2025, 11:09:23 AM
Quote from: a.l.e on May 10, 2025, 02:56:25 PM(...) it might also be interesting to have a version that runs inside of Scribus and adds the marks on a dedicated layer.

I will do it when all things are clear ;)
#87
PDF Generation / Re: [Q] Python script written ...
Last post by jirib - May 11, 2025, 11:07:27 AM
Quote from: jirib on May 11, 2025, 09:52:30 AMI even did not know how crop marks or spine marks should look like :/ I could not find an exact description. Maybe in the scribus source (for crop marks) ???

...
CROP_OFFSET = 6 * pt
CROP_LINE_WIDTH = 0.2 * pt
CROP_LEN = 5 * mm
...
BLEED = 5 * mm
...

I defined these variables based on https://printedeasy.com/help/artwork-guides/setting-up-bleed-and-crop-marks, see the picture:



#88
PDF Generation / Re: [Q] Python script written ...
Last post by jirib - May 11, 2025, 10:57:27 AM
Quote from: Nermander on May 11, 2025, 10:39:52 AMDo I understand it right, this script takes a PDF and make a cover of the first and last page?

So, with a 12 page PDF, pages 1 and 12 end up in a cover PDF (landscape, 2-up, with a spine between the pages) and the pages 2-11 end up in a "content only" PDF?

And the width of the spine is calculated based on the number of pages and an assumed page thickness of 0.083?

But what about the insides of the cover? Those will be blank?

Not really:

...
cover_pairs = [
    (reader.pages[total_pages - 1], reader.pages[0]),
    (reader.pages[1], reader.pages[total_pages - 2])
]
...
# === Generate 2-page cover PDF
cover_writer = PdfWriter()
 
for i, (left, right) in enumerate(cover_pairs):
    merged = PageObject.create_blank_page(None, TOTAL_WIDTH, TOTAL_HEIGHT)
 
    if i == 0:
        packet = BytesIO()
        c = canvas.Canvas(packet, pagesize=(TOTAL_WIDTH, TOTAL_HEIGHT))
        draw_marks(c, TOTAL_WIDTH, TOTAL_HEIGHT, spine_width)
        c.showPage()
        c.save()
        packet.seek(0)
        marks = PdfReader(packet).pages[0]
        merged.merge_page(marks)
 
    merged.merge_translated_page(left, tx=BLEED, ty=BLEED)
    merged.merge_translated_page(right, tx=BLEED + A5_WIDTH + spine_width, ty=BLEED)
    cover_writer.add_page(merged)

with open(cover_out, "wb") as f:
    cover_writer.write(f)
...

So, it generates cover with 'cover_pairs'..., however, logically, it places crop marks and spine marks only on the first/outside cover page.
#89
PDF Generation / Re: [Q] Python script written ...
Last post by Nermander - May 11, 2025, 10:39:52 AM
Do I understand it right, this script takes a PDF and make a cover of the first and last page?

So, with a 12 page PDF, pages 1 and 12 end up in a cover PDF (landscape, 2-up, with a spine between the pages) and the pages 2-11 end up in a "content only" PDF?

And the width of the spine is calculated based on the number of pages and an assumed page thickness of 0.083?

But what about the insides of the cover? Those will be blank?
#90
PDF Generation / Re: [Q] Python script written ...
Last post by jirib - May 11, 2025, 09:52:30 AM
I even did not know how crop marks or spine marks should look like :/ I could not find an exact description. Maybe in the scribus source (for crop marks) ???