AgeCommit message (Collapse)AuthorFilesLines
2010-06-01Fix rendering of files with doseps header and EOF comment missingCarlos Garcia Campos1-1/+8
Fixes bug #27830.
2010-06-01Add --enable-iso-c configure option disabled by defaultCarlos Garcia Campos1-1/+7
It uses, if available, -ansic and -pedantic flags. See bug #27735
2010-06-01Remove unneeded #includeCarlos Garcia Campos1-1/+0
See bug #27734.
2010-06-01Make Ghostscript not look first in the current directory for library filesCarlos Garcia Campos2-3/+5
2010-04-18Update for release Garcia Campos2-2/+18
2010-04-18Use %I64x format for DisplayHandle on Windows 64 bitsCarlos Garcia Campos1-1/+7
2010-04-06Fix a crash in pdf exporter when rendering failsCarlos Garcia Campos1-0/+6
2010-03-28Use the correct format string for DisplayHandle arg depending on the platformCarlos Garcia Campos1-2/+5
2010-02-21Update for release Garcia Campos2-2/+17
2010-02-21Fix compile warningCarlos Garcia Campos1-1/+1
2010-02-21Use AM_SILENT_RULES when availableCarlos Garcia Campos2-5/+7
2010-02-21Use spectre_gs_process() instead of spectre_gs_send_page() in pdf exporterCarlos Garcia Campos1-3/+40
When rendering with the display device we use a new gs instance for every page and we have to process prolog, setup and trailer for every page. PDF exporter is different, we use a single gs instance created in exporter_pdf_begin() and destroyed in exporter_pdf_end(). Now we use spectre_gs_process() to send prolog and setup in begin() and trailer in end() so that we just send the page contents in do_page(). Fixes bug #26592.
2010-02-21Make spectre_gs_process() public so that it can be used by exportersCarlos Garcia Campos2-1/+7
It's public in the internal private API
2010-02-21Ignore page order parameter of %%Pages if there's a %%PageOrder commentCarlos Garcia Campos1-3/+0
It caused problems in documents where there's a %%PageOrder after the %%Pages comment. See evince bug
2010-02-03Add -no-undefined to LDFLAGS for building w32 dllHib Eris1-1/+1
2010-02-03Use _vscprintf instead of vsnprintf when availableHib Eris2-1/+9
On Windows, if output was truncated, vsnprintf() does not return the number of characters which would have been written to the string if enough space had been available. To work around this, use _vcsprintf() instead.
2009-12-11Skip documents in the Prolog like Resource-FontCarlos Garcia Campos1-0/+14
Fixes bug #25573.
2009-10-19fix some warnings of sscanf scanning signed but ending up in unsignedAlbert Astals Cid1-5/+5
2009-10-19commit some more warning flagsAlbert Astals Cid1-1/+1
2009-10-18Update for release Garcia Campos2-2/+29
2009-10-18Use git tag instead of deprecated git-tagCarlos Garcia Campos1-1/+1
2009-10-10Remove internal copy of ghostscript headersCarlos Garcia Campos6-726/+0
They should be intalled by ghostscript since version 8.62.
2009-10-10Bump gs requirement to 8.62Carlos Garcia Campos1-1/+1
2009-10-10[psgetpagebbox] return true if any of the coords are != 0 instead of all of themCarlos Garcia Campos1-1/+1
Fixes bug #24132.
2009-09-11Add missing first argument in exporter pdfCarlos Garcia Campos1-2/+3
2009-09-06Revert "Skip nested documents that don't have BeginDocument and EndDocument ↵Carlos Garcia Campos1-17/+0
but have %PS and %%EOF" This reverts commit d2a3abcc066330f893fa53dee8ad71dbc452d95a. This is causing other bugs (see bug #23456) and it doesn't seem to be fixing anything important.
2009-06-16Run ghostscript always with -dSAFER optionCarlos Garcia Campos1-1/+1
2009-04-21Fix documents with PJL commands before the initial DSC commentsCarlos Garcia Campos1-1/+40
When using readline to skip the PJL commands, the whole document is skipped because readline considers %PS comments as a nested document. We need to unconditionally skip the lines until the first DSC command is found and continue with the parsing normally.
2009-04-19Make sure document media struct contents are never used uninitializedCarlos Garcia Campos1-26/+31
Based on a patch by Alexander Myltsev <>. See bug #18685
2009-04-19Improve detection of invalid PS filesCarlos Garcia Campos1-1/+15
A document scanned without errors with no pages and no format is likely to be an invalid file, or not a PostScript file at all. Since this cannot be detected by the scanner, in this particular case, we try to render the document to set SPECTRE_STATUS_LOAD_ERROR in case it fails to render. Fixes bug #19042.
2009-03-22Fix error handling of gsapi_run_* functionsCarlos Garcia Campos1-10/+13
2008-11-25Update for release Garcia Campos2-2/+16
2008-11-25ps.c: malloc + memset -> callocAlexander Myltsev1-4/+2
2008-11-25spectre-device.c: fix warning.Alexander Myltsev1-1/+2
2008-11-25Parse floats in a locale-independent wayCarlos Garcia Campos1-25/+32
Fixes bug #18685. Instead of using %f when parsing floats with sscanf %s is used, and the resulting string is then converted to a float by using _spectre_strtod which is locale-independent.
2008-11-25Add _spectre_strtod to spectre utilsCarlos Garcia Campos2-8/+134
Copied from glib g_strtod(), a thread-safe locale-independent version of the standard strtod().
2008-11-25ps.c: extract the scan_boundingbox function.Alexander Myltsev1-126/+41
2008-11-24Only translate when the page box is the bounding boxCarlos Garcia Campos1-27/+26
Fixes bug #18239
2008-11-24Add a (private) function to get the BoundingBox of a pageCarlos Garcia Campos2-20/+49
2008-10-28Ensure row-alignment match pixman's requirmentsChris Wilson1-0/+1
pixman requires a row-alignment of 4 bytes, so we need to inform gs to create a memory device matching that requirement.
2008-08-10Update for release Garcia Campos2-2/+27
2008-08-09Fix a signed/unsigned comparison warning.Carlos Garcia Campos1-3/+3
2008-08-09Set document status to LOAD_ERROR when an invalid file is given.Carlos Garcia Campos1-0/+8
2008-08-07Do not include config.h if HAVE_CONFIG_H is not definedCarlos Garcia Campos1-0/+2
2008-08-07Make spectre_strdup_vprintf compatible with platforms where vasprintf is not ↵Carlos Garcia Campos3-3/+122
2008-08-07Implement _spectre_get_pid for win32ecyrbe1-2/+6
2008-08-06Add 'b' to the mode string in fopen for win32 compatibility.ecyrbe4-7/+7
2008-08-05Support DOS EPS files in order to ignore the preview stuffCarlos Garcia Campos2-29/+153
Based on changes made by Russell Lang for GSview. Fixes bug #16810
2008-07-13Fix bytes order on big endianBenjamin Jacobs2-1/+7
2008-06-19Fix documents that have Special as PageOrderCarlos Garcia Campos1-2/+17