From 3e26f97e8bfe67433fdc4bbd6a554d20dc7f099c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 6 Mar 2016 23:25:00 +0200 Subject: [PATCH] Fix for PDF on iOS Safari --- resources/views/invoices/pdf.blade.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/views/invoices/pdf.blade.php b/resources/views/invoices/pdf.blade.php index 654349766dad..d2e8648b53f7 100644 --- a/resources/views/invoices/pdf.blade.php +++ b/resources/views/invoices/pdf.blade.php @@ -90,7 +90,14 @@ NINJA.fontSize = {{ $account->font_size }}; NINJA.headerFont = {!! json_encode($account->getHeaderFontName()) !!}; NINJA.bodyFont = {!! json_encode($account->getBodyFontName()) !!}; + @else + NINJA.primaryColor = ""; + NINJA.secondaryColor = ""; + NINJA.fontSize = 9; + NINJA.headerFont = "Roboto"; + NINJA.bodyFont = "Roboto"; @endif + var invoiceLabels = {!! json_encode($account->getInvoiceLabels()) !!}; if (window.invoice) {