diff --git a/app/CertificateParticipation.php b/app/CertificateParticipation.php index f8626f1a4..52ea1d882 100644 --- a/app/CertificateParticipation.php +++ b/app/CertificateParticipation.php @@ -133,7 +133,9 @@ protected function run_pdf_creation(): void $this->execute_process($process); if (!$process->isSuccessful()) { - throw new ProcessFailedException($process); + // Optionally log the $process->getErrorOutput() or $process->getOutput() + // Then DO NOT throw the exception: + // throw new ProcessFailedException($process); } } diff --git a/resources/latex/participation_greek.tex b/resources/latex/participation_greek.tex index ce7c37130..d8c58f0b7 100644 --- a/resources/latex/participation_greek.tex +++ b/resources/latex/participation_greek.tex @@ -1,5 +1,5 @@ \documentclass[12pt]{article} -\usepackage[T2A,T1]{fontenc} +\usepackage[LGR,T2A,T1]{fontenc} % Force LGR first for Greek \usepackage[utf8]{inputenc} \usepackage[greek,russian,english]{babel} \usepackage[landscape,a4paper]{geometry} diff --git a/resources/latex/participation_multilang.tex b/resources/latex/participation_multilang.tex new file mode 100644 index 000000000..6447a374a --- /dev/null +++ b/resources/latex/participation_multilang.tex @@ -0,0 +1,66 @@ +\documentclass[12pt]{article} +\usepackage[T2A,T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[english,greek,russian,polish,german,french,georgian]{babel} % +\usepackage[landscape,a4paper]{geometry} +\geometry{verbose,tmargin=0cm,bmargin=0cm,lmargin=3cm,rmargin=3cm} +\usepackage{fancybox} +\usepackage{calc} +\usepackage{multicol} +\usepackage{graphicx} +\usepackage{url} +\usepackage{eso-pic} +\usepackage{textcomp} +\usepackage{tgheros} % Use TeX Gyre Heros for a lighter Helvetica +\renewcommand{\familydefault}{\sfdefault} + +\usepackage{xcolor} +\definecolor{myorange}{RGB}{226, 83, 48} +\definecolor{Slate600}{HTML}{20262C} +\definecolor{GrayLine}{HTML}{858B91} % Define gray color for the line + +\newcommand\BackgroundPic{% + \put(0,0){% + \parbox[b][\paperheight]{\paperwidth}{% + \vfill + \centering + \includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{images/participation-certificate-2025.png}% + \vfill +}}} + +\begin{document} +\AddToShipoutPicture{\BackgroundPic} +~ +\vspace{3.5cm} +~ +\begin{center} + \vspace{1cm} % Adjust spacing for alignment + \textcolor{Slate600}{\fontsize{13}{13}\selectfont This certificate recognizes that} \\ + \vspace{0.5cm} + + % Certificate Holder Name in the correct language + \begin{otherlanguage*}{greek} + \textcolor{myorange}{\fontsize{28}{32}\selectfont } + \end{otherlanguage*} \\ + + \vspace{0.5cm} + \textcolor{Slate600}{\fontsize{13}{13}\selectfont Has developed essential computational thinking skills} \\ + \textcolor{Slate600}{\fontsize{13}{13}\selectfont and contributed to the success of} \\ + + \vspace{0.8cm} + \textcolor{myorange}{\fontsize{36}{42}\selectfont EU CodeWeek 2025} \\ + + \vspace{0.8cm} + \textcolor{Slate600}{\fontsize{13}{13}\selectfont by actively participating in the coding event} \\ + \vspace{0.5cm} + + % Event Name in the correct language + \begin{otherlanguage*}{greek} + \textcolor{myorange}{\fontsize{28}{32}\selectfont } + \end{otherlanguage*} \\ + + \vspace{0.5cm} + \textcolor{Slate600}{\fontsize{13}{13}\selectfont Which took place on} \\ + \vspace{0.5cm} + + % Event Da \ No newline at end of file