New inkscape extension: Export PDF in CMYK and TIFF in CMYK

Other sites and resources for Inkscape users.
Buy Inkscape books

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby jonata » Wed Sep 14, 2011 7:51 am

This extension doesn't run on Windows.
User avatar
jonata
 
Posts: 22
Joined: Fri Jul 27, 2007 12:11 am
Location: Tapejara/RS/Brazil

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby tjindy » Sun Sep 18, 2011 1:51 am

SO sad.. anyway it`s python, right? We have got Uniconvertor and maybe someone could try do it for Win :D

of coz, still got Scribus and Gimp Separate+ (now im doing big catalogue for travel studio) but it is gonna be a little bit hard to finish everything.

Regards
TJ
tjindy
 
Posts: 9
Joined: Wed Sep 22, 2010 8:07 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby kreaninw » Sat May 26, 2012 3:13 am

I can't manage this extension to work on Ubuntu 12.04 LTS with Inkscape on the Ubuntu Software Center. I have tested latest Inscape Trunk, not work either.

I have contacted the author via his e-mail(jbopen@gmail.com), no respond so far.

This is my story :

When I tried to generate CMYK PDF, error message appears in Inkscape. And generated PDF was broken.

Code: Select all
Traceback (most recent call last):
  File "export-pdf-cmyk.py", line 268, in <module>
    effect.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect
    self.effect()
  File "export-pdf-cmyk.py", line 243, in effect
    prepare_svg_to_pdf()
  File "export-pdf-cmyk.py", line 216, in prepare_svg_to_pdf
    areas_de_bitmaps = what_export()
  File "export-pdf-cmyk.py", line 78, in what_export
    export_area.append(child.attrib['id'])
  File "lxml.etree.pyx", line 2198, in lxml.etree._Attrib.__getitem__ (src/lxml/lxml.etree.c:49115)
KeyError: 'id'


And when I tried to generate CMYK TIFF, error message appears in Inkscape. And generated TIFF was broken.

Code: Select all
convert: unable to open image `"/usr/share/color/icc/SWOP2006_Coated5v2.icc"': No such file or directory @ error/blob.c/OpenBlob/2617.
convert: no decode delegate for this image format `"/usr/share/color/icc/SWOP2006_Coated5v2.icc"' @ error/constitute.c/ReadImage/544.
convert: unable to open file `"/usr/share/color/icc/SWOP2006_Coated5v2.icc"': No such file or directory @ error/blob.c/FileToBlob/940.


Another 2 extension, PNG CMYK and JPEG CMYK, both display similar error, none of the 4 extension work as expect.

http://wiki.inkscape.org/wiki/index.php/ExportPDFCMYK
kreaninw
 
Posts: 1
Joined: Sat May 26, 2012 3:01 am

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby jonata » Sun May 27, 2012 8:43 am

All of these extensions aren being developed anymore and are being replaced by a new and more flexible extension called "Inkscape OUTPUT PRO". You can see more details here:
http://jonata.org/inkscape/outputpro/ (only in portuguese).

Thanks!
User avatar
jonata
 
Posts: 22
Joined: Fri Jul 27, 2007 12:11 am
Location: Tapejara/RS/Brazil

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby Pander » Sat Sep 15, 2012 8:36 pm

I would like to test on Linux but for some reason Google Translate cannot process the two pages listed above. Perhaps this can be made avaiable via the Launchpad PPA inkscape-trunk?
Pander
 
Posts: 15
Joined: Tue Sep 08, 2009 7:46 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby brynn » Sat Sep 15, 2012 8:48 pm

I recently found Bing translator. Maybe better luck? http://www.bing.com/translator/?ref=SAL ... &mkt=en-US
Basics:
> Help menu > Tutorials
> a Quick Guide to Inkscape
Manual:
> Inkscape: Guide to a Vector Drawing Program
Tutorials:
> Inkscape Community
Development news
> Google+
Gallery:
> Inkscape Community Gallery
User avatar
brynn
 
Posts: 6795
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby rich2005 » Sun Sep 16, 2012 4:13 am

This is some coincidence. I have just spent a good hour or so translating outputpro .py file into English (again) for my own benefit.

I did wonder at the lack of response and put it down to this extension being 'linux only' but it does work (often slowly) and produces cmyk jpeg with embedded colour profile.

Google translate works although I am still not too sure about some of literal translations. For the web page try this.

http://tinyurl.com/8evz5b2

