summaryrefslogtreecommitdiff
path: root/gs/src/gdevpdfu.c
AgeCommit message (Collapse)AuthorFilesLines
2002-03-19Removes a last vestige of PDF 1.1 support (which was otherwise removed someL Peter Deutsch1-32/+5
time ago) from pdfwrite. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2330 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-02-21Reverts to marking files with the single Id cvs tag instead of theRalph Giles1-1/+1
RCSfile and Revision pair. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2241 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-02-21Update banner to the new format common to all releases (AFPL, GPL andRay Johnston1-13/+11
Artifex Software's commercial release). References file LICENSE. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2234 a1074d23-0009-0410-80fe-cf8c14f379e6
2002-01-29Adds a CompressFonts parameter to pdfwrite to control whether embeddedL Peter Deutsch1-5/+12
fonts are compressed, to help debugging. The default value is true. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2057 a1074d23-0009-0410-80fe-cf8c14f379e6
2001-12-09Updates pdfwrite to match Acrobat Distiller 5 more closely: addsL Peter Deutsch1-8/+4
OffOptimizations and PreserveEPSInfo parameters; adds /ebook value for PDFSETTINGS; changes some of the DCTEncode parameter values for auto-filtered images; adds CreationDate and ModDate in Info dictionary; always subsets non Type 1 fonts. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1946 a1074d23-0009-0410-80fe-cf8c14f379e6
2001-07-02Fix: Some poorly designed PDF tools couldn't handle the fact that theL Peter Deutsch1-3/+9
Contents stream of each page was not surrounded by q/Q. (The PDF spec does not require this.) Fixes SourceForge bug #231390. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1569 a1074d23-0009-0410-80fe-cf8c14f379e6
2001-04-01Change: The Ghostscript 'pwrite' function name conflicted with theRaph Levien1-24/+24
standard pwrite function defined in unistd.h on several systems. To avoid confusion with the standard function change the name to stream_write. Also change 'pputc' to 'stream_putc' and 'pputs' to 'stream_puts'. Fixes SourceForge bug #410772. Fix by Ray Johnston. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1347 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-12-16Fix: Resource usage wasn't tracked separately for Form XObjects (BP/EPL Peter Deutsch1-10/+103
pdfmarks), producing non-compliant files that caused errors from Acrobat. Fixes SourceForge bug # 102146. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1073 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-12-08Extensively revises and updates the pdfwrite text handling code to supportL Peter Deutsch1-27/+54
processing and embedding of all types of fonts (except for Type 3 and CIDFontType 1, which are defined by PostScript procedures), and all variants of 'show' (including kshow and glyphshow). In particular, Type 0 fonts with all FMapTypes (including CMap-based), CIDFontType 0 and 2 fonts, and both standard and non-standard CMaps are supported. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1030 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-09-19Updates the license notices to reflect the name change from AladdinL Peter Deutsch1-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
2000-09-12Replaces "Distiller" with our program name in the Info Producer string.L Peter Deutsch1-0/+9
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@713 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-07-11Fix: The word and character spacing values were not tracked correctly whenL Peter Deutsch1-3/+1
mixing text and graphics, sometimes producing horizontally misplaced text. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@590 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-04-21Fix: The recent optimization for using the ' command in PDF output lostL Peter Deutsch1-0/+2
track of the leading value between blocks of text, causing lines in later blocks to overprint each other. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@360 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-04-18Tweaks the PDF writer to use the ' command for positioning text whenL Peter Deutsch1-1/+2
possible (small optimization only). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@333 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-04-11Implements additional distiller parameters: PreserveHalftoneInfo,L Peter Deutsch1-64/+0
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
2000-04-11Factors out code for writing functions and for adding filter-related entriesL Peter Deutsch1-106/+402
to a stream dictionary; implements the DefaultRenderingIntent distiller parameter. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@300 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-04-03Implements the AutoRotatePages distiller parameter.L Peter Deutsch1-0/+7
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@237 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-03-24Substantially enhances the Cos object machinery. Interface: Adds a few moreL Peter Deutsch1-2/+2
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
2000-03-21Fix: When ProcessColorModel=/DeviceCMYK, if the first object on a page orL Peter Deutsch1-2/+2
after changing the clipping path was white, the PDF writer would write it as black. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@185 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-03-16Adds the ability to set the ProcessColorModel of the pdfwrite device toL Peter Deutsch1-3/+4
/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
2000-03-09Populate repository with gs 6.0 files.ghostscript-6.0L Peter Deutsch1-3/+15
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2 a1074d23-0009-0410-80fe-cf8c14f379e6
2000-02-15Update to Aladdin 6.0 - Files with changes other than license block.Ray Johnston1-9/+28
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1088 06663e23-700e-0410-b217-a244a6096597
1999-12-12Imports Aladdin's 596.Henry Stiles1-43/+39
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1040 06663e23-700e-0410-b217-a244a6096597
1999-10-03This is the first gs593 integration it is *NOT* a release. NormallyHenry Stiles1-0/+692
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