package.lisp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. ;; This software is Copyright (c) cage
  2. ;; cage grants you the rights to distribute
  3. ;; and use this software as governed by the terms
  4. ;; of the Lisp Lesser GNU Public License
  5. ;; (http://opensource.franz.com/preamble.html),
  6. ;; known as the LLGPL
  7. (defpackage #:cl-pslib
  8. (:use :cl :cffi :cl-colors)
  9. (:nicknames :ps)
  10. (:export
  11. :page-size
  12. :width
  13. :height
  14. :+a0-paper-width+
  15. :+a0-paper-height+
  16. :+a1-paper-width+
  17. :+a1-paper-height+
  18. :+a2-paper-width+
  19. :+a2-paper-height+
  20. :+a3-paper-width+
  21. :+a3-paper-height+
  22. :+a4-paper-width+
  23. :+a4-paper-height+
  24. :+a5-paper-width+
  25. :+a5-paper-height+
  26. :+a6-paper-width+
  27. :+a6-paper-height+
  28. :+a7-paper-width+
  29. :+a7-paper-height+
  30. :+a8-paper-width+
  31. :+a8-paper-height+
  32. :+a9-paper-width+
  33. :+a9-paper-height+
  34. :+a10-paper-width+
  35. :+a10-paper-height+
  36. :+b0-paper-width+
  37. :+b0-paper-height+
  38. :+b1-paper-width+
  39. :+b1-paper-height+
  40. :+b2-paper-width+
  41. :+b2-paper-height+
  42. :+b3-paper-width+
  43. :+b3-paper-height+
  44. :+b4-paper-width+
  45. :+b4-paper-height+
  46. :+b5-paper-width+
  47. :+b5-paper-height+
  48. :+b6-paper-width+
  49. :+b6-paper-height+
  50. :+b7-paper-width+
  51. :+b7-paper-height+
  52. :+b8-paper-width+
  53. :+b8-paper-height+
  54. :+b9-paper-width+
  55. :+b9-paper-height+
  56. :+b10-paper-width+
  57. :+b10-paper-height+
  58. :+c0-paper-width+
  59. :+c0-paper-height+
  60. :+c1-paper-width+
  61. :+c1-paper-height+
  62. :+c2-paper-width+
  63. :+c2-paper-height+
  64. :+c3-paper-width+
  65. :+c3-paper-height+
  66. :+c4-paper-width+
  67. :+c4-paper-height+
  68. :+c5-paper-width+
  69. :+c5-paper-height+
  70. :+c6-paper-width+
  71. :+c6-paper-height+
  72. :+c7-paper-width+
  73. :+c7-paper-height+
  74. :+c8-paper-width+
  75. :+c8-paper-height+
  76. :+c9-paper-width+
  77. :+c9-paper-height+
  78. :+c10-paper-width+
  79. :+c10-paper-height+
  80. :+a0-page-size+
  81. :+a1-page-size+
  82. :+a2-page-size+
  83. :+a3-page-size+
  84. :+a4-page-size+
  85. :+a5-page-size+
  86. :+a6-page-size+
  87. :+a7-page-size+
  88. :+a8-page-size+
  89. :+a9-page-size+
  90. :+a10-page-size+
  91. :page-size-equal-p
  92. :millimiter->centimeter
  93. :millimiter->inch
  94. :millimiter->point
  95. :centimeter->millimeter
  96. :centimeter->inch
  97. :centimeter->point
  98. :inch->millimeter
  99. :inch->centimeter
  100. :inch->point
  101. :point->millimeter
  102. :point->centimeter
  103. :point->inch
  104. :aabb->rect
  105. :rect->aabb
  106. :inside-aabb-p
  107. :line-eqn
  108. :recursive-bezier
  109. :2d-vector-map
  110. :2d-vector-list-map
  111. :2d-vector-list-scale
  112. :2d-vector-list-translate
  113. :2d-vector-list-rotate
  114. :2d-vector-sum
  115. :2d-vector-diff
  116. :2d-vector-dot-product
  117. :2d-vector-cross-product
  118. :2d-vector-scale
  119. :2d-vector-translate
  120. :2d-vector-magn
  121. :2d-vector-normalize
  122. :2d-vector-angle
  123. :2d-vector-rotate
  124. :xy->pair
  125. :pair->interleaved-xy
  126. :xy->interleaved-xy
  127. :interleaved-xy->pair
  128. :pslib_errornum<0
  129. :*callback-string*
  130. :write-to-string
  131. :text-error
  132. :spotcolor-error
  133. :bookmark-error
  134. :image-load-error
  135. :shading-pattern-error
  136. :not-implemented-error
  137. :null-reference
  138. :out-of-bounds
  139. :+true+
  140. :+false+
  141. :+local-link-fitpage+
  142. :+local-link-fitwidth+
  143. :+local-link-fitheight+
  144. :+local-link-fitbbox+
  145. :+pdf-link-fitpage+
  146. :+pdf-link-fitwidth+
  147. :+pdf-link-fitheight+
  148. :+pdf-link-fitbbox+
  149. :+pattern-paint-type1+
  150. :+pattern-paint-type2+
  151. :+find-font-encoding-builtin+
  152. :+value-key-fontsize+
  153. :+value-key-font+
  154. :+value-key-imagewidth+
  155. :+value-key-imageheight+
  156. :+value-key-capheight+
  157. :+value-key-ascender+
  158. :+value-key-descender+
  159. :+value-key-italicangle+
  160. :+value-key-underlineposition+
  161. :+value-key-underlinethickness+
  162. :+value-key-textx+
  163. :+value-key-texty+
  164. :+value-key-textrendering+
  165. :+value-key-wordspacing+
  166. :+value-key-major+
  167. :+value-key-minor+
  168. :+value-key-subminor+
  169. :+value-key-revision+
  170. :+value-key-charspacing+
  171. :+value-key-hyphenminchars+
  172. :+value-key-separationcolor+
  173. :+value-key-textrise+
  174. :+value-key-leading+
  175. :+value-key-linebreak+
  176. :+value-key-hyphenminchars+
  177. :+value-key-parindent+
  178. :+value-key-numindentlines+
  179. :+value-key-parskip+
  180. :+value-key-parindentskip+
  181. :+value-key-linenumberspace+
  182. :+value-key-linenumbersep+
  183. :+value-key-boxheight+
  184. :+parameter-key-fontafm+
  185. :+parameter-key-fontoutline+
  186. :+parameter-key-fontprotusion+
  187. :+parameter-key-fontencoding+
  188. :+parameter-key-rightmarginkerning+
  189. :+parameter-key-leftmarginkerning+
  190. :+parameter-key-rightmarginkerning+
  191. :+parameter-key-leftmarginkerning+
  192. :+parameter-key-searchpath+
  193. :+parameter-key-underline+
  194. :+parameter-key-overline+
  195. :+parameter-key-strikeout+
  196. :+parameter-key-warning+
  197. :+parameter-key-hyphendict+
  198. :+parameter-key-inputencoding+
  199. :+parameter-key-linenumbermode+
  200. :+parameter-key-ligaturedisolvechar+
  201. :+parameter-key-imagereuse+
  202. :+parameter-key-imageencoding+
  203. :+image-file-mask+
  204. :+image-file-masked+
  205. :+image-file-type-png+
  206. :+image-file-type-jpeg+
  207. :+image-file-type-gif+
  208. :+image-file-type-tiff+
  209. :+image-file-type-bmp+
  210. :+image-file-type-eps+
  211. :+image-type-raw+
  212. :+image-type-eps+
  213. :+image-encoding-type-hex+
  214. :+shading-radial+
  215. :+shading-axial+
  216. :+shading-opt-extend0+
  217. :+shading-opt-extend0+
  218. :+shading-opt-r0+
  219. :+shading-opt-r1+
  220. :+ps-linecap-butt+
  221. :+ps-linecap-round+
  222. :+link-border-style-solid+
  223. :+link-border-style-dashed+
  224. :+ps-comment-key-keywords+
  225. :+ps-comment-key-subject+
  226. :+ps-comment-key-title+
  227. :+ps-comment-key-creator+
  228. :+ps-comment-key-author+
  229. :+ps-comment-key-boundingbox+
  230. :+ps-comment-key-orientation+
  231. :+color-type-fill+
  232. :+color-type-stroke+
  233. :+color-type-fillstroke+
  234. :+color-space-gray+
  235. :+color-space-spot+
  236. :+color-space-rgb+
  237. :+color-space-cmyk+
  238. :+color-space-pattern+
  239. :+line-number-mode-box+
  240. :+line-number-mode-paragraph+
  241. :+boxed-text-feature-blind+
  242. :+boxed-text-h-mode-justify+
  243. :+boxed-text-h-mode-fulljustify+
  244. :+boxed-text-h-mode-right+
  245. :+boxed-text-h-mode-left+
  246. :+boxed-text-h-mode-center+
  247. :+boxed-text-value-boxheight+
  248. :*conversion-metrics*
  249. :psdoc
  250. :open-doc
  251. :close-doc
  252. :shutdown
  253. :begin-page
  254. :end-page
  255. :moveto
  256. :closepath
  257. :lineto
  258. :rect
  259. :circle
  260. :arc
  261. :arcn
  262. :curveto
  263. :stroke
  264. :fill-path
  265. :fill-stroke
  266. :add-bookmark
  267. :add-kerning
  268. :add-launchlink
  269. :add-ligature
  270. :add-locallink
  271. :add-note
  272. :add-pdflink
  273. :add-weblink
  274. :begin-font
  275. :begin-glyph
  276. :begin-pattern
  277. :begin-template
  278. :clip
  279. :close-image
  280. :close-path
  281. :close-path-stroke
  282. :continue-text
  283. :continue-text2
  284. :create-gstate
  285. :delete
  286. :end-font
  287. :end-glyph
  288. :end-page
  289. :end-pattern
  290. :end-template
  291. :findfont
  292. :setfont
  293. :get-majorversion
  294. :get-minorversion
  295. :get-parameter
  296. :get-value
  297. :glyph-show
  298. :include-file
  299. :lineto
  300. :moveto
  301. :makespotcolor
  302. :open-image-file
  303. :open-image
  304. :place-image
  305. :restore
  306. :rotate
  307. :save
  308. :scale
  309. :set-border-link-color
  310. :set-border-link-dash
  311. :set-border-link-style
  312. :set-info
  313. :set-parameter
  314. :set-text-pos
  315. :set-value
  316. :setcolor
  317. :shading
  318. :setpolydash
  319. :setflat
  320. :setgray
  321. :setlinecap
  322. :setlinejoin
  323. :setlinewidth
  324. :setmiterlimit
  325. :shading-pattern
  326. :shfill
  327. :show
  328. :show-xy
  329. :show-boxed
  330. :string-geometry
  331. :font-symbol
  332. :font-symbol-name
  333. :font-symbol-width
  334. :translate
  335. :curve-to
  336. :bezier-to
  337. :accomodate-text
  338. :draw-text-confined-in-box))