A screenshot from my machine http://i.imgur.com/HFvLA.jpg The extension is a beta and I still get the odd error message but it works.

For the previous extensions, never could get the ..to_pdf to work only ..to_tiff so if jonata is watching...
a big please and is it possible to add a pdf output option.
rich2005
 
Posts: 45
Joined: Fri Mar 30, 2012 9:06 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby Pander » Thu Nov 01, 2012 10:43 pm

I tested again on 2012-11-01 on Ubuntu 21.04 LTS with Inkscape 0.48.3.1-1ubuntu1 and these are my findings:
1) http://wiki.inkscape.org/wiki/index.php/ExportPDFCMYK can say you can also document to install the two files in ~/.config/inkscape/extensions This will make it easier for people that do not have sudo rights to be able to install and test/use this
2) I do not know what to do with export-tiff-cmyk.patch Do I need to install another extension first?
3) the export dialog should have an option called "Convert texts to paths" which is always selected and cannot be changed by the user. In this way, I do not have to convert to paths manually each time I export
4) the error I get with raserize is:

Code: Select all
Traceback (most recent call last):
  File "export-pdf-cmyk.py", line 268, in <module>
    effect.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect
    self.effect()
  File "export-pdf-cmyk.py", line 243, in effect
    prepare_svg_to_pdf()
  File "export-pdf-cmyk.py", line 216, in prepare_svg_to_pdf
    areas_de_bitmaps = what_export()
  File "export-pdf-cmyk.py", line 78, in what_export
    export_area.append(child.attrib['id'])
  File "lxml.etree.pyx", line 2198, in lxml.etree._Attrib.__getitem__ (src/lxml/lxml.etree.c:49115)
KeyError: 'id'


5) without rasterize I get this error:

Code: Select all
Cannot list directory /home/pander/.uniconvertor:[Errno 2] No such file or directory: '/home/pander/.uniconvertor'
ignoring it in font_path
Cannot list directory /home/pander/.uniconvertor:[Errno 2] No such file or directory: '/home/pander/.uniconvertor'
ignoring it in font_path
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
    xml_reader.parse(input_source)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 301, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
    getattr(self, method)(attrs)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 837, in begin_path
    self.parse_style(style)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 384, in parse_style
    self.try_add_style(key, val)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 394, in try_add_style
    color = csscolor(val)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 79, in csscolor
    color = CreateRGBColor(r, g, b)
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 82, in uniconv
    doc = load.load_drawing(input_file)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/io/load.py", line 364, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/io/load.py", line 337, in load_drawing_from_file
    doc = loader.Load()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
    xml_reader.parse(input_source)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 301, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
    getattr(self, method)(attrs)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 837, in begin_path
    self.parse_style(style)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 384, in parse_style
    self.try_add_style(key, val)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 394, in try_add_style
    color = csscolor(val)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 79, in csscolor
    color = CreateRGBColor(r, g, b)
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
  File "export-pdf-cmyk.py", line 268, in <module>
    effect.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 216, in affect
    if output: self.output()
  File "export-pdf-cmyk.py", line 46, in output
    out = open(tempfile.gettempdir() + os.sep + 'final.pdf','rb')
IOError: [Errno 2] No such file or directory: '/tmp/final.pdf'


6) when I create the directory ~/.uniconvertor, I still get the errors from above.

I would be happy to test again when all above points have been fixed or answered :D
Last edited by Pander on Thu Nov 01, 2012 10:45 pm, edited 1 time in total.
Pander
 
Posts: 15
Joined: Tue Sep 08, 2009 7:46 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby samtuke » Fri Nov 30, 2012 11:49 pm

I installed OutputPro; it looks very promising.

Homepage: http://jonata.org/inkscape/outputpro/
GitHub: https://github.com/jonata/Inkscape-OUTPUT-PRO

I can't get it to export PDFs, or set the DPI correctly. I also can't understand most of the Portuguese interface. So I created issues in GitHub for each of these problems:

https://github.com/jonata/Inkscape-OUTPUT-PRO/issues

I have high hopes for this extension - Inkscape users really need pro pre-printing options and we're pretty close to it with this extension IMO.
samtuke
 
Posts: 1
Joined: Fri Nov 30, 2012 11:31 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby rich2005 » Sat Dec 01, 2012 11:38 pm

Looking at your issues, fair enough.

I use this extension and find it useful, the author probably needs a bit of help and encouragement above anything else. My coding started at college with fortran and ended late 80's with quickbasic 4.5, lol, so I'm not much help.

