Logo Search packages:      
Sourcecode: inkscape version File versions

static void do_export_pdf ( SPDocument doc,
gchar const *  uri,
char const *  mime 
) [static]

Perform a PDF export

Parameters:
doc Document to export.
uri URI to export to.
mime MIME type to export as.

Definition at line 1173 of file main.cpp.

{
    Inkscape::Extension::DB::OutputList o;
    Inkscape::Extension::db.get_output_list(o);
    Inkscape::Extension::DB::OutputList::const_iterator i = o.begin();
    while (i != o.end() && strcmp( (*i)->get_mimetype(), mime ) != 0) {
        i++;
    }

    if (i == o.end())
    {
        g_warning ("Could not find an extension to export this file.");
        return;
    }

    (*i)->save(doc, uri);
}


Generated by  Doxygen 1.6.0   Back to index