dear kuba kuba, > Hello everyone,My first post here. Has anyone ever had any problems > with outputting pdf files using PDFfile class in scribus python? The problem > I've run into while exporting each layer as a separate pdf is that all > generated files but the first one are corupted? Any idea? I must be doing > something stupid... Here it goes a snippet of my script. Much appreciate for > any advice. > > for i in layers: > fileName = fileDir+'/'+i+'.pdf' > pdf.file = fileName # sets the new file name to export > print "pdf fileName to export:", pdf.file > pdf.save() # instance of scribus.PDFfile() class > > PS. Just noticed for loop works independently from pdf.save.... somehow >
i guess you first need some proper indenting :-) as pasted here the code will probably just create one pdf with the whole document (but i have no idea what are you doing before and afterwards) have fun a.l.e
