GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘ޝpß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Аè•m"сœn|@›U¶ÆÎž—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X ÓØ)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oа^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 104.21.83.152  /  Your IP : 216.73.216.243
Web Server : LiteSpeed
System : Linux premium229.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : akhalid ( 749)
PHP Version : 8.3.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/ghostscript/Resource/Init/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/ghostscript/Resource/Init/gs_ll3.ps
% Copyright (C) 2001-2019 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.,  1305 Grant Avenue - Suite 200, Novato,
% CA 94945, U.S.A., +1(415)492-9861, for further information.
%

% Initialization file for PostScript LanguageLevel 3 functions.
% This file must be loaded after gs_lev2.ps and gs_res.ps.
% These definitions go into ll3dict or various ProcSets.
% NOTE: the interpreter creates ll3dict.

ll3dict begin

% We need LanguageLevel 2 or higher in order to have setuserparams and
% defineresource.
languagelevel dup 2 .max .setlanguagelevel

% ------ Idiom recognition ------ %

/IdiomRecognition //false .definepsuserparam

% Modify `bind' to apply idiom recognition afterwards.
/.bindscratch 128 string def
% Note that since this definition of `bind' may get bound in,
% it has to function properly even at lower language levels,
% where IdiomRecognition may not be defined.
/.bind_ {		% <proc> .bind <proc'>
  //.bind currentuserparams /IdiomRecognition
  .knownget not { //false } if
  {
    //false
    /IdiomSet //.findcategory exec .Instances
    {
      exch pop                                    % pop the IdiomSet identifying key. Stack /proc /false [-dict- status size]
      0 get                                       % get resource instance, a dictionary. Stack : /proc false -dict-
      {
        exch pop                                  % pop the instance identifying key
                                                  % Stack: proc //false [template substitute]
        dup 1 get exch 0 get                      % Stack: proc //false substitute template
        3 index .eqproc {
                                                  % Stack: proc //false substitute
            3 -1 roll pop exch not                % Stack: substitute true
        } {
          pop                                     % Stack: proc //false
        } ifelse
      } forall
      dup {exit} if                               % Stack proc <bool>
    } forall

    not                                           % Not matched in global resources
    currentglobal not and                         % must not match local resources if currentglobal is true
    {
      //false
      .LocalInstances
      {
        exch pop                                  % pop IdiomSet identifying key. Stack /proc /false [-dict- status size]
        0 get                                     % get resource instance, a dictionary Stack : /proc false -dict-
        {
          exch pop                                % pop instance identifier key
                                                  % Stack: proc //false [template substitute]
          dup 1 get exch 0 get                    % Stack: proc //false substitute template
          3 index .eqproc {
                                                  % Stack: proc //false substitute
            2 index gcheck                        % Stack: proc //false substitute _global?_
            1 index gcheck not and                % Stack: proc //false substitute _global?_ _global?_
            {                                     % must not match if candidate in global VM and substitute in local
              pop                                 % Stack: proc //false
            } {
                                                  % Stack: proc //false substitute
              3 -1 roll pop exch not              % Stack: substitute true
            }ifelse
          } {
            pop                                   % Stack: proc //false
          } ifelse
        } forall
        dup {exit} if
      } forall
      pop                                         % Stack: proc/substitute
    } if
    end                                           % .findcategory makes the category dictionary the current dict, so we must pop it from dict stack
  } if
} def
/.bind /.bind_ load odef	% note that .bind_ will get bound
currentdict /.bindscratch .undef

DELAYBIND not {
% We can't just do
%   /bind /.bind load def
% because then /bind load == prints --.bind-- .
  /bind {//.bind_ exec} odef
} if
currentdict /.bind_ undef

/.readbytestring {	% <source> <bytestring> .readbytestring
                        %   <bytestring> <filled>
                % Note that since bytestrings don't implement getinterval,
                % if filled is false, there is no way to tell how much
                % was read.
  //true exch 0 1 2 index length 1 sub {
                % Stack: source true str index
    3 index read not { pop exch not exch exit } if
    3 copy put pop pop
  } for 3 -1 roll pop exch
} bind def

/.bigstring {	% <size> .bigstring <string|bytestring>
  count 1 lt { /.bigstring /stackunderflow signalerror } if
  dup type /integertype ne {
    /.bigstring /typecheck signalerror
  } if
  dup 65400 gt { .bytestring } { string } ifelse
} bind def

% ------ HalftoneTypes 6, 10, 16 and HalftoneMode ------ %

% This code depends on an internal HalftoneType 7 with the following keys:
%	Width, Height, Width2, Height2, TransferFunction:
%	  as for HalftoneType 16.
%	Thresholds: a string or bytestring holding the thresholds,
%	  (Width x Height + Width2 x Height2) x BitsPerSample / 8 bytes,
%	  as for HalftoneType 16 except that the samples may be either
%	  8 or 16 bits wide.
%	BitsPerSample: 8 or 16.

% Note that this HalftoneType never appears in halftone dictionaries given
% to sethalftone, only as a component in those given to .sethalftone5,
% so its numeric value can be chosen ad lib as long as it differs from the
% other values that are legal in component dictionaries for .sethalftone5
% (currently only 1 and 3).

/.makehalftone7 {	% <dict> <dict> <source> <Width> <Height>
                        %   (<Width2> <Height2> | null) <BPS> .makehalftone7
                        %   <setdict> <dict5> { .sethalftone5 }
  8 dict begin
  /HalftoneType 7 def
  /BitsPerSample exch def
  dup //null eq {
    pop 0
  } {
    /Height2 1 index def /Width2 2 index def mul
  } ifelse 3 1 roll
  /Height 1 index def
  /Width 2 index def
  mul add BitsPerSample 8 idiv mul //.bigstring exec
                % Stack: dict dict source str
  dup type /stringtype eq { readstring } { //.readbytestring exec} ifelse
  not { /sethalftone .systemvar /rangecheck signalerror exit } if
  readonly /Thresholds exch def
  /TransferFunction .knownget { /TransferFunction exch def } if
                % If the original Thresholds was a file, replace it with
                % a new one.
  dup /Thresholds get type /filetype eq {
    dup /Thresholds [ Thresholds ] cvx 0 () .subfiledecode put
  } if
  mark /HalftoneType 5 /Default currentdict end .dicttomark
  { .sethalftone5 }
} bind def

/.sethalftone6 {	% <dict> <dict> .sethalftone6 <setdict> <dict5>
                        %   { .sethalftone5 }
                        % Keys: Width, Height, Thresholds, T'Function
  dup /Thresholds get
  1 index /Width get 2 index /Height get
  //null 8 //.makehalftone7 exec
} bind def

/.sethalftone10 {	% <dict> <dict> .sethalftone10 <setdict> <dict5>
                        %   { .sethalftone5 }
                        % Keys: Xsquare, Ysquare, Thresholds, T'Function
                % Note that this is the only one of these three HalftoneTypes
                % that allows either a file or a string for Thresholds.
  dup /Thresholds get dup type /stringtype eq { 0 () .subfiledecode } if
  1 index /Xsquare get dup 3 index /Ysquare get dup
  8 //.makehalftone7 exec
} bind def

/.sethalftone16 {	% <dict> <dict> .sethalftone16 <setdict> <dict5>
                        %   { .sethalftone5 }
                        % Keys: Width, Height, Width2, Height2,
                        %   Thresholds, T'Function
  dup /Thresholds get
  1 index /Width get 2 index /Height get
  3 index /Width2 .knownget {  % 2-rectangle case
    4 index /Height2 get
  } {			% 1-rectangle case
    //null
  } ifelse 16 //.makehalftone7 exec
} bind def

.halftonetypes begin
  6 //.sethalftone6 def
  10 //.sethalftone10 def
  16 //.sethalftone16 def
end

% Redefine the halftone-setting operators to honor HalftoneMode.
/setcolorscreen {
  /HalftoneMode getuserparam 0 eq {
    //setcolorscreen
  } {
    12 { pop } repeat //.getdefaulthalftone exec
    { //sethalftone }
    { .setdefaulthalftone }
    ifelse
  } ifelse
} odef
/setscreen {
  /HalftoneMode getuserparam 0 eq {
    //setscreen
  } {
    pop pop pop //.getdefaulthalftone exec
    { //sethalftone }
    { .setdefaulthalftone }
    ifelse
  } ifelse
} odef
/sethalftone {
  /HalftoneMode getuserparam 0 eq {
    //sethalftone
  } {
    gsave //sethalftone grestore
    //.getdefaulthalftone exec
    { //sethalftone }
    { .setdefaulthalftone }
    ifelse
  } ifelse
} odef

% ------ ImageTypes 3 and 4 (masked images) ------ %

% Put the new data source in the requested dictionary.
% Copy the updated dictionary because it nay be used elsewhere.
% <dict> <data> <name> update_image3 <dict'>
/update_image3 {
  3 -1 roll dup length dict copy dup  % [data] /name <<image>> <<image>>
  2 index get                         % [data] /name <<image>> <<sub-image>>
  dup length dict copy dup            % [data] /name <<image>> <<sub-image>> <<sub-image>>
  /DataSource 6 -1 roll put           % /name <<image>> <<sub-image>>
  exch dup                            % /name <<sub-image>> <<image>> <<image>>
  4 2 roll                            % <<image>> <<image>> /name <<sub-image>>
  put                                 % <<image>>
} bind def

% Copy mask data source to a reusable stream
% <dict> <source> buffer_mask <dict> <file>
/buffer_mask {
  1 index /MaskDict get
  dup /Width get
  1 index /BitsPerComponent get mul 7 add 8 idiv
  exch /Height get mul () /SubFileDecode filter
  /ReusableStreamDecode filter
} bind def

% Data type vs. mask type decission table.
% All procedures have the signature:
% <image dict> <data DataSource> <mask DataSource> proc <image dict'>
/data_mask_dict mark
  /stringtype mark % data is a string
    /stringtype { pop pop } bind
    /arraytype { % convert data to proc, don't buffer mask
      pop
      dup type dup /arraytype eq exch /packedarraytype eq or {
        [ exch { 1 array astore cvx } forall ]
      } {
        1 array astore cvx
      } ifelse
      /DataDict //update_image3 exec
    } bind
    /packedarraytype 1 index
    /filetype { % convert data to file, don't buffer mask
      pop
      dup type dup /arraytype eq exch /packedarraytype eq or {
        [ exch { 1 array astore cvx 0 () /SubFileDecode filter } forall ]
      } {
        1 array astore cvx 0 () /SubFileDecode filter
      } ifelse
      /DataDict //update_image3 exec
    } bind
  .dicttomark readonly
  /arraytype mark  % data is a proc
    /stringtype { % convert mask to proc
      exch pop
      1 array astore cvx
      /MaskDict //update_image3 exec
    } bind
    /arraytype { % buffer mask in reusable stream and convert back to proc
      exch pop
      //buffer_mask exec
      500 string
      { readstring pop } aload pop
      4 packedarray cvx
      /MaskDict //update_image3 exec
    } bind
    /packedarraytype 1 index
    /filetype 1 index
  .dicttomark readonly
  /packedarraytype 1 index
  /filetype mark  % data is a file
    /stringtype { % convert mask to file
      exch pop
      1 array astore cvx 0 () /SubFileDecode filter
      /MaskDict //update_image3 exec
    } bind
    /arraytype { % buffer the mask and convert to file
      exch pop
      //buffer_mask exec
      /MaskDict //update_image3 exec
    } bind
    /packedarraytype 1 index
    /filetype {
      //systemdict /userdict get /PDFTopSave known {
        pop pop   % mask is already buffered by PDF interpreter
      } {
        exch pop  % buffer the mask
        //buffer_mask exec
        /MaskDict //update_image3 exec
      } ifelse
    } bind
  .dicttomark readonly
.dicttomark readonly def

.imagetypes
  dup 3 {
    dup /InterleaveType get 3 eq {
      % .image3 requires data sources of the image and mask to be of the
      % same type. Work around this restriction here.
      dup /DataDict get /DataSource get
      1 index /MaskDict get /DataSource get  % <<>> data mask
      dup type                               % <<>> data mask mask_type
      2 index
      4 index /DataDict get /MultipleDataSources .knownget {
        { 0 get } if
      } if
      type                                   % <<>> data mask mask_type data_type
      //data_mask_dict exch .knownget {
        exch .knownget {
          exec
        } {
          pop pop   % pass wrong type as is to .image3
        } ifelse
      } {
        pop pop pop % pass wrong type as is to .image3
      } ifelse
    } if
    .image3
  } bind put
  dup 4 /.image4 load put
% We also detect ImageType 103 here: it isn't worth making a separate file
% just for this.
  /.image3x where { pop dup 103 /.image3x load put } if
pop

currentdict /data_mask_dict undef
currentdict /update_image3 undef
currentdict /buffer_mask undef

% ------ Functions ------ %

% Define the FunctionType resource category.
/Generic /Category findresource dup maxlength 3 add dict .copydict begin
  /InstanceType /integertype def
/FunctionType currentdict end /Category defineresource pop

{0 2 3} { dup /FunctionType defineresource pop } forall

% ------ Smooth shading ------ %

% Define the ShadingType resource category.
/Generic /Category findresource dup maxlength 3 add dict .copydict begin
  /InstanceType /integertype def
/ShadingType currentdict end /Category defineresource pop

systemdict /.shadingtypes mark		% not ll3dict
  1 /.buildshading1 load
  2 /.buildshading2 load
  3 /.buildshading3 load
  4 /.buildshading4 load
  5 /.buildshading5 load
  6 /.buildshading6 load
  7 /.buildshading7 load
.dicttomark put

systemdict /.reuseparamdict mark
  /Intent 2
  /AsyncRead //false
  /CloseSource //true
.dicttomark readonly put
/.buildshading {	% <shadingdict> .buildshading <shading>
  dup rcheck not {
      % Adobe seems to access ColorSpace first and CET 12-14c checks this.
      /$error .systemvar /errorinfo [ /ColorSpace //null ] put
      /shfill .systemvar /invalidaccess signalerror
  } if
        % Unfortunately, we always need to make the DataSource reusable,
        % because if clipping is involved, even shfill may need to read
        % the source data multiple times.  If it weren't for this,
        % we would only need to create a reusable stream if the ultimate
        % source of the data is a procedure (since the library can't
        % suspend shading to do a procedure callout).
  dup /DataSource .knownget {
    dup type /filetype eq {
      //.reuseparamdict /ReusableStreamDecode filter
      % Copy the dictionary to replace the DataSource, but make sure the
      % copy is in the same VM as the original.
      .currentglobal 2 index gcheck .setglobal
                % Stack: shdict rsdfile saveglobal
      2 index dup length dict copy exch .setglobal
      dup /DataSource 4 -1 roll put exch pop
    } {
      pop
    } ifelse
  } if
        % The .buildshading operators use the current color space
        % for ColorSpace.
  dup /ShadingType .knownget not { % error handling for CET 12-14b conformance
     /$error .systemvar /errorinfo [ /ShadingType //null ] put
     /shfill .systemvar /undefined signalerror
  } if
  dup type /integertype ne {
     /$error .systemvar /errorinfo [ /ShadingType 4 index ] put
     /shfill .systemvar /typecheck signalerror
  } if
  //.shadingtypes 1 index .knownget not {
     /$error .systemvar /errorinfo [ /ShadingType 4 index ] put
     /shfill .systemvar /rangecheck signalerror
  } if
  exch pop 1 index /ColorSpace .knownget {
    { setcolorspace } stopped {
       /$error .systemvar /errorinfo [ /ColorSpace 4 index ] put
       /shfill .systemvar /$error .systemvar /errorname get signalerror
    } if
    exec
  } {
    /$error .systemvar /errorinfo [ /ColorSpace //null ] put
    /shfill .systemvar /undefined signalerror
  } ifelse
} bind def

/.buildshading_and_shfill {
  //.buildshading exec .shfill
} bind def

systemdict /.reuseparamdict undef

/.buildpattern2 {	% <template> <matrix> .buildpattern2
                        %   <template> <pattern>
        % We want to build the pattern without doing gsave/grestore,
        % since we want it to load the CIE caches.
  1 index /Shading get
  mark currentcolor currentcolorspace
  counttomark 4 add -3 roll mark 4 1 roll
        % Stack: -mark- ..color.. cspace -mark- template matrix shadingdict
  { //.buildshading exec} stopped {
    cleartomark setcolorspace setcolor pop stop
  } if
  .buildshadingpattern
  3 -1 roll pop counttomark 1 add 2 roll setcolorspace setcolor pop
} bind def

.patterntypes
  2 //.buildpattern2 put

/shfill {		% <shadingdict> shfill -
        % Currently, .shfill requires that the color space
        % in the pattern be the current color space.
        % Disable overprintmode for shfill
  { dup gsave 0 .setoverprintmode .buildshading_and_shfill } stopped
  grestore {
    /$error .systemvar /errorinfo 2 copy known {
      pop pop
    } {
      //null put  % CET 12-14c
    } ifelse
    stop
  } if
  pop
} odef

% Establish an initial smoothness value that matches Adobe RIPs.
0.02 setsmoothness

% ------ DeviceN color space ------ %
% gs_res.ps uses these entries in colorspacedict
% to populate the ColorSpaceFamily resource, so we need
% to add the supported spaces.
%
systemdict /colorspacedict get begin
/CIEBasedDEF [] def
/CIEBasedDEFG [] def
/DeviceN [] def
end

% ------ Miscellaneous ------ %

% Make the setoverprintmode and currentoverprintmode operators visible (3015)
% Because of the requirements of PDF, the .currentoverprintmode and
% .setoverprintmode operators have integer parameters.  Thus we need to
% convert the Postscript bool parameters to integers.
%
/setoverprintmode 		% bool setoverprint -
{
  { 1 } { 0 } ifelse		% convert bool to integer
  //.setoverprintmode
} odef

/currentoverprintmode 		% - currentoverprintmode bool
{
  //.currentoverprintmode
  0 ne				% convert integers to bool
} odef

% Define additional user and system parameters.
/HalftoneMode 0 .definepsuserparam
/MaxSuperScreen 1016 .definepsuserparam
% read-only, so use .forceput
pssystemparams  /MaxDisplayAndSourceList 160000 .forceput

% Define the IdiomSet resource category.
{ /IdiomSet } {
  /Generic /Category findresource dup maxlength 3 add dict .copydict begin
    /InstanceType /dicttype def
  currentdict end /Category defineresource pop
} forall

(*) {
  dup type /nametype eq not {
    cvn
  } if
  /IdiomSet findresource pop
} 256 string /IdiomSet resourceforall

/languagelevel 3 def
% When running in LanguageLevel 3 mode, this interpreter is supposed to be
% compatible with Adobe version 3010.
/version (3010) readonly def

.setlanguagelevel

% undefine things defined (or used) in this file and not referenced elsewhere
[
    /.buildpattern2
    /.buildshading
    /.buildshading1 /.buildshading2 /.buildshading3 /.buildshading4
    /.buildshading5 /.buildshading6 /.buildshading7 /.buildshadingpattern
    /.makehalftone7 /.sethalftone6 /.sethalftone10 /.sethalftone16
    /.readbytestring /.bigstring
]
dup {currentdict exch .forceundef} forall
{systemdict exch .forceundef} forall

end			% ll3dict

Youez - 2016 - github.com/yon3zu
LinuXploit