+static gint size = THUMBNAIL_SIZE;
+static const gchar **file_arguments;
+
+static const GOptionEntry goption_options[] = {
+ { "size", 's', 0, G_OPTION_ARG_INT, &size, NULL, "SIZE" },
+ { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &file_arguments, NULL, "<input> <ouput>" },
+ { NULL }
+};
+
+struct AsyncData {
+ EvDocument *document;
+ const gchar *output;
+ gint size;
+ gboolean success;
+};
+
+static void
+delete_temp_file (GFile *file)
+{
+ ev_tmp_file_unlink (file);
+ g_object_unref (file);
+}
+
+static EvDocument *
+evince_thumbnailer_get_document (GFile *file)