! Copyright (C) 2010 John Benediktsson
! See http://factorcode.org/license.txt for BSD license
-USING: assocs calendar combinators environment formatting
-grouping io io.files kernel make math math.ranges sequences
-splitting xml.entities ;
+USING: assocs calendar environment formatting grouping io.files
+kernel make math ranges sequences splitting xml.entities ;
IN: text-to-pdf
dup length 5 swap 2 range boa zip
[ pdf-page , pdf-text , ] assoc-each
] { } make
- dup length [1,b] zip [ first2 pdf-object ] map ;
+ dup length [1..b] zip [ first2 pdf-object ] map ;
: objects>pdf ( objects -- str )
[ join-lines "\n" append "%PDF-1.4\n" ]