[scribus] batch able to ungroup PDF objects and change colors from RGB into CMYK with lookuptable

Maxence MELIN maxence.melin at safer.fr
Thu Dec 3 14:00:22 UTC 2015


Hi Ale,

Wow ! Thank you for this detailed answer... that shows all the steps to do to get what I want, and that I am - for most of them - not able to do !
I didn't know my needs where so new and original (I am surprised nobody had these needs before...) and so difficult to set up.
We have about 100 PDF files to process each year, I thing we still process them manually !

Thanks for your explanations !

Max

-----Message d'origine-----
De : ale rimoldi [mailto:ale.comp_06 at xox.ch] 
Envoyé : jeudi 3 décembre 2015 14:36
À : Scribus User Mailing List
Objet : Re: [scribus] batch able to ungroup PDF objects and change colors from RGB into CMYK with lookuptable

hi max

warning: longish and not 100% pleasant email ahead...
sit down and have a tee :-)
> Nobody has any idea (or existing scripts to share) to begin the script I need ?
it much depends on your current skills...

you'll need basic python skills.

you will also need to use the 1.5svn development branch of scribus (to be able read in the pdf files).

you will probably have to extend the scripter. (not sure there are commands for reading in pdfs) it's not hard to do.
but some basic c++ skills are needed.


you'll probably need a linux or os x computer (or a virtual box with 
linux; since you have to be able to compile scribus).


since the current scripter should be replaced by a new version that has 
been in the workings for a long time, it would be nice if the extensions 
would go to the new scripter.

since the move to qt5, the new scripter is not working anymore because 
we do not manage to get the signals and slots to be connected across the 
boundaries between c++ and python.
that's a bit harder: you have to know qt, cpp, pyqt and python...
there might be one single line to be fixed (but how?). perhaps more...

if you're ready to work on getting the new scripter to run again (or you 
can get somebody to work on it), i can further help you ...
(i mean: if i help somebody to create something fancy with the scripter, 
i'd really like it to be with the new scripter... it really needs some 
love... )
my time is limited, and i don't want to invest it in further improving 
the older scripter...
and everybody hopes that somebody else at some time will work on it. 
somebody else.
(and, personally, i'd love to see it ready for prime time! but i have no 
direct use for the scripter... so right now i cannot put so much time 
into it!)


all in all: what you have in mind seems to be doable, each step is 
rather simple to do... you just have to replace the "convert rgb to 
cmyk" by "replace rgb colors by cmyk ones" :-)


have a wonderful day
a.l.e

>
> -----Message d'origine-----
> De : Maxence MELIN [mailto:maxence.melin at safer.fr]
> Envoyé : mercredi 2 décembre 2015 16:07
> À : scribus at lists.scribus.net
> Objet : Re: [scribus] batch able to ungroup PDF objects and change colors from RGB into CMYK with lookuptable
>
> Hi !
>
> I am a beginner with Scribus but I know it's very powerful !
> I have several RGB PDF files with grouped objects and I want to develop a script that :
>
> -        is able to process several PDF files (e.g. all PDF in a folder)
>
> -        ungroup the objects of each PDF file
>
> -        convert RGB PDF to CMYK PDF using a txt lookup table where I can set myself the values (I don't use a lot of colors but I have to get precise CMYK values)
> I have no idea how to begin such a script, somebody can help to get me started ?
>
> Thanks !
>
> Max
> -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e...
> URL: <http://lists.scribus.net/pipermail/scribus/attachments/20151202/10a13dd1/attachment.html>
>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net


___
Scribus Mailing List: scribus at lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net



More information about the scribus mailing list