summaryrefslogtreecommitdiff
path: root/gs/src/gdevpdfi.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix: pdfwrite could output Indexed color spaces with more than 256 entries,L Peter Deutsch2002-02-111-0/+3
| | | | | | | | | | or images with more than 8 bits per component, neither of which PDF supports. This patch causes the latter to revert to the millions-of-tiny-rectangles representation, which is not adequate in the long run, but is at least valid output. Fixes SourceForge #513910, for the moment. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2165 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: Work around an apparent Acrobat Reader 5 bug -- it gives an error forL Peter Deutsch2002-01-171-2/+120
| | | | | | | | images with a color-key mask, at least for 1-bit-deep images using an Indexed color space -- by converting the image to an ordinary masked image. Fixes a PCL->PDF problem reported by a customer. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2033 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: If an image used a color space that couldn't be represented in PDF, anL Peter Deutsch2001-08-031-4/+4
| | | | | | | | invalid file was produced, rather than falling back to the default representation as tiny rectangles. (bug introduced by H. Blischke's color space fix) git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1663 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: If ConvertCMYKImagesToRGB was true, pdfwrite produced images with theL Peter Deutsch2001-07-241-5/+14
| | | | | | | correct RGB data but with the color space still set to DeviceCMYK. (Fix originally from Helge Blischke.) git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1623 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: pdfwrite didn't write transfer functions in the output for images, andL Peter Deutsch2001-07-121-4/+16
| | | | | | | | | | | allowed lossy compressions on images even in the presence of peculiar transfer functions (such as functions simulating indexed color spaces). This fix writes transfer functions for images, prevents lossy compression if the transfer function is not the identity, and undoes the hack that was implemented earlier to work around this problem. Fixes SourceForge bug #420257. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1595 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: imagemask used the color of previous object if the object had smallerAlex Cherepanov2001-02-071-1/+1
| | | | | | clipping path than imagemask. Deferred grestore and setcolor were transposed. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1195 a1074d23-0009-0410-80fe-cf8c14f379e6
* Updates the license notices to reflect the name change from AladdinL Peter Deutsch2000-09-191-16/+16
| | | | | | | Ghostscript to AFPL Ghostscript, as well as some internal references to the program name. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@729 a1074d23-0009-0410-80fe-cf8c14f379e6
* Adds the ability to write PDF 1.4 soft-masked images.L Peter Deutsch2000-09-111-5/+21
| | | | git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@705 a1074d23-0009-0410-80fe-cf8c14f379e6
* Adds the ability to write some PDF 1.4 constructs: graphics state parametersL Peter Deutsch2000-09-111-95/+196
| | | | | | AIS, BM, ca/CA, and TK, and images with soft masks (except for Matte). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@703 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: A "0 ||" was omitted, potentially causing some kinds of errors thatL Peter Deutsch2000-05-021-1/+1
| | | | | | never happen in practice to be overlooked. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@420 a1074d23-0009-0410-80fe-cf8c14f379e6
* Implements ImageType 3 images in the PDF writer.L Peter Deutsch2000-04-301-667/+166
| | | | git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@413 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: Patterns were sometimes written twice, with an empty definition theL Peter Deutsch2000-04-281-0/+1
| | | | | | second time. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@395 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: The color space for images wasn't always written in the correct formL Peter Deutsch2000-04-281-5/+37
| | | | | | | (an object reference for image XObjects, a resource name for in-line images). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@393 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: PDF Patterns weren't written correctly if the ProcessColorModel wasn'tL Peter Deutsch2000-04-241-14/+8
| | | | | | Device RGB. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@372 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: Bitmapped characters weren't written properly on the output file (newL Peter Deutsch2000-04-131-2/+10
| | | | | | bug since 6.20). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@317 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: The PDF writer could get an ioerror when downsampling images whose sizeL Peter Deutsch2000-04-131-3/+4
| | | | | | wasn't an exact multiple of the downsampling factor. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@316 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: Pattern resources were written with incorrectly scaled XStep and YStep,L Peter Deutsch2000-04-131-1/+1
| | | | | | and without a Type entry. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@314 a1074d23-0009-0410-80fe-cf8c14f379e6
* In pdfwrite, rewrites the image writing code to use Cos objects rather thanL Peter Deutsch2000-04-121-708/+263
| | | | | | | | | | direct printing, and splits off the creation of image dictionaries into a new file; adds support for tiling with uncolored Patterns; implements converting ImageType 4 images to their PDF 1.3 counterpart; starts to do the same for ImageType 3. This code is "in progress" and likely to have problems for a while. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@308 a1074d23-0009-0410-80fe-cf8c14f379e6
* Implements additional distiller parameters: PreserveHalftoneInfo,L Peter Deutsch2000-04-111-78/+50
| | | | | | | | | | | | PreserveOverprintSetting, TransferFunctionInfo (except for Apply vs. Remove), UCRandBGInfo. Splits off graphics state management into separate files. Implements the remaining graphics state parameters (halftone, transfer function, black generation, undercolor removal, halftone phase, smoothness, overprint, stroke adjustment) ****** EXCEPT FOR IMAGES ******. In anticipation of handling more general colors, renames pdf_set_color as pdf_set_pure_color, and adds pdf_set_drawing_color. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@303 a1074d23-0009-0410-80fe-cf8c14f379e6
* Substantially enhances the Cos object machinery. Interface: Adds a few moreL Peter Deutsch2000-03-241-9/+8
| | | | | | | | | | | | | | | | | procedures, including a procedure to create a stream that writes directly into a Cos stream object, procedures for putting more kinds of values into arrays and dictionaries, and a param_list interface. Changes Cos objects to store a reference to the PDF device, and removes the device argument from all Cos procedures other than object creation. Replaces the Boolean is_object member of Cos values by a value_type enum: clients must now use COS_VALUE_IS_OBJECT() to test whether a value is an object reference. To reduce allocator overhead, makes the Cos procedures that take C strings no longer copy the string. Records whether each Cos object has been written into the output, so that in the future (but not in this batch of changes) resource definitions can be copied at the end of each page. Implementation: Moves more of the implementation of Cos objects to the .c file. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@200 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: The computation for testing whether a tiled pattern could beL Peter Deutsch2000-03-201-1/+12
| | | | | | | represented in line, and whether it exceeded Acrobat Reader's size limit, was wrong, causing some patterns not to be represented as Patterns. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@168 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: The pointer enumeration procedure for pdf_image_enum was wrong,L Peter Deutsch2000-03-201-2/+2
| | | | | | | possibly producing a mangled pointer and a memory access error if a garbage collection occured while writing an image in a PDF file. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@167 a1074d23-0009-0410-80fe-cf8c14f379e6
* Adds parsing for the remaining Acrobat Distiller 4 parameters. ImplementsL Peter Deutsch2000-03-201-10/+15
| | | | | | | | | | | | | | | the LockDistillerParams, xxxDownsampleThreshold, xxxImageDict, and xxxACSImageDict distiller parameters. Implements DCTEncode as an xxxImageFilter option (it used to cause a crash). Makes the AutoFilterxxxImages distiller parameters select JPEG encoding (with ACSDict) if the image has 8 bits per component and is not Indexed, and LZW/Flate otherwise: this still isn't right, but it's closer. Implementation changes: Changes the implementation of distiller parameter dictionaries from stream states to parameter lists; changes the test for masks in psdf_setup_image_filters, and changes the image argument from gs_image_t to gs_pixel_image_t. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@166 a1074d23-0009-0410-80fe-cf8c14f379e6
* Adds the ability to set the ProcessColorModel of the pdfwrite device toL Peter Deutsch2000-03-161-15/+37
| | | | | | | | | | | /DeviceGray, /DeviceRGB, or /DeviceCMYK. This affects the color space used for fill, stroke, text, and imagemask, and for images that (for whatever reason) can't be written in their specified color space. Note that this is a short-term fix: pdfwrite should output colors in the color space in which they were specified. However, a proper fix will require more significant architectural changes. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@79 a1074d23-0009-0410-80fe-cf8c14f379e6
* Fix: In-line images emitted an extra 'q' (gsave), causing the CTM to becomeL Peter Deutsch2000-03-101-1/+1
| | | | | | | incorrect, entries to pile up on the dictionary stack, and an invalidrestore error to occur at the end of the page. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@17 a1074d23-0009-0410-80fe-cf8c14f379e6
* Populate repository with gs 6.0 files.ghostscript-6.0L Peter Deutsch2000-03-091-3/+15
| | | | git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2 a1074d23-0009-0410-80fe-cf8c14f379e6
* Update to Aladdin 6.0 - Files with changes other than license block.Ray Johnston2000-02-151-73/+206
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1088 06663e23-700e-0410-b217-a244a6096597
* Imports Aladdin's 596.Henry Stiles1999-12-121-64/+112
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1040 06663e23-700e-0410-b217-a244a6096597
* This is the first gs593 integration it is *NOT* a release. NormallyHenry Stiles1999-10-031-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | each file is checked in with an associated log entry, in order to check in all of the code simultaneously we batch all of the file name's modified and change descriptions here (Note: Aladdin code changes are documented in gs/doc/News.htm) - pcstate.h - removes show enumeration from pcl state. - pctop.c, pxtop.c - gs_grestore_no_wraparound()'s is now gs_grestore_only(). - pxgstate.c - ENUM_RETURN_CONST_STRING_PTR() now takes a gs string argument instead of the string's data as it did previously. - plmain.c - - The library no longer initializes io devices. Adds gs_iodev_init() to main() procedure. Also, gs_c_param_list_rewrite() is renamed to gs_c_param_list_write_more(). - pcltop.mak - adds pipe.dev for operating system pipe support. - pctext.c, pglabel.c, pxfont.c, plfont.c - extensive modifications to support the text api (gstext.h) - use gs_text_enum_t instead of gs_show_enum. - removes enumeration allocation, this is now done by the text "begin" functions. - update "next_char" procs and "encode char" procs to take a glyph argument and the character argument is now passed by value (pcl nor xl make use of the glyph argument). - char_path_n_init() replaced with gs_charpath_begin(). - gs_show_n_init() replaced with gs_show_begin(). - gs_show_next() is now handled by gs_process_text(). - gs_release_text() added. - gs_xyshow_n_init() replace with gs_xyshow_begin(). Passing of x and y coordinates modified to support the new interface. Unfortunately, we need to transform the coordinates into the space of the font scaling matrix, that is the current ctm for xl when the the text is processed. This differs from postscript which appears to have the regular user->device matrix in the graphics state during processing. - (plfont.c) - gs_notify_init() is now part of the pfont initialization procedure, related TODO: cut over to gs_font_alloc() and gs_font_base_alloc(). - all gs files - removes uninitialized rcs identifiers. KNOWN PROBLEMS: occassional pxl and pcl crashes in gdev_mem_set_line_ptrs() when running in color due to null base (data) pointer. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@985 06663e23-700e-0410-b217-a244a6096597
* initial gs5.84 checkin with pcl and xl compiling.Henry Stiles1999-05-241-110/+229
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@857 06663e23-700e-0410-b217-a244a6096597
* performance enhancements from 5.6[12]Henry Stiles1998-11-031-8/+19
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@504 06663e23-700e-0410-b217-a244a6096597
* gs5.38Henry Stiles1998-09-041-7/+8
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@396 06663e23-700e-0410-b217-a244a6096597
* filters out the id string.Henry Stiles1998-08-221-1/+1
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@321 06663e23-700e-0410-b217-a244a6096597
* gs 5.34 checkin.Henry Stiles1998-08-191-3/+2
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@318 06663e23-700e-0410-b217-a244a6096597
* This commit was generated by cvs2svn to compensate for changes in r279,Henry Stiles1998-08-081-196/+235
| | | | | | which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@280 06663e23-700e-0410-b217-a244a6096597
* This commit was generated by cvs2svn to compensate for changes in r257,Henry Stiles1998-07-281-787/+820
| | | | | | which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@258 06663e23-700e-0410-b217-a244a6096597
* Initial revisionHenry Stiles1998-07-261-0/+1023
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@246 06663e23-700e-0410-b217-a244a6096597