Skip to content

Commit

Permalink
Fix PDF generation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDaniel committed Apr 30, 2024
1 parent 94e088e commit 1df840d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM httpd:2.4.59

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

COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf-extra
RUN cat /usr/local/apache2/conf/httpd.conf-extra >> /usr/local/apache2/conf/httpd.conf
Expand Down
2 changes: 1 addition & 1 deletion cgi-bin/rsg.pl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@

print "<!DOCTYPE html>";
print $h->open('html');
my $htdocs = getParam('pdf') ? '../../htdocs' : ''; # TODO why current dir is data/tmp ?
my $htdocs = getParam('pdf') ? '/usr/local/apache2/htdocs/' : ''; # TODO determine the path automatically?
print $h->head([ $h->title( showNameInTitle() || 'Rhythmic gymnastics individual routine scripting' ),
$h->link({ href => "$htdocs/css/w3.css", rel=>'stylesheet', type => 'text/css' }),
$h->link({ href => "$htdocs/css/my.css", rel=>'stylesheet', type => 'text/css' }),
Expand Down

0 comments on commit 1df840d

Please sign in to comment.