__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
% Copyright (C) 2001-2023 Artifex Software, Inc.
% 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.
%
% Refer to licensing information at http://www.artifex.com or contact
% Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
% CA 94129, USA, for further information.
% Convert a PostScript file to an EPSI file, adding the Preview Image.
% If the file is already EPSF, then skip the creation of an EPSF, and
% only add the preview. A warning is issued if the %%Pages: comment
% indicates that there is more than a single page in the input file.
% Expected invocation:
% gs -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile=out.epsi --permit-file-read=in.ps -- ps2epsi.ps in.ps
% Usually this will be invoked by the ps2epsi script (or .bat or .cmd versions)
false % no errors from initial param check
% NOOUTERSAVE is needed for the SAVE to not remove the tempfile (if one was needed)
vmstatus pop pop 0 gt { (Error: missing -dNOOUTERSAVE option) = pop true } if
% NODISPLAY may not be strictly needed, but we don't want to open the default device
/NODISPLAY where { pop } { (Error: missing -dNODISPLAY option) = pop true } ifelse
% LastPage is needed if we are using eps2write on a PostScript (or PDF) file that has multiple pages.
/LastPage where { pop } { (Error: missing -dLastPage option) = pop true } ifelse
% OutputFile is needed so that it gets on the permit-file-writing list
/OutputFile where { pop } { (Error: missing -sOutputFile option) = pop true } ifelse
.shellarguments not count 3 lt or count -1 roll or
{
(usage: gs -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile=out.epsi --permit-file-read=in.eps -- ps2epsi.ps in.ps) =
quit
} {
dup /InputFile exch def
(r) file /I exch def
} ifelse
/O OutputFile (w) file def
/S 65535 string def
/R { I S readline not { (Error: Unexpected end of file.) = quit } if } bind def
/WL { O exch writestring O (\n) writestring } bind def % Write with linefeed
/TName null def
/EPSFheader (%!PS-Adobe-3.0 EPSF-3.0) def
% Read the header to check if this file was EPSF
R
dup EPSFheader ne {
% InputFile was not EPSF
pop % discard the first line of the InputFile
% run the file through eps2write (into a tempfile) to make an EPSF
(_ps2epsi) (w+) .tempfile closefile /TName exch def
/SAVE save def
<< /OutputDevice /eps2write /OutputFile TName >> setpagedevice
InputFile run
SAVE restore
/I TName (r) file def
R
} if
WL % Write the first line (either from InputFile or the tempfile
% From the "5002 Encapsulated PostScript File Format Specification Version 3.0 1 May 1992"
% The preview section must appear after the header comment section, but
% before the document prologue definitions. That is, it should immediately
% follow the %%EndComments: line in the EPS file.
{ % loop until we see the %%EndComments line, writing those lines to output
R
dup (%%EndComments) anchorsearch exch pop { % discard the match or extra copy of the string
pop exit % found it
} if
% Check the %%Pages: comment to issue a warning if there is more than one page.
dup (%%Pages:) anchorsearch exch pop { % discard the match or extra copy of the string
cvi 1 gt {
(Warning: EPSI files can only have 1 page, Only the first page will be in the preview.) =
} if
} if
% Collect the BoundingBox data that will be used when generating the preview
dup (%%BoundingBox:) anchorsearch exch pop { % discard the match or extra copy of the string
mark
exch token not { (Error: invalid BoundingBox parameters) = quit } if
exch token not { (Error: invalid BoundingBox parameters) = quit } if
exch token not { (Error: invalid BoundingBox parameters) = quit } if
exch token not { (Error: invalid BoundingBox parameters) = quit } if
exch pop ]
/BBox exch def
% Preview dimensions
/PWidth BBox dup 2 get exch 0 get sub def
/PHeight BBox dup 3 get exch 1 get sub def
} if
WL % send to output file with linefeed.
} loop
WL % send to output file with linefeed.
% If the InputFile already has a preview, skip past it
R
dup (%%BeginPreview) anchorsearch exch pop { % discard the match or extra copy of the string
pop
% Read lines until after the %%EndPreview
{
R
(%%EndPreview) anchorsearch exch pop { % discard the match or extra copy of the string
pop pop exit % found it
} if
} loop
% Get the next line for use after the generated preview
R
}
if
/LineAfterEndComments exch def
//null (w+) .tempfile
closefile % will be opened by bit device
/Pname exch def
(bit) selectdevice
<<
/GrayValues 256 % Gray, not monochrome
/OutputFile Pname
/TextAlphaBits 4
/GraphicsAlphaBits 4
/LastPage 1 % TBD: does this work?
/.IgnoreNumCopies true
/Install { BBox 0 get neg BBox 1 get neg translate { 1.0 exch sub } settransfer } % EPSI 00 is white
/HWResolution [ 72. 72. ]
/PageSize [ PWidth PHeight ]
>> setpagedevice
InputFile run
/P Pname (r) file def % Preview data file
/SP PWidth string def % One string per image line
% Write the preview
O (%%BeginPreview: ) writestring
O PWidth write==only O ( ) writestring
O PHeight write==only O ( 8 ) writestring
O PHeight PWidth 39 add 40 idiv mul write== % 40 bytes per line
O flushfile
0 1 PHeight 1 sub {
pop
P SP readstring pop
0 40 PWidth {
O (% ) writestring % 82 bytes on each line, plus EOL
SP exch 40 PWidth 2 index sub .min getinterval
O exch writehexstring
O (\n) writestring
} for
pop
} for
(%%EndPreview) WL
% Write the line that followed the %%EndComments
LineAfterEndComments WL
% Copy the remainder of the inputfile
{
I S readstring exch O exch writestring not { exit } if
} loop
% If we created a tempfile, delete it
TName null ne { TName deletefile } if
quit
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| PDFA_def.ps | File | 2.98 KB | 0644 |
|
| PDFX_def.ps | File | 3.77 KB | 0644 |
|
| PM760p.upp | File | 1.13 KB | 0644 |
|
| PM760pl.upp | File | 1.1 KB | 0644 |
|
| PM820p.upp | File | 1.12 KB | 0644 |
|
| PM820pl.upp | File | 1.09 KB | 0644 |
|
| Stc670p.upp | File | 1.13 KB | 0644 |
|
| Stc670pl.upp | File | 1.1 KB | 0644 |
|
| Stc680p.upp | File | 1.11 KB | 0644 |
|
| Stc680pl.upp | File | 1.09 KB | 0644 |
|
| Stc740p.upp | File | 1.01 KB | 0644 |
|
| Stc740pl.upp | File | 1.09 KB | 0644 |
|
| Stc760p.upp | File | 1.11 KB | 0644 |
|
| Stc760pl.upp | File | 1.09 KB | 0644 |
|
| Stc777p.upp | File | 1.11 KB | 0644 |
|
| Stc777pl.upp | File | 1.09 KB | 0644 |
|
| Stp720p.upp | File | 1.13 KB | 0644 |
|
| Stp720pl.upp | File | 1.09 KB | 0644 |
|
| Stp870p.upp | File | 1.11 KB | 0644 |
|
| Stp870pl.upp | File | 1.09 KB | 0644 |
|
| acctest.ps | File | 4.17 KB | 0644 |
|
| align.ps | File | 2.09 KB | 0644 |
|
| bj8.rpd | File | 639 B | 0644 |
|
| bj8gc12f.upp | File | 1.5 KB | 0644 |
|
| bj8hg12f.upp | File | 1.5 KB | 0644 |
|
| bj8oh06n.upp | File | 1.48 KB | 0644 |
|
| bj8pa06n.upp | File | 1.49 KB | 0644 |
|
| bj8pp12f.upp | File | 1.51 KB | 0644 |
|
| bj8ts06n.upp | File | 1.49 KB | 0644 |
|
| bjc6000a1.upp | File | 1.62 KB | 0644 |
|
| bjc6000b1.upp | File | 1.62 KB | 0644 |
|
| bjc610a0.upp | File | 1.49 KB | 0644 |
|
| bjc610a1.upp | File | 1.48 KB | 0644 |
|
| bjc610a2.upp | File | 1.48 KB | 0644 |
|
| bjc610a3.upp | File | 1.49 KB | 0644 |
|
| bjc610a4.upp | File | 1.49 KB | 0644 |
|
| bjc610a5.upp | File | 1.48 KB | 0644 |
|
| bjc610a6.upp | File | 1.48 KB | 0644 |
|
| bjc610a7.upp | File | 1.48 KB | 0644 |
|
| bjc610a8.upp | File | 1.49 KB | 0644 |
|
| bjc610b1.upp | File | 1.48 KB | 0644 |
|
| bjc610b2.upp | File | 1.48 KB | 0644 |
|
| bjc610b3.upp | File | 1.49 KB | 0644 |
|
| bjc610b4.upp | File | 1.49 KB | 0644 |
|
| bjc610b6.upp | File | 1.48 KB | 0644 |
|
| bjc610b7.upp | File | 1.49 KB | 0644 |
|
| bjc610b8.upp | File | 1.49 KB | 0644 |
|
| caption.ps | File | 1.7 KB | 0644 |
|
| cbjc600.ppd | File | 10.89 KB | 0644 |
|
| cbjc800.ppd | File | 11.22 KB | 0644 |
|
| cdj550.upp | File | 1.65 KB | 0644 |
|
| cdj690.upp | File | 1.95 KB | 0644 |
|
| cdj690ec.upp | File | 2.01 KB | 0644 |
|
| cid2code.ps | File | 4.37 KB | 0644 |
|
| dnj750c.upp | File | 2.74 KB | 0644 |
|
| dnj750m.upp | File | 1.93 KB | 0644 |
|
| docie.ps | File | 7.31 KB | 0644 |
|
| font2pcl.ps | File | 18.1 KB | 0644 |
|
| ghostpdf.ppd | File | 25.04 KB | 0644 |
|
| gs_ce_e.ps | File | 2.15 KB | 0644 |
|
| gs_css_e.ps | File | 4.81 KB | 0644 |
|
| gs_il2_e.ps | File | 2.55 KB | 0644 |
|
| gs_kanji.ps | File | 3.9 KB | 0644 |
|
| gs_ksb_e.ps | File | 3.06 KB | 0644 |
|
| gs_l.xbm | File | 1.9 KB | 0644 |
|
| gs_l.xpm | File | 2.69 KB | 0644 |
|
| gs_l_m.xbm | File | 1.91 KB | 0644 |
|
| gs_lgo_e.ps | File | 2.65 KB | 0644 |
|
| gs_lgx_e.ps | File | 1.71 KB | 0644 |
|
| gs_m.xbm | File | 945 B | 0644 |
|
| gs_m.xpm | File | 1.4 KB | 0644 |
|
| gs_m_m.xbm | File | 955 B | 0644 |
|
| gs_s.xbm | File | 594 B | 0644 |
|
| gs_s.xpm | File | 957 B | 0644 |
|
| gs_s_m.xbm | File | 604 B | 0644 |
|
| gs_t.xbm | File | 345 B | 0644 |
|
| gs_t.xpm | File | 605 B | 0644 |
|
| gs_t_m.xbm | File | 355 B | 0644 |
|
| gs_wl1_e.ps | File | 2.42 KB | 0644 |
|
| gs_wl2_e.ps | File | 2.42 KB | 0644 |
|
| gs_wl5_e.ps | File | 2.44 KB | 0644 |
|
| gslp.ps | File | 21.78 KB | 0644 |
|
| gsnup.ps | File | 2.56 KB | 0644 |
|
| ht_ccsto.ps | File | 222.8 KB | 0644 |
|
| image-qa.ps | File | 71.32 KB | 0644 |
|
| jispaper.ps | File | 768 B | 0644 |
|
| landscap.ps | File | 1.43 KB | 0644 |
|
| lines.ps | File | 3.63 KB | 0644 |
|
| mkcidfm.ps | File | 21.78 KB | 0644 |
|
| necp2x.upp | File | 1.02 KB | 0644 |
|
| necp2x6.upp | File | 1.04 KB | 0644 |
|
| pdf2dsc.ps | File | 7.86 KB | 0644 |
|
| pdf_info.ps | File | 19.78 KB | 0644 |
|
| pf2afm.ps | File | 14.94 KB | 0644 |
|
| pfbtopfa.ps | File | 980 B | 0644 |
|
| ppath.ps | File | 1.76 KB | 0644 |
|
| pphs.ps | File | 6.67 KB | 0644 |
|
| prfont.ps | File | 7.03 KB | 0644 |
|
| printafm.ps | File | 4.78 KB | 0644 |
|
| ps2ai.ps | File | 21.77 KB | 0644 |
|
| ps2epsi.ps | File | 5.89 KB | 0644 |
|
| ras1.upp | File | 215 B | 0644 |
|
| ras24.upp | File | 219 B | 0644 |
|
| ras3.upp | File | 214 B | 0644 |
|
| ras32.upp | File | 196 B | 0644 |
|
| ras4.upp | File | 220 B | 0644 |
|
| ras8m.upp | File | 209 B | 0644 |
|
| rollconv.ps | File | 12.22 KB | 0644 |
|
| s400a1.upp | File | 1.42 KB | 0644 |
|
| s400b1.upp | File | 1.57 KB | 0644 |
|
| sharp.upp | File | 1.89 KB | 0644 |
|
| sipixa6.upp | File | 529 B | 0644 |
|
| st640ih.upp | File | 2.23 KB | 0644 |
|
| st640ihg.upp | File | 1.47 KB | 0644 |
|
| st640p.upp | File | 1.87 KB | 0644 |
|
| st640pg.upp | File | 1.11 KB | 0644 |
|
| st640pl.upp | File | 1.83 KB | 0644 |
|
| st640plg.upp | File | 1.08 KB | 0644 |
|
| stc.upp | File | 1.88 KB | 0644 |
|
| stc1520h.upp | File | 2.1 KB | 0644 |
|
| stc2.upp | File | 1.86 KB | 0644 |
|
| stc200_h.upp | File | 1.8 KB | 0644 |
|
| stc2_h.upp | File | 1.83 KB | 0644 |
|
| stc2s_h.upp | File | 2.22 KB | 0644 |
|
| stc300.upp | File | 2.09 KB | 0644 |
|
| stc300bl.upp | File | 1.31 KB | 0644 |
|
| stc300bm.upp | File | 1.4 KB | 0644 |
|
| stc500p.upp | File | 1.86 KB | 0644 |
|
| stc500ph.upp | File | 1.86 KB | 0644 |
|
| stc600ih.upp | File | 2.23 KB | 0644 |
|
| stc600p.upp | File | 1.12 KB | 0644 |
|
| stc600pl.upp | File | 1.09 KB | 0644 |
|
| stc640p.upp | File | 1.07 KB | 0644 |
|
| stc740ih.upp | File | 2.07 KB | 0644 |
|
| stc800ih.upp | File | 2.11 KB | 0644 |
|
| stc800p.upp | File | 1.09 KB | 0644 |
|
| stc800pl.upp | File | 1.07 KB | 0644 |
|
| stc_h.upp | File | 1.87 KB | 0644 |
|
| stc_l.upp | File | 734 B | 0644 |
|
| stcany.upp | File | 673 B | 0644 |
|
| stcany_h.upp | File | 681 B | 0644 |
|
| stcinfo.ps | File | 24.87 KB | 0644 |
|
| stcolor.ps | File | 4.9 KB | 0644 |
|
| stocht.ps | File | 2.42 KB | 0644 |
|
| traceimg.ps | File | 1.33 KB | 0644 |
|
| traceop.ps | File | 2.5 KB | 0644 |
|
| uninfo.ps | File | 5.83 KB | 0644 |
|
| viewcmyk.ps | File | 2.11 KB | 0644 |
|
| viewgif.ps | File | 5.3 KB | 0644 |
|
| viewjpeg.ps | File | 5.73 KB | 0644 |
|
| viewmiff.ps | File | 4.14 KB | 0644 |
|
| viewpbm.ps | File | 10.22 KB | 0644 |
|
| viewpcx.ps | File | 5.29 KB | 0644 |
|
| viewps2a.ps | File | 1.09 KB | 0644 |
|
| winmaps.ps | File | 3.5 KB | 0644 |
|
| zeroline.ps | File | 2.25 KB | 0644 |
|