[gs-cvs] gs/src
Igor Melichev
igor at ghostscript.com
Wed Jul 27 15:34:42 PDT 2005
Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv31506/gs/src
Modified Files:
gdevpdfd.c gdevpdti.c gxcpath.c gdevpdfb.h gdevpdfx.h gxpath.h
Log Message:
Fix : Maybe line breaks are broken by the last patch. Commit it again with right line breaks for sure.
Index: gdevpdfd.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfd.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- gdevpdfd.c 27 Jul 2005 22:09:37 -0000 1.65
+++ gdevpdfd.c 27 Jul 2005 22:34:40 -0000 1.66
@@ -1,1366 +1,1366 @@
- /* Copyright (C) 1997, 2000 Aladdin Enterprises. All rights reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
[...2701 lines suppressed...]
+ if (psmat)
+ stream_puts(pdev->strm, "Q\n");
+ return 0;
+ } else {
+ gx_fill_params params;
+ gx_path path;
+
+ params.rule = 1; /* Not important because the path is a rectange. */
+ params.adjust.x = params.adjust.y = 0;
+ params.flatness = pis->flatness;
+ params.fill_zero_width = false;
+ gx_path_init_local(&path, pis->memory);
+ gx_path_add_rectangle(&path, rect->p.x, rect->p.y, rect->q.x, rect->q.y);
+ code = gdev_pdf_fill_path(dev, pis, &path, ¶ms, pdcolor, pcpath);
+ gx_path_free(&path, "gdev_pdf_fill_rectangle_hl_color");
+ return code;
+
+ }
+}
+
Index: gdevpdti.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdti.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- gdevpdti.c 27 Jul 2005 22:09:37 -0000 1.48
+++ gdevpdti.c 27 Jul 2005 22:34:40 -0000 1.49
@@ -1,875 +1,875 @@
-/* Copyright (C) 2002 Aladdin Enterprises. All rights reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
[...1719 lines suppressed...]
+ return_error(gs_error_unregistered); /* Must not happen. */
+ list = (cos_dict_t *)v->contents.object;
+ if (list->cos_procs != &cos_dict_procs)
+ return_error(gs_error_unregistered); /* Must not happen. */
+ } else {
+ list = cos_dict_alloc(pdev, "pdf_add_resource");
+ if (list == NULL)
+ return_error(gs_error_VMerror);
+ code = cos_dict_put_c_key_object((cos_dict_t *)pcd, key, (cos_object_t *)list);
+ if (code < 0)
+ return code;
+ }
+ buf1[0] = '/';
+ strcpy(buf1 + 1, pres->rname);
+ return cos_dict_put_string(list, (const byte *)buf1, strlen(buf1),
+ (const byte *)buf, strlen(buf));
+ }
+ return 0;
+}
+
Index: gxcpath.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gxcpath.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- gxcpath.c 27 Jul 2005 22:09:37 -0000 1.15
+++ gxcpath.c 27 Jul 2005 22:34:40 -0000 1.16
@@ -1,1006 +1,1006 @@
-/* Copyright (C) 1991, 2000 Aladdin Enterprises. All rights reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
[...1981 lines suppressed...]
+ if (pcpath->path_valid)
+ gx_path_print(&pcpath->path);
+ else
+ dlputs(" (path not valid)\n");
+ dlprintf4(" inner_box=(%g,%g),(%g,%g)\n",
+ fixed2float(pcpath->inner_box.p.x),
+ fixed2float(pcpath->inner_box.p.y),
+ fixed2float(pcpath->inner_box.q.x),
+ fixed2float(pcpath->inner_box.q.y));
+ dlprintf4(" outer_box=(%g,%g),(%g,%g)",
+ fixed2float(pcpath->outer_box.p.x),
+ fixed2float(pcpath->outer_box.p.y),
+ fixed2float(pcpath->outer_box.q.x),
+ fixed2float(pcpath->outer_box.q.y));
+ dprintf2(" rule=%d list.refct=%ld\n",
+ pcpath->rule, pcpath->rect_list->rc.ref_count);
+ gx_clip_list_print(gx_cpath_list(pcpath));
+}
+
+#endif /* DEBUG */
Index: gdevpdfb.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfb.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gdevpdfb.h 27 Jul 2005 22:09:37 -0000 1.3
+++ gdevpdfb.h 27 Jul 2005 22:34:40 -0000 1.4
@@ -1,221 +1,221 @@
-/* Copyright (C) 2001 Aladdin Enterprises. All rights reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
- commercial licensing, go to http://www.artifex.com/licensing/ or
- contact Artifex Software, Inc., 101 Lucas Valley Road #110,
- San Rafael, CA 94903, U.S.A., +1(415)492-9861.
-*/
-
-/* $Id$ */
-/* pdfwrite, ps2write device body template. */
-
-/* This file is allowed to #include several times into a single .c file.
- The following macros to be defined in advance :
- PDF_DEVICE_NAME - a string like "pdfwrite".
- PDF_DEVICE_IDENT - an identifier like gs_pdfwrite_device.
- PDF_DEVICE_MaxInlineImageSize - a value of PDF_DEVICE_MaxInlineImageSize.
- PDF_FOR_OPDFREAD - an integer 0 (false) or 1 (true).
- */
-
-
-const gx_device_pdf PDF_DEVICE_IDENT =
-{std_device_dci_type_body(gx_device_pdf, 0, PDF_DEVICE_NAME,
- &st_device_pdfwrite,
- DEFAULT_WIDTH_10THS * X_DPI / 10,
- DEFAULT_HEIGHT_10THS * Y_DPI / 10,
- X_DPI, Y_DPI,
- 3, 24, 255, 255, 256, 256),
- {pdf_open,
- gx_upright_get_initial_matrix,
- NULL, /* sync_output */
- pdf_output_page,
- pdf_close,
- gx_default_rgb_map_rgb_color,
- gx_default_rgb_map_color_rgb,
- gdev_pdf_fill_rectangle,
- NULL, /* tile_rectangle */
- gdev_pdf_copy_mono,
- gdev_pdf_copy_color,
- NULL, /* draw_line */
- psdf_get_bits, /* get_bits */
- gdev_pdf_get_params,
- gdev_pdf_put_params,
- NULL, /* map_cmyk_color */
- NULL, /* get_xfont_procs */
- NULL, /* get_xfont_device */
- NULL, /* map_rgb_alpha_color */
- gx_page_device_get_page_device,
- NULL, /* get_alpha_bits */
- NULL, /* copy_alpha */
- NULL, /* get_band */
- NULL, /* copy_rop */
- gdev_pdf_fill_path,
- gdev_pdf_stroke_path,
- gdev_pdf_fill_mask,
- NULL, /* fill_trapezoid */
- NULL, /* fill_parallelogram */
- NULL, /* fill_triangle */
- NULL, /* draw_thin_line */
- NULL, /* begin_image */
- NULL, /* image_data */
- NULL, /* end_image */
- gdev_pdf_strip_tile_rectangle,
- NULL, /* strip_copy_rop */
- NULL, /* get_clipping_box */
- gdev_pdf_begin_typed_image,
- psdf_get_bits_rectangle, /* get_bits_rectangle */
- NULL, /* map_color_rgb_alpha */
- psdf_create_compositor, /* create_compositor */
- NULL, /* get_hardware_params */
- gdev_pdf_text_begin,
- NULL, /* finish_copydevice */
- NULL, /* begin_transparency_group */
- NULL, /* end_transparency_group */
- NULL, /* begin_transparency_mask */
- NULL, /* end_transparency_mask */
- NULL, /* discard_transparency_layer */
- NULL, /* get_color_mapping_procs */
- NULL, /* get_color_comp_index */
- NULL, /* encode_color */
- NULL, /* decode_color */
- gdev_pdf_pattern_manage, /* pattern_manage */
- gdev_pdf_fill_rectangle_hl_color, /* fill_rectangle_hl_color */
- gdev_pdf_include_color_space /* include_color_space */
- },
- psdf_initial_values(PSDF_VERSION_INITIAL, 0 /*false */ ), /* (!ASCII85EncodePages) */
- PDF_COMPATIBILITY_LEVEL_INITIAL, /* CompatibilityLevel */
- -1, /* EndPage */
- 1, /* StartPage */
- 1 /*true*/, /* Optimize */
- 0 /*false*/, /* ParseDSCCommentsForDocInfo */
- 1 /*true*/, /* ParseDSCComments */
- 0 /*false*/, /* EmitDSCWarnings */
- 0 /*false*/, /* CreateJobTicket */
- 0 /*false*/, /* PreserveEPSInfo */
- 1 /*true*/, /* AutoPositionEPSFiles */
- 1 /*true*/, /* PreserveCopyPage */
- 0 /*false*/, /* UsePrologue */
- 0, /* OffOptimizations */
- 1 /*true*/, /* ReAssignCharacters */
- 1 /*true*/, /* ReEncodeCharacters */
- 1, /* FirstObjectNumber */
- 1 /*true*/, /* CompressFonts */
- 0 /*false*/, /* PrintStatistics */
- PDF_FOR_OPDFREAD, /* ForOPDFRead */
- {0, 0}, /* OPDFReadProcsetPath */
- 0 /*false*/, /* ResourcesBeforeUsage */
- 1 /*true*/, /* HavePDFWidths */
- 0 /*false*/, /* HaveStrokeColor */
- 0 /*false*/, /* PatternImagemask */
- 12000, /* MaxClipPathSize */ /* HP LaserJet 1320 hangs with 14000. */
- max_long, /* MaxViewerMemorySize */
- 256000, /* MaxShadingBitmapSize */
- PDF_DEVICE_MaxInlineImageSize, /* MaxInlineImageSize */
- {0, 0}, /* OwnerPassword */
- {0, 0}, /* UserPassword */
- 0, /* KeyLength */
- -4, /* Permissions */
- 0, /* EncryptionR */
- {0}, /* EncryptionO */
- {0}, /* EncryptionU */
- {0}, /* EncryptionKey */
- 0, /* EncryptionV */
- true, /* EncryptMetadata */
- {0, 0}, /* NoEncrypt */
- 0 /*false*/, /* is_EPS */
- {-1, -1}, /* doc_dsc_info */
- {-1, -1}, /* page_dsc_info */
- 0 /*false*/, /* fill_overprint */
- 0 /*false*/, /* stroke_overprint */
- 0, /* overprint_mode */
- gs_no_id, /* halftone_id */
- {gs_no_id, gs_no_id, gs_no_id, gs_no_id}, /* transfer_ids */
- 0, /* transfer_not_identity */
- gs_no_id, /* black_generation_id */
- gs_no_id, /* undercolor_removal_id */
- pdf_compress_none, /* compression */
- pdf_compress_none, /* compression_at_page_start */
- {{0}}, /* xref */
- {{0}}, /* asides */
- {{0}}, /* streams */
- {{0}}, /* pictures */
- 0, /* next_id */
- 0, /* Catalog */
- 0, /* Info */
- 0, /* Pages */
- 0, /* outlines_id */
- 0, /* next_page */
- -1, /* max_referred_page */
- 0, /* contents_id */
- PDF_IN_NONE, /* context */
- 0, /* contents_length_id */
- 0, /* contents_pos */
- NoMarks, /* procsets */
- 0, /* text */
- {{0}}, /* text_rotation */
- 0, /* pages */
- 0, /* num_pages */
- 1, /* used_mask */
- {
- {
- {0}}}, /* resources */
- {0}, /* cs_Patterns */
- {0}, /* Identity_ToUnicode_CMaps */
- 0, /* last_resource */
- {
- {
- {0}}}, /* outline_levels */
- 0, /* outline_depth */
- 0, /* closed_outline_depth */
- 0, /* outlines_open */
- 0, /* articles */
- 0, /* Dests */
- {0}, /* fileID */
- 0, /* global_named_objects */
- 0, /* local_named_objects */
- 0, /* NI_stack */
- 0, /* Namespace_stack */
- 0, /* font_cache */
- {0, 0}, /* char_width */
- 0, /* clip_path */
- 0, /* PageLabels */
- -1, /* PageLabels_current_page */
- 0, /* PageLabels_current_label */
- 0, /* */
- { /* vgstack[2] */
- {0}, {0}
- },
- 0, /* vgstack_depth */
- 0, /* vgstack_bottom */
- {0}, /* vg_initial */
- false, /* vg_initial_set */
- 0, /* sbstack_size */
- 0, /* sbstack_depth */
- 0, /* sbstack */
- 0, /* substream_Resources */
- 1, /* pcm_color_info_index == DeviceRGB */
- false, /* skip_colors */
- false, /* AR4_save_bug */
- 0, /* font3 */
- 0, /* accumulating_substream_resource */
- {0,0,0,0,0,0,0,0,0}, /* charproc_ctm */
- 0, /* charproc_just_accumulated */
- 0, /* accumulating_a_global_object */
- 0, /* cgp */
- 0, /* substituted_pattern_count */
- 0, /* substituted_pattern_drop_page */
- 0, /* image_mask_id */
- {0,0,0,0,0,0}, /* gs_matrix converting_image_matrix */
- 0, /* image_mask_scale */
- {{0, 0}, {0, 0}}, /* charproc_bbox */
- false /* charproc_bbox_valid */
-};
-
+/* Copyright (C) 2001 Aladdin Enterprises. All rights reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ For more information about licensing, please refer to
+ http://www.ghostscript.com/licensing/. For information on
+ commercial licensing, go to http://www.artifex.com/licensing/ or
+ contact Artifex Software, Inc., 101 Lucas Valley Road #110,
+ San Rafael, CA 94903, U.S.A., +1(415)492-9861.
+*/
+
+/* $Id$ */
+/* pdfwrite, ps2write device body template. */
+
+/* This file is allowed to #include several times into a single .c file.
+ The following macros to be defined in advance :
+ PDF_DEVICE_NAME - a string like "pdfwrite".
+ PDF_DEVICE_IDENT - an identifier like gs_pdfwrite_device.
+ PDF_DEVICE_MaxInlineImageSize - a value of PDF_DEVICE_MaxInlineImageSize.
+ PDF_FOR_OPDFREAD - an integer 0 (false) or 1 (true).
+ */
+
+
+const gx_device_pdf PDF_DEVICE_IDENT =
+{std_device_dci_type_body(gx_device_pdf, 0, PDF_DEVICE_NAME,
+ &st_device_pdfwrite,
+ DEFAULT_WIDTH_10THS * X_DPI / 10,
+ DEFAULT_HEIGHT_10THS * Y_DPI / 10,
+ X_DPI, Y_DPI,
+ 3, 24, 255, 255, 256, 256),
+ {pdf_open,
+ gx_upright_get_initial_matrix,
+ NULL, /* sync_output */
+ pdf_output_page,
+ pdf_close,
+ gx_default_rgb_map_rgb_color,
+ gx_default_rgb_map_color_rgb,
+ gdev_pdf_fill_rectangle,
+ NULL, /* tile_rectangle */
+ gdev_pdf_copy_mono,
+ gdev_pdf_copy_color,
+ NULL, /* draw_line */
+ psdf_get_bits, /* get_bits */
+ gdev_pdf_get_params,
+ gdev_pdf_put_params,
+ NULL, /* map_cmyk_color */
+ NULL, /* get_xfont_procs */
+ NULL, /* get_xfont_device */
+ NULL, /* map_rgb_alpha_color */
+ gx_page_device_get_page_device,
+ NULL, /* get_alpha_bits */
+ NULL, /* copy_alpha */
+ NULL, /* get_band */
+ NULL, /* copy_rop */
+ gdev_pdf_fill_path,
+ gdev_pdf_stroke_path,
+ gdev_pdf_fill_mask,
+ NULL, /* fill_trapezoid */
+ NULL, /* fill_parallelogram */
+ NULL, /* fill_triangle */
+ NULL, /* draw_thin_line */
+ NULL, /* begin_image */
+ NULL, /* image_data */
+ NULL, /* end_image */
+ gdev_pdf_strip_tile_rectangle,
+ NULL, /* strip_copy_rop */
+ NULL, /* get_clipping_box */
+ gdev_pdf_begin_typed_image,
+ psdf_get_bits_rectangle, /* get_bits_rectangle */
+ NULL, /* map_color_rgb_alpha */
+ psdf_create_compositor, /* create_compositor */
+ NULL, /* get_hardware_params */
+ gdev_pdf_text_begin,
+ NULL, /* finish_copydevice */
+ NULL, /* begin_transparency_group */
+ NULL, /* end_transparency_group */
+ NULL, /* begin_transparency_mask */
+ NULL, /* end_transparency_mask */
+ NULL, /* discard_transparency_layer */
+ NULL, /* get_color_mapping_procs */
+ NULL, /* get_color_comp_index */
+ NULL, /* encode_color */
+ NULL, /* decode_color */
+ gdev_pdf_pattern_manage, /* pattern_manage */
+ gdev_pdf_fill_rectangle_hl_color, /* fill_rectangle_hl_color */
+ gdev_pdf_include_color_space /* include_color_space */
+ },
+ psdf_initial_values(PSDF_VERSION_INITIAL, 0 /*false */ ), /* (!ASCII85EncodePages) */
+ PDF_COMPATIBILITY_LEVEL_INITIAL, /* CompatibilityLevel */
+ -1, /* EndPage */
+ 1, /* StartPage */
+ 1 /*true*/, /* Optimize */
+ 0 /*false*/, /* ParseDSCCommentsForDocInfo */
+ 1 /*true*/, /* ParseDSCComments */
+ 0 /*false*/, /* EmitDSCWarnings */
+ 0 /*false*/, /* CreateJobTicket */
+ 0 /*false*/, /* PreserveEPSInfo */
+ 1 /*true*/, /* AutoPositionEPSFiles */
+ 1 /*true*/, /* PreserveCopyPage */
+ 0 /*false*/, /* UsePrologue */
+ 0, /* OffOptimizations */
+ 1 /*true*/, /* ReAssignCharacters */
+ 1 /*true*/, /* ReEncodeCharacters */
+ 1, /* FirstObjectNumber */
+ 1 /*true*/, /* CompressFonts */
+ 0 /*false*/, /* PrintStatistics */
+ PDF_FOR_OPDFREAD, /* ForOPDFRead */
+ {0, 0}, /* OPDFReadProcsetPath */
+ 0 /*false*/, /* ResourcesBeforeUsage */
+ 1 /*true*/, /* HavePDFWidths */
+ 0 /*false*/, /* HaveStrokeColor */
+ 0 /*false*/, /* PatternImagemask */
+ 12000, /* MaxClipPathSize */ /* HP LaserJet 1320 hangs with 14000. */
+ max_long, /* MaxViewerMemorySize */
+ 256000, /* MaxShadingBitmapSize */
+ PDF_DEVICE_MaxInlineImageSize, /* MaxInlineImageSize */
+ {0, 0}, /* OwnerPassword */
+ {0, 0}, /* UserPassword */
+ 0, /* KeyLength */
+ -4, /* Permissions */
+ 0, /* EncryptionR */
+ {0}, /* EncryptionO */
+ {0}, /* EncryptionU */
+ {0}, /* EncryptionKey */
+ 0, /* EncryptionV */
+ true, /* EncryptMetadata */
+ {0, 0}, /* NoEncrypt */
+ 0 /*false*/, /* is_EPS */
+ {-1, -1}, /* doc_dsc_info */
+ {-1, -1}, /* page_dsc_info */
+ 0 /*false*/, /* fill_overprint */
+ 0 /*false*/, /* stroke_overprint */
+ 0, /* overprint_mode */
+ gs_no_id, /* halftone_id */
+ {gs_no_id, gs_no_id, gs_no_id, gs_no_id}, /* transfer_ids */
+ 0, /* transfer_not_identity */
+ gs_no_id, /* black_generation_id */
+ gs_no_id, /* undercolor_removal_id */
+ pdf_compress_none, /* compression */
+ pdf_compress_none, /* compression_at_page_start */
+ {{0}}, /* xref */
+ {{0}}, /* asides */
+ {{0}}, /* streams */
+ {{0}}, /* pictures */
+ 0, /* next_id */
+ 0, /* Catalog */
+ 0, /* Info */
+ 0, /* Pages */
+ 0, /* outlines_id */
+ 0, /* next_page */
+ -1, /* max_referred_page */
+ 0, /* contents_id */
+ PDF_IN_NONE, /* context */
+ 0, /* contents_length_id */
+ 0, /* contents_pos */
+ NoMarks, /* procsets */
+ 0, /* text */
+ {{0}}, /* text_rotation */
+ 0, /* pages */
+ 0, /* num_pages */
+ 1, /* used_mask */
+ {
+ {
+ {0}}}, /* resources */
+ {0}, /* cs_Patterns */
+ {0}, /* Identity_ToUnicode_CMaps */
+ 0, /* last_resource */
+ {
+ {
+ {0}}}, /* outline_levels */
+ 0, /* outline_depth */
+ 0, /* closed_outline_depth */
+ 0, /* outlines_open */
+ 0, /* articles */
+ 0, /* Dests */
+ {0}, /* fileID */
+ 0, /* global_named_objects */
+ 0, /* local_named_objects */
+ 0, /* NI_stack */
+ 0, /* Namespace_stack */
+ 0, /* font_cache */
+ {0, 0}, /* char_width */
+ 0, /* clip_path */
+ 0, /* PageLabels */
+ -1, /* PageLabels_current_page */
+ 0, /* PageLabels_current_label */
+ 0, /* */
+ { /* vgstack[2] */
+ {0}, {0}
+ },
+ 0, /* vgstack_depth */
+ 0, /* vgstack_bottom */
+ {0}, /* vg_initial */
+ false, /* vg_initial_set */
+ 0, /* sbstack_size */
+ 0, /* sbstack_depth */
+ 0, /* sbstack */
+ 0, /* substream_Resources */
+ 1, /* pcm_color_info_index == DeviceRGB */
+ false, /* skip_colors */
+ false, /* AR4_save_bug */
+ 0, /* font3 */
+ 0, /* accumulating_substream_resource */
+ {0,0,0,0,0,0,0,0,0}, /* charproc_ctm */
+ 0, /* charproc_just_accumulated */
+ 0, /* accumulating_a_global_object */
+ 0, /* cgp */
+ 0, /* substituted_pattern_count */
+ 0, /* substituted_pattern_drop_page */
+ 0, /* image_mask_id */
+ {0,0,0,0,0,0}, /* gs_matrix converting_image_matrix */
+ 0, /* image_mask_scale */
+ {{0, 0}, {0, 0}}, /* charproc_bbox */
+ false /* charproc_bbox_valid */
+};
+
Index: gdevpdfx.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfx.h,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- gdevpdfx.h 27 Jul 2005 22:09:37 -0000 1.122
+++ gdevpdfx.h 27 Jul 2005 22:34:40 -0000 1.123
@@ -1,1202 +1,1202 @@
-/* Copyright (C) 1996, 2000, 2001 Aladdin Enterprises. All rights reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
[...2373 lines suppressed...]
+
+/* Enter the substream accumulation mode. */
+int pdf_enter_substream(gx_device_pdf *pdev, pdf_resource_type_t rtype,
+ gs_id id, pdf_resource_t **ppres, bool reserve_object_id, bool compress);
+
+/* Exit the substream accumulation mode. */
+int pdf_exit_substream(gx_device_pdf *pdev);
+/* Add procsets to substream Resources. */
+int pdf_add_procsets(cos_dict_t *pcd, pdf_procset_t procsets);
+/* Add a resource to substream Resources. */
+int pdf_add_resource(gx_device_pdf *pdev, cos_dict_t *pcd, const char *key, pdf_resource_t *pres);
+
+
+/* For gdevpdfu.c */
+
+int pdf_from_stream_to_text(gx_device_pdf *pdev);
+int pdf_from_string_to_text(gx_device_pdf *pdev);
+void pdf_close_text_contents(gx_device_pdf *pdev);
+
+#endif /* gdevpdfx_INCLUDED */
Index: gxpath.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/gxpath.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- gxpath.h 27 Jul 2005 22:09:37 -0000 1.14
+++ gxpath.h 27 Jul 2005 22:34:40 -0000 1.15
@@ -1,347 +1,347 @@
-/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
[...663 lines suppressed...]
+ gx_cpath_inner_box(const gx_clip_path *, gs_fixed_rect *),
+ gx_cpath_outer_box(const gx_clip_path *, gs_fixed_rect *),
+ gx_cpath_includes_rectangle(const gx_clip_path *, fixed, fixed,
+ fixed, fixed);
+const gs_fixed_rect *cpath_is_rectangle(const gx_clip_path * pcpath);
+
+/* Enumerate a clipping path. This interface does not copy the path. */
+/* However, it does write into the path's "visited" flags. */
+int gx_cpath_enum_init(gs_cpath_enum *, gx_clip_path *);
+int gx_cpath_enum_next(gs_cpath_enum *, gs_fixed_point[3]); /* 0 when done */
+
+segment_notes
+gx_cpath_enum_notes(const gs_cpath_enum *);
+
+#ifdef DEBUG
+void gx_cpath_print(const gx_clip_path *);
+#endif
+
+
+#endif /* gxpath_INCLUDED */
More information about the gs-cvs
mailing list