https://bugs.kde.org/show_bug.cgi?id=366495

--- Comment #1 from Andrew <andrewpostcard-...@yahoo.co.uk> ---
To fix patch src/lib/generator.cpp (replace lines 160-175 with that below).
Note epstool must be installed on your system.

    if (in == Format::Dvi) {
        if (out == Format::Postscript) {
            QStringList args;
            args << formatPath(in) << "-q" << QString("-o
%1").arg(formatPath(Format::Postscript));
            return execute(new Command("dvips", "", args, this));
        } else if (out == Format::Eps) {
            QStringList args;
            QString tmpfile = (d->tempFileInfo->baseName()) +
QString::fromAscii("-tmp");
            args << "-E" << formatPath(in) << "-q" << "-o" <<
tmpfile.arg(formatPath(Format::Eps));
            execute(new Command("dvips", "", args, this));
            args.clear();
            args << "--bbox"  << "--copy" << "--output" <<
formatPath(Format::Eps) << tmpfile.arg(formatPath(Format::Eps));
            return execute(new Command("epstool", "", args, this));

        } else {
            bool b = true;
            if (!convert(in,Format::Eps)) b = false;
            if (!convert(Format::Eps,out)) b = false;
            return b;
        }
    }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to