summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-09-03Revert "Rotate documents correctly"Carlos Garcia Campos4-102/+31
This reverts commit c0b7b178d455f00b21e6317376ab49324bddb340.
2014-06-09Rotate documents correctlyMarek Kasik4-31/+102
Set correct size of rendered images when a rotation is requested. Use "rotate" command to rotate documents instead of setting of "Orientation". Adjust offsets accordingly. Don't execute "setpagedevice" when rendering to "display" device. https://bugs.freedesktop.org/show_bug.cgi?id=76450
2012-11-03build: Use CPPFLAGS instead of CFLAGS for compiling flagsCarlos Garcia Campos2-10/+5
https://bugs.freedesktop.org/show_bug.cgi?id=56481
2012-11-03ps: Fix comparison between signed and unsigned compile warningCarlos Garcia Campos1-2/+3
https://bugs.freedesktop.org/show_bug.cgi?id=56476
2012-08-08Update for release 0.2.70.2.7Carlos Garcia Campos2-2/+12
2012-08-08build: Don't use global INCLUDES var in makefilesCarlos Garcia Campos2-12/+19
2010-12-04Allocate at least 1 page in doc->pagesMarek Kasik1-5/+5
Allocate at least 1 page if there are no %%Pages: or %%Page: comments in the PS file (#31512).
2010-10-30Fix a crash with documents containing an invalid %%Pages: commentCarlos Garcia Campos1-0/+2
When failed to allocate memory for pages because of invalid %%Pages: comment, set maxpages to 0 to ignore the comment. Problem spotted by Marek Kasik. Fixes bug #30867.
2010-06-10Update for release 0.2.60.2.6Carlos Garcia Campos2-2/+21
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 0.2.50.2.5Carlos 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 0.2.40.2.4Carlos 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 https://bugzilla.gnome.org/show_bug.cgi?id=585436
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 0.2.30.2.3Carlos 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 <avm@altlinux.org>. 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 0.2.20.2.2Carlos 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 0.2.10.2.1Carlos Garcia Campos2-2/+27