diff options
Diffstat (limited to 'minimun')
-rwxr-xr-x | minimun | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +#!/usr/bin/perl +use strict; +use warnings; + +use IPC::Run qw(run); + +my ($in, $out); + +$in .= "\\relax\n"; + +open(FORMAT, '<', 'format.tex'); +while (my $line = <FORMAT>){ + $in .= $line; +} +close(FORMAT); + +$in .= "bruh\n"; +$in .= "\\bye\n"; + +run ['/usr/bin/pdftex'], '<', \$in, '>', \$out; +print "Content-type: application/pdf\n\n"; +open(DOC, '<', 'texput.pdf'); +while (<DOC>){ + print; +} |