From 86570db9c756398937ef087cf4a476a3eb80dd94 Mon Sep 17 00:00:00 2001 From: Alex Puiu Date: Mon, 21 Feb 2022 10:59:27 +0200 Subject: [PATCH] Get indentation and font family --- app/Console/Kernel.php | 10 +++++----- app/Ingest/PDFConvertor.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 9ce50a8..429410d 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -14,11 +14,11 @@ class Kernel extends ConsoleKernel * * @var array */ - protected $commands = [ - DeployWorker::class, - TestMachine::class - // - ]; + // protected $commands = [ + // DeployWorker::class, + // TestMachine::class + // // + // ]; /** * Define the application's command schedule. diff --git a/app/Ingest/PDFConvertor.php b/app/Ingest/PDFConvertor.php index cc47221..3aeb25c 100644 --- a/app/Ingest/PDFConvertor.php +++ b/app/Ingest/PDFConvertor.php @@ -61,7 +61,7 @@ class PDFConvertor extends AbstractConvertor foreach ($page as $p) { if ($p->getName() === 'fontspec') { - $fonts[(int) $p['id']]['family'] = (string) $p['family']; + $fonts[(int) $p['id']]['family'] = (string) substr($p['family'], strpos($p['family'], '+') + 1); $fonts[(int) $p['id']]['size'] = (string) $p['size']; $fonts[(int) $p['id']]['color'] = (string) $p['color']; } @@ -214,7 +214,7 @@ class PDFConvertor extends AbstractConvertor $style = $style . "height: " . $p['height'] . "px;"; if($firstOfText) $style = $style . "padding-left: " . (intval($p['left']) - 90) . "px;"; - // $style = $style . "font-size: $font_size" . "px;"; + $style = $style . "font-size: $font_size" . "px;"; if ($p->i) { $content = '' . $p->i . '';