aboutsummaryrefslogtreecommitdiff
path: root/minimun
blob: 923426c2f0b5893a456f135a85211ec72bf686b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use strict;
use warnings;

use IPC::Run qw(run);

my ($in, $out);

$in .= "\\award\n";
$in .= "\\bye\n";

run ['/usr/bin/pdftex', 'format.tex'], '<', \$in, '>', \$out;
print "Content-type: application/pdf\n\n";
open(DOC, '<', 'format.pdf');
while (<DOC>){
  print;
}
close(DOC);