stream.write(f"""
import scribus
import sys
icc = "{icc}"
margin = {margin}
class exportPDF():
def __init__(self, svg=sys.argv[1], o=sys.argv[2]):
#scribus.newDocument(({width},{height}), (margin,margin,margin,margin),
# PORTRAIT, 1, UNIT_MILLIMETERS, PAGE_1, 0, 1)
#scribus.placeSVG(svg, 0, 0)
scribus.openDoc(svg)
pdf = scribus.PDFfile()
if (margin > 0):
pdf.bleedl = margin
pdf.bleedr = margin
pdf.bleedt = margin
pdf.bleedb = margin
pdf.bleedMarks = True
pdf.colorMarks = True
pdf.version = {pdfVersion}
pdf.allowAnnots = True
pdf.allowChange = True
pdf.allowCopy = True
pdf.allowPrinting = True
pdf.noembicc = False #embed icc !
pdf.solidpr = icc
pdf.imagepr = icc
pdf.printprofc = icc
pdf.profiles = True
pdf.profilei = True
pdf.outdst = 1 # output destination = {{0=screen, 1=printer}}
pdf.file = o
pdf.compress = True
pdf.compressmtd = 0 # 0 = automatic, 1 = jpeg ; 2 = zip, 3 = none
pdf.quality = 0 #max
pdf.fontEmbedding = {embedFonts}
pdf.thumbnails = True
pdf.save()
exportPDF()""")
-
Bitte melde Dich an, um einen Kommentar zu verfassen!