How to use CMYK colors in Inkscape? - inkscape

I am using Inkscape 0.91. I have created an artwork using Inkscape and converted it into PDF. While taking print copy I could not get the exact color used. How to make it CMYK mode?
Thanks in advance.

Unfortunately, Inkscape does not support CMYK out of the box. You're better off using Scribus if you want to output in CMYK. You can import your .pdf or .svg file into Scribus and export as .pdf, then under the "Color" tab, in "Output Intended For:" select the option "Printer." Scribus is open source and you can get it at scribus.net.
Here's an example of CMYK .pdf generated by Scribus on Ubuntu: http://goo.gl/mflcA4
You can learn more about Color Management in Scribus here.

Related

Cant seem to see content of inkscape file

I worked on some design on inkscape and something weird happened. I can no longer see the contents for file when i open inkscape. All I see I blank whitespace, I don't even see the black rectangular borders I used to see before. When I look at the svg file in finder I can see the contents in the file thumbnail but once i open in inkscape I dont see anything. I tried fitting the page to the content and changing width and height of the document and nothing happened.
I am new to inkscape so this is confusing to me. Anybody have any ideas how to rectify this?
Open your document in Inkscape then press 5 to zoom to the page (or using the menu: View → Zoom → Zoom Page).
You should see the drawing:

Qt rendering an image and showing it

I have a small app that renders an image. It's in .ppm format and opens nicely in Mac's Xee image viewer. The image is created in the default project folder.
However, the user doesn't know where the image is after it is rendered and I would like to open it automatically or perhaps offer where to save the image before it is created.
That is the first problem. The second problem is .ppm - it's not opened by default on Windows, you need Irfan Viewer or something alike.
Is there a way to solve both those problems easily in Qt? For instance, the image is created where the user wants and my app displays it in that ppm format without using some other software? And If a user wants to reopen the image, I should probably make it possible, as well.
I am not a Qt, nor a C++ developer so I am struggling a bit with this, but I have to do it.
Thanks in advance for the tips and advices.
If you convert your image to a QImage (if it's not one already), you can specify where and in what format to save it when calling the QImage::save method.

C++ save image as SVG

I have to save my chart as SVG file (my enviroment C++, eclipse C/C++, windows 7).
I'm able to save it as image file (as you can see bellow), but it's not enough.
I've tried:
gnuplot (gnuplot_i.hpp): don't know how to save the image as SVG file
simple-svg: don't know how not to show black points
cairo: i'm not able to use it at all
Could you recommend me some light and easy-to-understand-and-install tool which helps me to draw charts in C++ and save it directly as SVG file (so nothing like jpg2svg convertor:-)?
I know in command-line gnuplot, it is possible to save a plot as a SVG by doing:
> set term svg
> plot ...
Looking over gnuplot_i.hpp, I would suggest trying:
Gnuplot myGP;
myGP.set_terminal_std("svg");
myGP.setGNUPlotPath("/your/path/here");
myGP.showonscreen();
While I haven't tested it (and there may be more complexity in the Gnuplot class than I can see from the header file), the general idea is there. Set the terminal to svg, set the output path, and plot.
How exactly do you obtain that image? Is there something specific to it that prevents you from just fprintf-ing the image, since SVG is an XML (text) file format?

Set background color of an PDF generated using libHaru

So I am trying to set background color in C++ using libHaru for my new pdf.
I am having issues setting it. Searched through documentation and either was not there
or I missed it.
Anyone who knows how to set background color for pdf page?
Also any comments on libHaru? Would you recommend it etc would be awesome.
Thanks
There is no background color for a PDF page. If you want to make the page red, for example, you draw a rectangle that covers the page and fill it with red.

Rich Text Editor Recommendation - Needs support for image upload and resizing

I am looking for WYSIWYG rich text editor to use with Django. I've looked at a number of different editors (CKEditor, TinyMCE, Aloha, YUI), but I can't seem to find one that has one necessary feature: dynamic image resizing.
What I mean by that is the ability to click a corner of the image in the editor and drag your mouse to resize the image. Content around the image should then adapt to the new image size. As well, the editor needs to have image upload functionality.
Any recommendations?
It's fine if its an editor+plugin combo. Ideally it would also integrate nicely with Django.
Thanks for the help!
Yup. I came to the same conclusion too. django-ckeditor is really easy to use.
Froala and Redactor are perfect for your case. They're paid though.
QuillJS is a free alternative that allows image manipulations by inserting the image directly as a base64 encoded string.