Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created November 21, 2011 14:37
Show Gist options
  • Save zeffii/1382787 to your computer and use it in GitHub Desktop.
Save zeffii/1382787 to your computer and use it in GitHub Desktop.
PostScript Example
%!PS-Adobe-3.0
%%Creator: cairo 1.10.2 (http://cairographics.org)
%%CreationDate: Sun Nov 20 23:46:08 2011
%%Pages: 1
%%BoundingBox: 0 0 757 126
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%DocumentMedia: 267x44mm 757 126 0 () ()
%%EndComments
%%BeginProlog
/languagelevel where
{ pop languagelevel } { 1 } ifelse
2 lt { /Helvetica findfont 12 scalefont setfont 50 500 moveto
(This print job requires a PostScript Language Level 2 printer.) show
showpage quit } if
/q { gsave } bind def
/Q { grestore } bind def
/cm { 6 array astore concat } bind def
/w { setlinewidth } bind def
/J { setlinecap } bind def
/j { setlinejoin } bind def
/M { setmiterlimit } bind def
/d { setdash } bind def
/m { moveto } bind def
/l { lineto } bind def
/c { curveto } bind def
/h { closepath } bind def
/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto
0 exch rlineto 0 rlineto closepath } bind def
/S { stroke } bind def
/f { fill } bind def
/f* { eofill } bind def
/n { newpath } bind def
/W { clip } bind def
/W* { eoclip } bind def
/BT { } bind def
/ET { } bind def
/pdfmark where { pop globaldict /?pdfmark /exec load put }
{ globaldict begin /?pdfmark /pop load def /pdfmark
/cleartomark load def end } ifelse
/BDC { mark 3 1 roll /BDC pdfmark } bind def
/EMC { mark /EMC pdfmark } bind def
/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def
/Tj { show currentpoint cairo_store_point } bind def
/TJ {
{
dup
type /stringtype eq
{ show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse
} forall
currentpoint cairo_store_point
} bind def
/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore
cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def
/Tf { pop /cairo_font exch def /cairo_font_matrix where
{ pop cairo_selectfont } if } bind def
/Td { matrix translate cairo_font_matrix matrix concatmatrix dup
/cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point
/cairo_font where { pop cairo_selectfont } if } bind def
/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def
cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def
/g { setgray } bind def
/rg { setrgbcolor } bind def
/d1 { setcachedevice } bind def
%%EndProlog
%%Page: 1 1
%%BeginPageSetup
%%PageMedia: 267x44mm
%%PageBoundingBox: 0 0 757 126
%%EndPageSetup
q 0 0 757 126 rectclip q
0 g
50.105 78.88 m 50.105 84.111 51.023 87.802 52.859 89.958 c 54.695
92.114 58.227 93.47 63.461 94.021 c 64.012 94.986 l 63.043 95.95 l
25.605 95.95 l 24.641 94.986 l 25.188 94.021 l 30.422 93.47 33.953
92.114 35.789 89.958 c 37.625 87.802 38.543 84.111 38.543 78.88 c
38.543 15.833 l 34.137 14.181 28.586 13.357 21.887 13.357 c 11.789
13.357 5.23 18.036 2.203 27.396 c 0 27.532 l 3.301 7.986 l 4.82 7.986 l
5 8.72 5.734 9.087 7.02 9.087 c 81.492 9.087 l 82.777 9.087 83.512 8.72
83.695 7.986 c 85.207 7.986 l 88.516 27.532 l 86.586 27.673 l 83.281
18.126 76.629 13.357 66.625 13.357 c 60.016 13.357 54.512 14.181 50.105
15.833 c h
50.105 78.88 m f
144.578 35.931 m 143.609 34.693 l 144.164 33.314 l 154.348 33.728 l
164.676 33.314 l 165.5 34.552 l 164.953 35.653 l 160.27 37.583 156.094
42.677 152.426 50.939 c 126.68 109.439 l 121.906 120.271 115.207
125.685 106.582 125.685 c 104.75 125.685 103.465 124.814 102.727
123.068 c 103.277 120.13 104.793 117.329 107.273 114.669 c 109.195
115.771 l 109.84 116.138 110.621 116.321 111.539 116.321 c 115.207
115.954 118.281 114.212 120.762 111.091 c 123.238 107.97 124.48 104.528
124.48 100.771 c 126.402 92.372 l 105.344 48.868 l 103.598 45.196
102.129 42.583 100.938 41.021 c 99.012 38.361 96.625 36.665 93.777
35.931 c 92.816 34.693 l 93.367 33.314 l 105.754 33.728 l 118.008
33.314 l 118.832 34.552 l 118.281 35.653 l 114.887 36.392 113.008
37.583 112.641 39.232 c 112.641 39.923 l 112.641 41.849 113.422 44.372
114.98 47.493 c 133.426 84.525 l 148.707 50.798 l 150.266 47.31 151.047
44.419 151.047 42.122 c 151.047 41.298 150.91 40.611 150.633 40.06 c
149.898 38.04 147.879 36.665 144.578 35.931 c h
144.578 35.931 m f
187.527 89.341 m 187.527 108.751 l 187.527 113.157 188.031 116.368
189.039 118.388 c 190.418 121.232 193.035 122.931 196.887 123.478 c
197.988 124.583 l 197.438 125.548 l 168.809 125.548 l 168.254 124.583 l
168.941 123.478 l 172.52 122.931 175 121.189 176.379 118.247 c 177.293
116.232 177.75 113.064 177.75 108.751 c 177.75 49.833 l 177.75 43.958
176.148 40.747 172.938 40.2 c 170.598 39.782 l 170.043 38.411 l 170.457
37.861 l 185.738 32.489 l 186.977 32.489 l 186.977 46.943 l 193.676
36.943 202.117 31.939 212.305 31.939 c 220.473 31.939 227.266 35.036
232.68 41.232 c 238.094 47.423 240.801 54.65 240.801 62.911 c 240.801
72.271 237.566 80.325 231.094 87.071 c 224.625 93.818 216.711 97.189
207.352 97.189 c 199.367 97.189 192.758 94.575 187.527 89.341 c h
187.527 73.786 m 188.352 79.478 190.695 84.157 194.547 87.829 c 198.402
91.497 203.125 93.333 208.727 93.333 c 215.703 93.333 221.07 90.443
224.832 84.661 c 228.043 79.798 229.648 73.696 229.652 66.353 c 229.648
58.462 227.953 51.853 224.559 46.528 c 220.613 40.29 214.922 37.169
207.484 37.169 c 201.98 37.169 197.438 39.142 193.859 43.091 c 190.738
46.486 188.629 51.071 187.527 56.857 c h
187.527 73.786 m f
322.438 64.837 m 322.438 74.384 319.066 82.228 312.32 88.376 c 305.574
94.528 297.383 97.603 287.746 97.603 c 278.109 97.603 269.988 94.571
263.379 88.513 c 256.5 82.275 253.059 74.384 253.059 64.837 c 253.059
55.294 256.5 47.4 263.379 41.161 c 269.988 35.013 278.109 31.939
287.746 31.939 c 297.383 31.939 305.574 35.036 312.32 41.232 c 319.066
47.423 322.438 55.294 322.438 64.837 c h
310.734 64.837 m 310.645 57.036 308.625 50.337 304.68 44.739 c 300.273
38.407 294.309 35.243 286.785 35.243 c 279.164 35.243 273.43 38.407
269.578 44.739 c 266.273 50.064 264.664 56.763 264.758 64.837 c 264.852
72.732 266.871 79.431 270.816 84.935 c 275.219 91.177 281.184 94.298
288.707 94.298 c 296.324 94.298 302.063 91.134 305.914 84.802 c 309.219
79.478 310.824 72.821 310.734 64.837 c h
310.734 64.837 m f
364.793 34.415 m 359.102 34.415 354.746 36.091 351.715 39.443 c 348.688
42.79 347.172 47.357 347.172 53.138 c 347.172 59.196 348.688 64.06
351.715 67.728 c 355.02 71.767 359.609 73.786 365.48 73.786 c 376.863
73.786 382.555 67.364 382.555 54.517 c 382.555 48.552 381.039 43.708
378.012 39.989 c 374.98 36.275 370.574 34.415 364.793 34.415 c h
336.711 54.517 m 336.711 47.818 339.695 42.263 345.66 37.861 c 351.074
33.821 357.266 31.802 364.242 31.802 c 370.758 31.802 376.129 32.903
380.348 35.103 c 388.148 31.525 395.125 29.736 401.273 29.736 c 401.914
29.736 402.234 30.376 402.234 31.661 c 402.234 33.868 402.008 35.704
401.551 37.169 c 400.723 39.782 l 399.254 39.782 396.891 39.255 393.633
38.2 c 390.375 37.146 387.965 36.618 386.406 36.618 c 385.488 36.618
384.477 36.528 383.375 36.341 c 382.688 36.341 l 383.238 36.618 383.973
37.126 384.895 37.861 c 390.309 41.896 393.012 47.31 393.016 54.099 c
393.012 61.165 389.938 66.763 383.789 70.896 c 378.469 74.568 372.137
76.403 364.793 76.403 c 362.039 76.403 359.699 76.173 357.773 75.716 c
351.805 77.548 348.824 79.337 348.824 81.083 c 348.824 84.571 356.074
86.45 370.578 86.724 c 379.293 86.911 385.809 87.689 390.125 89.064 c
397.648 91.45 401.41 95.95 401.41 102.56 c 401.41 110.54 396.641
116.642 387.094 120.864 c 379.75 124.079 371.492 125.685 362.316
125.685 c 355.25 125.685 349.098 124.677 343.871 122.657 c 336.527
119.81 332.855 115.361 332.855 109.302 c 332.855 103.614 339.004 98.2
351.301 93.06 c 350.203 92.876 348.918 92.552 347.449 92.095 c 342.035
90.532 339.324 88.009 339.324 84.525 c 339.324 81.954 341.207 79.708
344.973 77.778 c 347.633 76.403 350.246 75.302 352.82 74.474 c 342.082
70.345 336.711 63.693 336.711 54.517 c h
358.871 94.161 m 353.824 95.536 350.203 96.911 348 98.29 c 344.145
100.677 342.215 103.751 342.215 107.513 c 342.215 112.47 345.246
116.278 351.301 118.939 c 356.074 121.048 361.215 122.107 366.719
122.107 c 372.684 122.107 378.238 120.911 383.375 118.525 c 389.801
115.497 393.012 111.321 393.016 105.997 c 393.012 98.747 384.25 94.939
366.719 94.571 c 363.047 94.482 360.434 94.341 358.871 94.161 c h
358.871 94.161 m f
427.266 79.153 m 427.266 83.833 427.906 87.185 429.191 89.204 c 430.754
91.864 433.688 93.423 438 93.884 c 438.551 93.884 l 439.379 94.986 l
438.691 95.95 l 408.82 95.95 l 408.273 94.986 l 408.82 93.884 l 412.492
93.333 414.969 91.591 416.254 88.653 c 417.078 86.728 417.492 83.56
417.492 79.153 c 417.492 49.146 l 417.492 43.271 415.797 40.06 412.402
39.509 c 409.922 39.099 l 409.371 37.72 l 409.785 37.169 l 425.48
31.802 l 426.852 31.802 l 426.852 49.146 l 432.727 37.677 439.289
31.939 446.539 31.939 c 453.145 34.001 l 449.289 44.739 l 445.578
43.638 l 444.473 42.54 443.371 41.989 442.27 41.989 c 441.168 41.622
440.113 41.439 439.105 41.439 c 435.984 41.439 433.551 43.134 431.809
46.528 c 429.516 50.935 428 56.212 427.266 62.361 c h
427.266 79.153 m f
500.559 75.302 m 500.559 63.466 l 500.008 63.739 496.289 64.747 489.41
66.489 c 476.469 67.591 469.996 72.505 469.996 81.22 c 469.996 84.982
471.305 88.009 473.922 90.306 c 476.535 92.599 479.77 93.743 483.625
93.743 c 488.398 93.743 492.414 91.888 495.672 88.169 c 498.93 84.454
500.559 80.165 500.559 75.302 c h
501.246 85.486 m 495.832 93.747 488.719 97.88 479.91 97.88 c 474.219
97.88 469.539 96.685 465.867 94.298 c 461.461 91.454 459.258 87.368
459.258 82.044 c 459.258 71.673 468.117 65.618 485.828 63.876 c 490.145
63.415 495.051 62.271 500.559 60.435 c 500.559 52.728 l 500.559 41.345
495.465 35.653 485.281 35.653 c 481.148 35.653 477.477 36.708 474.266
38.821 c 470.504 41.208 468.621 44.372 468.621 48.321 c 467.246 47.677
465.914 47.036 464.629 46.392 c 462.793 45.474 461.738 44.56 461.465
43.638 c 462.289 40.888 465.961 38.181 472.477 35.521 c 478.441 33.134
483.121 31.939 486.52 31.939 c 493.676 31.939 499.363 33.548 503.586
36.759 c 508.359 40.333 510.746 45.564 510.746 52.45 c 510.746 80.943 l
510.746 88.564 512.215 92.372 515.148 92.372 c 516.617 92.372 517.859
91.958 518.867 91.13 c 519.277 92.509 l 513.039 95.353 508.863 96.775
506.75 96.775 c 503.723 96.775 501.891 93.15 501.246 85.9 c h
501.246 85.486 m f
543.5 89.341 m 543.5 108.751 l 543.5 113.157 544.004 116.368 545.012
118.388 c 546.391 121.232 549.008 122.931 552.859 123.478 c 553.961
124.583 l 553.41 125.548 l 524.781 125.548 l 524.227 124.583 l 524.914
123.478 l 528.496 122.931 530.973 121.189 532.352 118.247 c 533.266
116.232 533.727 113.064 533.727 108.751 c 533.727 49.833 l 533.727
43.958 532.121 40.747 528.91 40.2 c 526.57 39.782 l 526.016 38.411 l
526.434 37.861 l 541.711 32.489 l 542.949 32.489 l 542.949 46.943 l
549.648 36.943 558.094 31.939 568.277 31.939 c 576.449 31.939 583.238
35.036 588.652 41.232 c 594.066 47.423 596.773 54.65 596.773 62.911 c
596.773 72.271 593.539 80.325 587.07 87.071 c 580.602 93.818 572.684
97.189 563.324 97.189 c 555.34 97.189 548.734 94.575 543.5 89.341 c h
543.5 73.786 m 544.328 79.478 546.668 84.157 550.52 87.829 c 554.375
91.497 559.102 93.333 564.699 93.333 c 571.676 93.333 577.043 90.443
580.805 84.661 c 584.02 79.798 585.625 73.696 585.625 66.353 c 585.625
58.462 583.926 51.853 580.531 46.528 c 576.586 40.29 570.895 37.169
563.461 37.169 c 557.953 37.169 553.41 39.142 549.832 43.091 c 546.711
46.486 544.602 51.071 543.5 56.857 c h
543.5 73.786 m f
671.254 79.153 m 671.066 88.06 673.684 92.966 679.098 93.884 c 680.063
94.986 l 679.512 95.95 l 653.078 95.95 l 652.527 94.986 l 653.078
93.884 l 656.57 93.333 658.863 91.544 659.965 88.513 c 660.605 86.771
660.973 83.653 661.066 79.153 c 661.477 56.989 l 661.75 43.224 656.84
36.341 646.75 36.341 c 641.793 36.341 637.16 38.153 632.844 41.782 c
628.531 45.407 625.914 49.696 625 54.65 c 625 79.153 l 625 83.193
625.32 86.224 625.961 88.243 c 626.969 91.454 629.035 93.333 632.16
93.884 c 632.98 94.986 l 632.57 95.95 l 607.375 95.95 l 606.828 94.986
l 607.375 93.884 l 610.867 93.333 613.16 91.544 614.262 88.513 c
614.902 86.681 615.223 83.56 615.223 79.153 c 615.223 16.794 l 615.223
13.767 615.039 11.704 614.676 10.603 c 614.031 8.673 612.563 7.525
610.266 7.157 c 607.793 6.747 l 607.242 5.368 l 607.652 4.818 l 623.762
0.001 l 625 0.001 l 625 45.982 l 627.934 41.849 631.672 38.478 636.215
35.861 c 640.758 33.247 645.461 31.939 650.328 31.939 c 657.301 31.939
662.625 34.075 666.297 38.341 c 669.969 42.607 671.758 48.275 671.664
55.341 c h
671.254 79.153 m f
735.805 35.931 m 734.84 34.693 l 735.395 33.314 l 745.578 33.728 l
755.902 33.314 l 756.73 34.552 l 756.18 35.653 l 751.496 37.583 747.32
42.677 743.652 50.939 c 717.91 109.439 l 713.137 120.271 706.438
125.685 697.813 125.685 c 695.977 125.685 694.691 124.814 693.953
123.068 c 694.508 120.13 696.02 117.329 698.5 114.669 c 700.426 115.771
l 701.066 116.138 701.852 116.321 702.77 116.321 c 706.438 115.954
709.512 114.212 711.988 111.091 c 714.469 107.97 715.707 104.528
715.707 100.771 c 717.633 92.372 l 696.57 48.868 l 694.828 45.196
693.359 42.583 692.164 41.021 c 690.238 38.361 687.852 36.665 685.008
35.931 c 684.043 34.693 l 684.594 33.314 l 696.984 33.728 l 709.238
33.314 l 710.063 34.552 l 709.512 35.653 l 706.117 36.392 704.234
37.583 703.867 39.232 c 703.867 39.923 l 703.867 41.849 704.648 44.372
706.207 47.493 c 724.656 84.525 l 739.934 50.798 l 741.496 47.31
742.273 44.419 742.273 42.122 c 742.273 41.298 742.137 40.611 741.863
40.06 c 741.125 38.04 739.105 36.665 735.805 35.931 c h
735.805 35.931 m f
Q Q
showpage
%%Trailer
%%EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment