home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / cups / examples / texttopdf-text.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  2009-06-18  |  718 b   |  15 lines

  1. #!/bin/sh
  2.  
  3. # just for comparison
  4. /usr/lib/cups/filter/texttops 1 hi_user there_title 1 "" Makefile > test1.ps
  5.  
  6. # for the next to work, you'll have to make a subdirectory fonts/ here, containing the fonts
  7. # and a subdirectory charsets/ with a file pdf.utf-8
  8. export CUPS_DATADIR=`pwd`/
  9.  
  10. ./texttopdf 1 hi_user there_title 1 "" Makefile > test1.pdf
  11. ./texttopdf 1 hi_user there_title 1 "PrettyPrint=1" Makefile > test2.pdf
  12. (export CONTENT_TYPE=application/x-csource; ./texttopdf 1 hi_user there_title 1 "PrettyPrint=1" test_pdf1.c > test3.pdf)
  13. (export CHARSET=utf-8; ./texttopdf 1 hi_user there_title 1 "PrettyPrint=1" Makefile > test4.pdf)
  14. (export CHARSET=utf-8; ./texttopdf 1 hi_user there_title 1 "" testin > test5.pdf)
  15.