Skip to content

Commit 8fa7428

Browse files
committed
Fix PDF generation
1 parent 94e088e commit 8fa7428

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM httpd:2.4.59
22

33
RUN apt-get update
44
RUN apt-get install -y libcgi-pm-perl libcapture-tiny-perl libdatetime-perl libcapture-tiny-perl libgeo-ip-perl
5-
RUN apt-get install -y libhtml-tiny-perl libjson-xs-perl libcrypt-random-seed-perl
5+
RUN apt-get install -y libhtml-tiny-perl libjson-xs-perl libcrypt-random-seed-perl wkhtmltopdf
66

77
COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf-extra
88
RUN cat /usr/local/apache2/conf/httpd.conf-extra >> /usr/local/apache2/conf/httpd.conf

cgi-bin/rsg.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280

281281
print "<!DOCTYPE html>";
282282
print $h->open('html');
283-
my $htdocs = getParam('pdf') ? '../../htdocs' : ''; # TODO why current dir is data/tmp ?
283+
my $htdocs = getParam('pdf') ? 'https://freergform.rgvid.eu' : ''; # TODO determine the path automatically?
284284
print $h->head([ $h->title( showNameInTitle() || 'Rhythmic gymnastics individual routine scripting' ),
285285
$h->link({ href => "$htdocs/css/w3.css", rel=>'stylesheet', type => 'text/css' }),
286286
$h->link({ href => "$htdocs/css/my.css", rel=>'stylesheet', type => 'text/css' }),

0 commit comments

Comments
 (0)