summaryrefslogtreecommitdiff
path: root/gs/src/gdevpdfx.h
diff options
context:
space:
mode:
authorIgor Melichev <igor.melichev@artifex.com>2005-06-07 18:33:57 +0000
committerIgor Melichev <igor.melichev@artifex.com>2005-06-07 18:33:57 +0000
commit01a94dca532f042c7818f29ffa7c7c5d6327c216 (patch)
tree655538412c26fb59dae1806bae0a8a7fa3ad11fa /gs/src/gdevpdfx.h
parenta1aaa59a509ac14d8be35c109b9ccf0abae1c43a (diff)
downloadghostpdl-01a94dca532f042c7818f29ffa7c7c5d6327c216.tar.gz
ps2write : Implementinmg the ps2write device.
DETAILS : 1. The ps2write device is a clone of the pdfwrite device. We define a new file gdevpdfb.h and move the device static data to there as a device template (gdevpdf.c, gdevpdfb.h). 2. pdf_open_document now writes out the copy opdfread.ps and few encodings (gdevpdfu.c). 3. Propagated a return code from pdf_open_document. 4. A new device parameter OPDFReadProcsetPath handles a list of files to be copied in the step (2) (gdevpdfx.h, gdevpdf.c, gdevpdfu.c, gdevpdfp.c). 5. pdf_close writes out the 0x04 character when working in the ForOPDFRead mode and OPDFReadProcsetPath is set. 6. A number of makefiles are changed to include the ps2write device. 7. In lib\gs_pdfwr.ps added the handling of distiller parameters with ps2write device. 8. In lib\gs_pdfwr.ps added an automatic setting of the OPDFReadProcsetPath device parameter for ps2write. 9. Added a new script ps2ps2.bat, which invokes Ghostscript with the ps2write devices. The old script ps2write.bat still invokes the Ghostscript with the pdfwrite device in the ForOPDFREad mode. It helps to debug ps2write with generating a PDF file in the ForOPDFRead mode. 10. In the documentation added references to the new files lib/ps2ps2.bat, src/gdevpdfb.h . (Develop.htm, Psfiles.htm). EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5942 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gdevpdfx.h')
-rw-r--r--gs/src/gdevpdfx.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gs/src/gdevpdfx.h b/gs/src/gdevpdfx.h
index b8289c745..f32b6c598 100644
--- a/gs/src/gdevpdfx.h
+++ b/gs/src/gdevpdfx.h
@@ -418,6 +418,7 @@ struct gx_device_pdf_s {
bool CompressFonts;
bool PrintStatistics;
bool ForOPDFRead; /* PS2WRITE only. */
+ gs_string OPDFReadProcsetPath; /* PS2WRITE only. */
bool ResourcesBeforeUsage; /* PS2WRITE only. */
bool HavePDFWidths; /* PS2WRITE only. */
bool HaveStrokeColor; /* PS2WRITE only. */
@@ -640,8 +641,8 @@ struct gx_device_pdf_s {
m(31,accumulating_substream_resource)
#define gx_device_pdf_num_ptrs 32
#define gx_device_pdf_do_strings(m)\
- m(0, OwnerPassword) m(1, UserPassword) m(2, NoEncrypt)
-#define gx_device_pdf_num_strings 3
+ m(0, OPDFReadProcsetPath) m(1, OwnerPassword) m(2, UserPassword) m(3, NoEncrypt)
+#define gx_device_pdf_num_strings 4
#define st_device_pdf_max_ptrs\
(st_device_psdf_max_ptrs + gx_device_pdf_num_ptrs +\
gx_device_pdf_num_strings +\
@@ -695,7 +696,7 @@ void pdf_reset_text(gx_device_pdf *pdev);
/* ------ Document ------ */
/* Open the document if necessary. */
-void pdf_open_document(gx_device_pdf * pdev);
+int pdf_open_document(gx_device_pdf * pdev);
/* ------ Objects ------ */