summaryrefslogtreecommitdiff
path: root/gs
AgeCommit message (Collapse)AuthorFilesLines
2007-11-21Update changelogs and release date for the second 8.61 candidate.ghostscript-8.61Ralph Giles60-78/+381
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8397 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-21Revert the change to using an environment variable for the MSVC LIBPATH.Ralph Giles1-1/+1
Details: This wasn't effective in addressing the problem and could cause additional trouble if the environment isn't configured. The changes in r8394 should properly address the issue of quote interpretation with MSVC6. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8396 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-21Check that a device halftone exists before writing it. FixesHenry Stiles1-2/+3
segmentation fault in xps. No differences expected. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8395 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-21Fix compiler flag conflict for non-debug build (seen when switchingRay Johnston1-2/+6
PCL6 build to default to non-debug default). Changes /ZI to /Zi. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8394 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-20Fix broken MSVC 6 build issue caused by change in src/msvccmd.mak that putsRay Johnston1-1/+1
a LIBPATH into the link command line. MSVC linker can't handle spaces in the LIBPATH even if within " ". We use an environment variable set by Microsoft MSVC 6 'vcvars32.bat' instead. This can be manually set if needed. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8392 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-20Batch file to create MSVC solution and projects.Ken Sharp1-0/+1593
Usage: msvcxml gs obj\ld.tr > ghostscript.sln This is the first attempt, and very poor. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8391 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-19Change the product name for the release.Ralph Giles1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8388 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-19Update changelogs for release.Ralph Giles5-2472/+10377
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8387 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-19Fix (transparency) : Wrong background color of a soft mask group.Igor Melichev1-1/+1
DETAILS : Bug 689531 "Regression: PDF file has undesired extra gray object.". The old code used the 0th component of the background color instead its gray equivalent. The bug was introduced when working on bug 687176. EXPECTED DIFFERENCES : None (comparefiles don't include a test for it). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8386 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-19Update documentation timestamps for 8.61.Ralph Giles57-74/+74
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8384 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-19Remove the verification checks for PVERSION and JVERSION, which we noRalph Giles1-30/+0
longer use. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8383 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-19Add new files to the documentation.Ralph Giles2-1/+13
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8382 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-19Update release notes and date for 8.61.Ralph Giles2-117/+94
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8381 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-18Normalize weigts in the Mitchell filter and use proper rounding to ensureAlex Cherepanov1-5/+11
that the constant value is not changed by the filter. Bug 689556, customer 581. DIFFERENCES: Interpolated images in 148-11.ps shows slight difference in density. On halftone devices this results in different transition from black to white for some pixels. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8379 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-18Fix (clist interpreter) : Transparency caused a wrong color depth.Igor Melichev1-3/+3
DETAILS : Bug 689520 Regression: 1bpp and grayscale output broken. The clist interpreter clist_playback_band maintains 2 devices : the clist reader and target. The clist reader device stores private interpreter's data. However using a device structure for this purpose is pretty confusing, because the target device may have same device fields with different values. Particularly while processing a transparency, the target device chage to a transparency buffer device, which may have a different number of color components. The problem happens due to the clist interpreter used a wrong device to obtain the number of color components. This patch changes the code with taking color components from the target device. Now we don't try to analyze all other access to the clist device - it should be a subject of a separate job. Therefore the code may need further improvements. The right way would be to define a special structure for the clist interpreter, and to drop the clist reader device at all. EXPECTED DIFFERENCES : None (comparefiles don't include a test for it; to be added after closing the bug). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8378 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-18Remove incorrect and unnecessary gtk+ separation code. Fixes bug 689541.Russell Lang1-8/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8377 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-18Fix (clist) : Improving the debug printing.Igor Melichev1-1/+1
DETAILS : This patch only inserts some debug trace printing about the pdf14 compositor. The old code is confusing due to mapping an obsolete instruction to "set_color[*]". EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8376 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-18Fix (clist) : Improving the debug printing.Igor Melichev2-1/+5
DETAILS : This patch only inserts some debug trace printing about the pdf14 compositor. The old code generates a confusing trace due to missing an important information. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8375 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-16Fix dependency problems that caused obj/gs_init.ps to be missed. Also fix aRay Johnston2-3/+2
typo that caused CMap files to be missing. DETAILS: This method of putting the gs_init.ps dependency down in lib.mak require us to get gs_init.ps. This hack was discussed with Ralph and is an alternative to adding a dependency to all of the top level makefiles. The dummy gs_init.ps is only made when we are NOT including the PS interpreter (PSI_INCLUDED) since we need the real one for the language switch build. Note that the dummy file doesn't get added to the %rom% file system since PS_ROMFS_ARGS is empty if int.mak is not included. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8374 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-16Correct typos and spelling errors in the change log. Bug 688940.Ralph Giles1-56/+56
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8373 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-16Fix (clist) : Providing clist instruction ids and offsets to debug trace ↵Igor Melichev2-4/+4
(continued 2). DETAILS : The last patch (rev 8365) appears incorrect and causes crashes with halftoning devices. The problem happens due to gx_device_clist_reader::offset_map has been initialized too early in clist_reader_init. At that moment the device is still a clist writer, but the field offset_map belongs to clist reader. Due to gx_device_clist_s is a union, the field overlaps band_range_list.head, and the letter was prematurely reset. It caused some commands were not written to clist file while the page closes. With the test case (pbmraw -r300 012-01.ps) it missed cmd_opv_ext_put_halftone and did not miss cmd_opv_ext_put_drawing_color with color index type == ht_binary. It caused the crash in gx_dc_ht_binary_readdue to pis->dev_ht was not set. (cmd_opv_ext_put_halftone does set, but it was missed). The log message of the revision 8365 reads : "This change is algorithmically equivalent for release build." This statement is false due to the premature initialization of gx_device_clist_reader::offset_map. This patch fixes that with removing its initialization from clist_reader_init. A subsequent call to clist_render_init initializes it. The last patch was made buggy due to the function name clist_reader_init does not properly reflects its finction. This patch fixes the naming. Also provided more stability in gxht.c with a check for NULL pointer. EXPECTED DIFFERENCES : Should fix revision 8365 regressions. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8372 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-16Update the makefile for current pkgconfig macros.Ralph Giles1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8371 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-16Don't generate build files for the ijs package when building. Since thisRalph Giles1-4/+0
is distinct from 'make dist' the results are not optimal Bug 689425. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8370 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-15Fix (clist) : Providing clist instruction ids and offsets to debug trace ↵Igor Melichev8-70/+160
(continued). DETAILS : The last patch appears incorrect for the debug build and causes crashes sometimes. Not sure why local testing didn't detect that. This change is algorithmically equivalent for release build. In the debug build it fixes problems of the last patch. 1. Offset map could be prematurely released by the garbager (It could cause a crash. Not sure why the local test didn't detect it). A new pointer gx_device_clist_reader::offset_map prevents that. Added it to the garbager descriptor and provided its initialization. 2. buffer_segment_index can fail with returning a negative index. Checked that and propagated error codes. 4. Besides top_up_cbuf, the buffer topping up also happens with calling memmove when reading bitmap data. Added calls to top_up_offset_map for accounting that. 5. See comment in top_up_offset_map about the improved invariant. 6. The prototupe of top_up_cbuf is changed with passing the error code. Due to that the variable 'cbp' is droped the 'register' modifier. We believe it won't cause a visible slowdown because modern compilers are smart enough. 7. Do not maintain offset_map when -ZL is not specified. It saves some CPU time with debug build. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8369 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-14Remove an obsolete include.Ralph Giles1-1/+0
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8368 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-14Refactor the gs int.mak and lib,mak to simplify building COMPILE_INITS=1 ↵Ray Johnston3-18/+9
without PS (PCL only build). Make sure gs/src/ugcclib.mak does conditional assignment of COMPILE_INITS git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8367 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-14Fix number of macro arguments that showed an error when FPU_TYPE=-1 (no FPU)Ray Johnston1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8366 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-14Fix (clist) : Providing clist instruction ids and offsets to debug trace.Igor Melichev6-8/+134
DETAILS : This change is algorithmically equivalent for release build. In the debug build it only adds a new debug printing. Let clist segment is consecutive instuctions buffered for same band. 1. gx_device_clist_writer::ins_count counts clist segments. 2. cmd_prefix_s::id is the number of clist segment that it belongs to. 3. stream_band_read_state_s::offset_map stores a table for mapping clist segments' buffer offsets to clist file offsets. 4. s_band_read_init_offset_map, s_band_read_dnit_offset_map, clist_file_offset, top_up_offset_map maintain the table. 5. Inserted a debug printing into gxclutil.c, gxclrast.c . EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8365 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-14Fix (clist) : A preparation for providing clist instruction ids and offsets ↵Igor Melichev2-0/+7
to debug trace. DETAILS : We would like this change to be algorithmically equivalent, but the proof is too complex. Therefore we commit it separately in order to check for raster differences. 1. Inserted a new field into cmd_prefix_s. For now this field is never used, but it changes memory allocation. Due to that the bufferring in the clist writer goes slightly different. Particularly it may cause new effects while restarting failed instructions. 2. Early return from top_up_cbuf when the stream is over. The new code does not top up the last portion of the data stream. It shouldn't be important for the reader, but we can't proove for sure. This change is necessary because we want to add more fields to gx_clist_state_s, and the new fields would be invalid after s_close resets stream::state. See the next patch for details. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8364 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-14Add support for passing EXPAT_CFLAGS from the top-level makefile.Ralph Giles1-8/+9
Passing -DHAVE_MEMMOVE is required in the unix build. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8363 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-14Remove spurious executable bits.Ralph Giles128-0/+0
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8362 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-13Fix (make) : Could not build for x64 platform with Developer Studio 2005.Igor Melichev1-1/+5
DETAILS : 1. The old code uses the 32 bits compiler for compiling build utilities (genarchg, echogs), and then tries to link them with x64 libraries. 2. Developer Studio 2005 doesn't support -ZI (debug database for edit end continue) for the x64 platform. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8361 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-13Fix (pdfwrite): type 3 fonts with exceedingly small BoundingBoxKen Sharp5-6/+26
entries were clamped to 0 or 1. Details: Bug #689537 "FontBBox wrong in pdf generated by ps2pdf (breaks acrobat 8)". The type 3 font has a FontBBox of [0 0 0.3 0.3]. Because pdfwrite uses integers to record the font bounding box, this was being clampled to [0 0 1 1]. This should not cause a prolem, but for unknown reasons causes Acrobat 8 to render *very* slowly. (gdevpdtf.h), 'struct /*type 3*/', alter the FontBBox member from a gs_int_rect to a gs_rect to preserve floating point box values. (gdevpdtt.c), pdf_make_font3_resource, copy the font bbox values instead of floor'ing the lower and ceil'ing the upper values. (gdevpdfu.c), create a new function 'pdf_write_font_bbox_float' to write the bbox as floats instead of ints. (gdevpdfx.h) prototype 'pdf_write_font_bbox_float' (gdevpdtw.c), pdf_finish_write_contents_type3, use the new routine to write out a floating point bounding box. EXPECTED DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8360 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-12Fix (pdfwrite): named objects, created via a pdfmark such as /BP,Ken Sharp1-1/+4
could not have their content modified after the object was completed. DETAILS: Bug #689104 "Overwriting transformation /Matrix in XObject previously created with /BP & /EP pdfmarks". Some pdfmarks, such as /BP create named objects. These can accumulate information until a matching pdfmark (/EP in this case) completes the object. When complete, objects were written to the final destination PDF file. This made it impossible to later modify the object. (gdevpfm.c) pdfmark_bind_named_object, change the call to pdf_substitute_resource to defer writing the object to the destination file, if the object is named. This means the object is still available for modification until the end of the job. NB if the object is not named, we still write it immediately, as there is no mechanism for modifying an unnamed object, nor do we currently have a mechanism for maintaining a record of unnamed objects. EXPECTED DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8359 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-10Pre-scan the stream for '{' during the stream length check to avoid readingAlex Cherepanov1-9/+37
to the end of the stream and closing it. Bug 689551, customer 661. DIFFERENCES: None git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8358 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Remove the JVERSION makefile variable.Ralph Giles18-32/+2
We only support the current version 6 library, and it seems unlikely to revise in the the near future. We also include our own copy of the source now, so it is less important to support a variety of third party library versions. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8357 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Remove the PNGVERSION makefile variable.Ralph Giles18-35/+9
We no longer support building older versions of the libpng source, and now include our own version, so there is no reason to maintain this. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8356 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Update the top level makefiles with the current libpng version number.Ralph Giles15-15/+15
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8355 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Use PNGSRCDIR and PNGVERSION instead of PSRCDIR and PVERSION inRalph Giles19-56/+51
the top level makefiles. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8354 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Minor cleanup of the expat makefile.Ralph Giles1-3/+3
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8353 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-09Change the jbig2dec license from GPLv2 to GPLv2 or later.Ralph Giles1-4/+5
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8352 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-08Fix: Ignore problematic post table in format 2.0 with ISOLatin1Encoding ↵Suzuki Toshiya1-1/+16
glyph names. DETAILS: Some TrueType fonts converted by "Windows Type 1 Installer" have problematic post table format 2.0 including MacGlyphEncoding entries which should be omitted. Such extra entries in the beginning of glyphName array make /Encoding broken. By checking if glyph name in post table is predefined one in MacGlyphEncoding, such problematic post table can be detected. By ignoring such problematic post table, bug 689495 is fixed. However, some TrueType fonts designed for Microsoft redefines MacGlyphEncoding glyph name out of predefined range. To permit such font, the post table in format 2.0 is checked by ISOLatin1Encoding which is the cross section of MacGlyphEncoding and WinAnsiEncoding. ISOLatin1Encoding is enought to fix the bug 689495. EXPECTED DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8351 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-07Preliminary makefile for the expat third party library.Ralph Giles2-0/+94
Can be used to link to the system expat with SHARE_EXPAT=1, but compiling the source doesn't work on linux in this revision because of missing configuration defines. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8350 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-07Copy the expat-2.0.1 tag source into the gs tree.Ralph Giles128-0/+68036
This 3rd party library is needed for XPS and eventually SVG support. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8349 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-07Add a skeleton implementation of the text extraction device.Alex Cherepanov12-12/+403
It doesn't do anything useful yet, only prints "Hello world" once per page. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8347 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-02Fix for Bug 689316.Marcos H. Woehrmann1-3/+1
On some systems XInitImage() appears to have problems with images that are one pixel in height, so if XInitImage() returns an error call XPutImage() instead. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8346 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-02Document the interaction between a the vector device beginpage methodRalph Giles1-1/+7
and gdev_vector_stream() more clearly. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8345 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-01Make sure that errors are propogated to caller in the WTS device (suchRay Johnston1-2/+6
as VMerror). Bug 689511 for customer 951. DETAILS: This doesn't really fix the underlying problem seen by the (embedded) customer where the clist rendering uses a large amount of RAM. EXPECTED DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8344 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-01PS interpreter : Trace the executed operators' names (continued).Igor Melichev1-2/+0
DETAILS : Fix an inaccurate coding of the last patch. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8343 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-11-01PS interpreter : Trace the executed operators' names.Igor Melichev5-3/+37
DETAILS : This change is syntactically equivalent for a default build. For obtaining the new functionality Ghostscript must be compiled with a new predefined macro DEBUG_TRACE_PS_OPERATORS. The new debug switch '!' prints names of operators executed while the interpretation. Note : Inline operators (which are expanded inside interp.c) are not printed. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8342 a1074d23-0009-0410-80fe-cf8c14f379e6