From 4e8c27b1594fbfc20df693cb25537da8fad9cde4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 02 Jun 2005 11:38:06 +0000 Subject: Try to render even if psscan fails. 2005-06-02 Marco Pesenti Gritti * ps/ps-document.c: (output): * ps/ps.c: (psscan): Try to render even if psscan fails. --- (limited to 'ps/ps.c') diff --git a/ps/ps.c b/ps/ps.c index 693cc37..c95c815 100644 --- a/ps/ps.c +++ b/ps/ps.c @@ -322,18 +322,6 @@ psscan(FILE * file, int respect_eof, const gchar * fname) In a way, this makes sense, a program PostScript does not need the !PS at the beginning. */ - /* use a test command to determine if ghostscript can - understand this document! */ - gchar *test_cmd; - - test_cmd = g_strdup_printf - ("%s -dNOPAUSE -dBATCH -sDEVICE=nullpage %s " - "1>/dev/null 2>/dev/null", gtk_gs_defaults_get_interpreter_cmd(), fname); - if(system(test_cmd) != 0) { - g_free(test_cmd); - return NULL; - } - g_free(test_cmd); doc = g_new0(struct document, 1); doc->default_page_orientation = GTK_GS_ORIENTATION_NONE; doc->orientation = GTK_GS_ORIENTATION_NONE; -- cgit v0.9.1