English - I made a translation for my own benefit, anyone wants to try it, more than welcome. It is on my rapidshare account (0.75 MB including a pdf of the portuguese - english translations I gleaned from google.) Not a 100% but usable.

http://rapidshare.com/files/965926715/outputpro.zip

AFAIK from the authors webpage, this extension is only for linux. It does throw up an error message at the end but does work. It is a beta after all.
A couple of screenshots http://i.imgur.com/kP4oJ.jpg

Output formats, That list on the webpage looks to me like a timeline and has not progressed beyond jpeg. Certainly could do with pdf, except for tiff I never got the earlier extensions to work.

DPI and print size, I think I know what you mean, but a raster image is measured in pixels so an image @ 100 ppi say 100 x 100 pix, then same image @ 300 ppi = 300 x 300 pix, which I am sure you know. You can print that image any size you want, A6 to A0 but of course the quality will be very different.
rich2005
 
Posts: 45
Joined: Fri Mar 30, 2012 9:06 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby Johannski » Sat Jun 08, 2013 7:03 pm

Hello everybody!
Great thread, thnaks for all the information and translation. I'm working right now a lot with Inksape for printing and I thought it would be a good idea to get a little more professional by creating pdfs with CMYK. I installed Output Pro on Xubuntu 13.04 64 bit and it works. As rich allresdy mentioned, it prints out some erros, but the result seems to be fine.

I've got two questiones:
* Which programm for linux lets me see all the information about a picute as in rich's screenshot?
* Is output Pro still under development? My protuguese is not that good, so I'm not sure what the website says. I think this tool would be great if it would offer PDF support.
Image
User avatar
Johannski
 
Posts: 58
Joined: Wed May 05, 2010 3:13 am
Location: Austria

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby rich2005 » Sun Jun 09, 2013 7:20 pm

It is probably a linux thing...although the author could do with a bit of general encouragement.

I would think that a majority of the users here are M$ or Mac based and not much interested in a purely linux extension, and/or no requirement to output CMYK images to send to a printing company.

AFAIK OutputPro has stalled. The latest is nearly a year old - 26.07.2012

The file viewer is XnViewMP, which I like because unlike some (gwenview, shotwell) it does not try to take over the computer. It does show the file details including the icc profile name if it is embedded.
Packages for all platforms http://newsgroup.xnview.com/viewforum.php?f=60 look at the top of the page in announcements.

Alternatives.
Recommend CMYKtool. Export your Inkscape masterpiece to a png and convert it from RGB to CMYK. converts to jpeg and tiff (8 bit and 16 bit) Home page is http://www.blackfiveimaging.co.uk
Since you are using 'buntu you can either compile it from source or try a package from
https://launchpad.net/~amr/+archive/blackfiveimaging

Then of course commandline and ImageMagick which will output PDF

Advice I got along the way, "If you want to end up with CMYK start with CMYK". In this respect linux has a great application in Krita, It does convert from RGB to CMYK as well, so import your Inkscape png, supposed to export to PDF, sadly my PCLOS package crashes at this point. still worth a try.

best of luck.
rich2005
 
Posts: 45
Joined: Fri Mar 30, 2012 9:06 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby Pander » Wed Nov 26, 2014 2:03 am

Any progress on getting CMYK export support for Inkscape. According to http://libregraphicsworld.org/blog/entr ... evelopment I am willing do donate/support the developer that makes this work.
Pander
 
Posts: 15
Joined: Tue Sep 08, 2009 7:46 pm

Re: New inkscape extension: Export PDF in CMYK and TIFF in C

Postby brynn » Wed Nov 26, 2014 3:05 pm

To communicate directly with developers, you should join the developer mailing list. https://inkscape.org/en/community/mailing-lists/ They will not see your message here, unfortunately.

Also see this recent post: viewtopic.php?f=21&t=18053 (writing the next new roadmap, which guides Inkscape development). (Although I suspect CMYK support is already mentioned.)
Basics:
> Help menu > Tutorials
> a Quick Guide to Inkscape
Manual:
> Inkscape: Guide to a Vector Drawing Program
Tutorials:
> Inkscape Community
Development news
> Google+
Gallery:
> Inkscape Community Gallery
User avatar
brynn
 
Posts: 6795
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA

Previous

Return to Inkscape Resources

Who is online

Users browsing this forum: No registered users and 1 guest