Page 1 of 1

Problem with ColorSettings/ColorMode in PDF export

Posted: Tue Mar 03, 2015 9:18 pm
by spatz
Hello,

System: QCAD 3.7.4 and 3.8.1 downloaded as zip/tar.gz archive on Linux Mint Debian and Windows 7.

I wrote a script for batch export PDF from AutoCAD drawing files (AC1009). The script file is located under "../scripts/Misc/Examples/IOExamples/BatchCreatePDF/". Everything is working fine except that the row

Code: Select all

doc.setVariable("ColorSettings/ColorMode", "BlackWhite");
doesn't seem to have an effect. The output PDF file is the same as in "GrayScale" mode. "FullColor" mode works as expected.

Is there something wrong with my code or is it a bug?

Regards
Stephan

Re: Problem with ColorSettings/ColorMode in PDF export

Posted: Wed Mar 04, 2015 1:49 pm
by andrew
Can you try setting it on the view instead?
view.setColorMode(RGraphicsView.BlackWhite);

Re: Problem with ColorSettings/ColorMode in PDF export

Posted: Wed Mar 04, 2015 2:12 pm
by spatz
Hello Andrew,

thank you for the reply. I've just added your code line and commented the other out. Now it works as intended at least for qcad 3.8.1 on windows 7 which is the only one I could test for now.

Thank you!
Stephan