pdf font name and size : ps

This commit is contained in:
VE10-Sanjeev 2024-04-06 13:47:45 +05:30
parent 758b959a29
commit 6bc2eb487f
6 changed files with 14 additions and 12 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -5,7 +5,7 @@ class SettingsModel extends Model
{
protected $table = 'settings';
protected $primaryKey = 'setting_id';
protected $allowedFields = ['business_id','setting_id','site_name','site_color','site_short_name','site_email','mobile','country','favicon','site_info','logo','terms_service','footer_about','about_info','copyright','pagination_limit','mail_protocol','mail_title','mail_host','mail_port','mail_encryption','mail_username','mail_password','currency','created_on','created_by','updated_on','updated_by','isactive'];
protected $allowedFields = ['business_id','setting_id','site_name','site_color','site_short_name','site_email','mobile','country','favicon','site_info','logo','terms_service','footer_about','about_info','copyright','pagination_limit','currency','created_on','created_by','updated_on','updated_by','isactive'];
public function saveData($data, $id = null)
{

View File

@ -10,7 +10,7 @@
/* Apply font family and size */
body {
font-family: 'Times New Roman', Times, serif;
font-size: 12px;
font-size: 8pt;
}
}
#pdfPreviewModal .modal-dialog {
@ -23,8 +23,9 @@
}
#pdfPreviewModal .modal-body {
font-family: 'Times New Roman', Times, sans-serif;
font-size: 12px;
font-family: 'Times New Roman', Times, serif !important;
font-size: 8pt !important;
margin: 0;
}
.table-responsive {
@ -148,7 +149,7 @@
</button>
</div>
<div class="modal-body" style="font-family: Times New Roman, Times, sans-serif !important; font-size: 12px !important;">
<div class="modal-body" style="font-family: 'Times New Roman', Times, serif !important; font-size: 8pt !important;">
<!-- PDF content will be loaded here -->
</div>

View File

@ -12,15 +12,16 @@
font-family: 'Times New Roman', Times, sans-serif;
font-size: 12px;
font-size: 8pt;
/* Change this value to your desired font size */
}
/* Style for the main table with border */
table.main-table {
width: 100%;
border-collapse: collapse;
border: -0.5px solid black;
margin-bottom: 1rem;
/* border-collapse: collapse; */
/* border: -0.5px solid black; */
/* Add a border around the entire invoice */
}
@ -28,17 +29,15 @@
table.main-table td {
border: none;
/* Remove borders from all cells inside the main table */
padding: 8px;
/* padding: 8px; */
}
/* Style for the table containing business details */
table.business-details-table {
width: 100%;
border-collapse: collapse;
}
table.business-details-table td {
padding: 8px;
text-align: left;
}
@ -62,11 +61,13 @@
/* Style for the table containing invoice info */
table.invoice-info-table {
width: 100%;
border-collapse: collapse;
}
table.invoice-info-table th,
table.invoice-info-table td {
text-align: right;
padding: 8px;
}
/* Style for the addresses table */
@ -181,7 +182,7 @@
<?php endforeach; ?>
</table>
</td>
<td>
<td style="padding: 8px!important">
<table class="invoice-info-table">
<?php foreach ($data as $value) : ?>
<tr>