-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
47 lines (31 loc) · 1.27 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
GSAPI version 0.6 (heavily untested)
=================
This module provides an interface to the gsapi
functions of GNU Gostscript.
You normally won't need this module, it's far easier
to pipe to gs under Unix.
You need libgs - which is normally available under most Linux Distributions
as ghostscript-devel or equivalent - and the ghostscript header files, see
INSTALL.
You normally want to use the tie-method, here an example:
my $output;
{ local *FH;
tie *FH, "GSAPI", stdout => sub { $output .= $_[0]; length $_[0]};
print FH "12345679 9 mul pstack quit\n";
}
ok($output =~ /111111111/);
INSTALLATION
To install this module type the following:
perl Makefile.PL CCFLAGS=-I/path-to/gnu_ghostscript-8.15/src
make
make test
make install
COPYRIGHT AND LICENCE
Copyright (C) 2008 by Philip Gwyn <gwyn-at-cpan.org>
Copyright (C) 2003,2005 by Stefan Traby <[email protected]>
Copyright (C) 2003,2005 by KW-Computer Ges.m.b.H Graz, Austria.
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License 2.0 or any later version.
the reason why this module is not available under dual license (Artistic/GPL)
is simply the fact that GNU Gostscript is only available under GPL and not
under Artistic License.