Hello,
this is the first time I use the scrypts in scribus (and also the first in python)
I do not know if I should use pypdf. in the readme file pypdf, it is written:
Example:
from pyPdf import PdfFileWriter, PdfFileReader
output = PdfFileWriter()
input1 = PdfFileReader(file("document1.pdf", "rb"))
# add page 1 from input1 to output document, unchanged
output.addPage(input1.getPage(0))
...
...
...
I tried several combinations, but without success
input1 = PdfFileReader(file(imageFile, "rb"))
outputa = PdfFileWriter()
outputa.addPage(input1.getPage(2))
page5 = input1.getPage(4)
scribus.newDoc((450,320),(15,15,11.5,11.5),scribus.PORTRAIT,1, scribus.UNIT_MILLIMETERS, scribus.NOFACINGPAGES, scribus.FIRSTPAGELEFT)
a = scribus.createImage(15, 11.5, 210, 297,'image_a')
scribus.loadImage(outputa, a)
b = scribus.createImage(225, 11.5, 210, 297,'image_b')
scribus.loadImage(page5, b)
the alternative would be to split the file into as many page pdf, but I preferred to use a single file if possible.
It would be to impose a brochure (2 pages per sheet) and crop the following pdf bleed
if you have any feedback, thank you in advance