Advertisement
Guest User

Untitled

a guest
Sep 21st, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                #define  \
  2.                         D(s)"<<"#s">>"
  3.                       #define  q(s)p(#s)
  4.                      #define S " endobj "
  5.                     #define Y "endstream"S
  6.                     #include     <stdio.h>
  7.                     #define  o(s) b[s]=_;\
  8.                      p("%u    0  obj",s);
  9. #define E for         (c=d;c  < 123;c++)
  10.   #define DANCE         "trailer   "D\
  11.     (/Root 3 0            R /Size %d)            "\nstartxref %u %%%%EOF\n*/"
  12.       #define              p(s, ...)             _+=printf(s,  ##__VA_ARGS__)
  13.        #define C         "<</Type/Page         /Parent %d %d R /Resources <<\
  14.        /ProcSet[       /PDF/Text]/Font       <</U"D(/Subtype/Type1/BaseFont\
  15.           /Courier) "  /T<</Subtype/Type3   /FontBBox[0 0 10 10]/FontMatrix[\
  16.           %f 0 0 %f 0 0]/FirstChar %d/LastChar %d/Encoding<</Differences[%d"
  17.             typedef int N;typedef char*Nyan;typedef char A;N a,b[64],d=65,_,v
  18.               [32]={84,0,64,282,90,74,330,85,93,173,167,176,80,208,81,13,7,87
  19.                 ,160,346,32,128,170,218,16,26}; Nyan w[]={"+*-(,&-&","+*,&-&"
  20.                   ,"+*.&/&","+*/*/+","+*())'('"  ,"+**&)&","+*(&'&","+*'*'+",
  21.                     "","+,./","+,-,./","+--,+*"  ,"","+,(/","+,),(/","+-),+*"
  22.                      ,"10 0 d0 ","8 7 2 2 re "   ,"+*+.'`'@'mi +/+/(mi"};Nyan
  23.                        nyan(Nyan _,N y,A n){
  24.                         N g=v[~-y%32];Nyan
  25.                          s=w[g>>n&3|n*2];
  26.                          for(a=0;*_=*s++;
  27.                          a++,_++,*_++=32)
  28.                          {*_+=*_-32?10:0;
  29.                          if(a%2&&*_/16==3
  30.                          ){if(g>>8)*_=105-*_;
  31.                         _++;*_++=32;*_=~-a&&a-13
  32.                         ?108:109;}}return n?n-9?nyan
  33.                        (_,y,n-2):_:nyan(_+=~y&' '?sprintf
  34.                       (_,17[w]):0,y,9);}N main(N c){A e[256];
  35.                      p("/*%%PDF-1.3%%*/")-2;q(#include<stdio.h>\n);
  36.                     q(#define o *_++&& *_-41\n#define);p(" endstream ");q
  37.                    (main(){for(;*_++;      *_-40?:putchar(o?*_:o?10:41));\n)
  38.                   ;q(#define  endobj          return 0;}\n);q(typedef int ET;/)
  39.                  ;q(*);o(1)*b=~(p(D                 (/Length 2 0 R)"stream\n"))
  40.                 ;for(p("BT 12 818"                    " Td/%c 12 Tf 12 TL%%%c/"
  41.                "static char*_=\""                       " \\\n",7[v],*v/2);c=
  42.               getchar(),~c;c-10?                         p("/%c 12 Tf(\\%o)"
  43.              "Tj",v[~-c%' '<25[                         v]&&!~-(~-c/'@')?0
  44.             :7],c):(p("()'")))                         ;p("%%\";\nET ");*
  45.            b-=~_;p(Y"/*");E{a                         =nyan(e+sprintf(e,
  46.           16[w]),c,6)-e;o(c-                         59)p(D(/Length %d)
  47.          "stream\n%s"Y,a,e)                         ;}o(2)p(" %u"S,*b);
  48.         o(3)p(D(/Pages 4 0                         R)S);o(4)p(D(/Count
  49.        1/MediaBox[0 0 595                         842]/Kids[5 0 R])S)
  50.       ;o(5)p(C,4,0,6e-2,                         6e-2f,d,122,d);E p(
  51.      "/%c",~-c/6+~14?c:                         d);q(]>>/CharProcs<<)
  52.     ;E if(~-c/6+~14)p(                           "/%c %d 0 R",c,c+~58);
  53.    for(q(>>/Widths[),                             c=59;--c;p(" 10"));a=p
  54.   ("]>>>>>>/Contents 1                              0 R>>"S);for(p("xref\
  55. 0 %d ",--d);c<d;p("%010u\
  56. %05d n  ",*(c+++b),NULL));
  57.   return!(p(DANCE,d,a));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement