Adjust maxPageWidth for PDFs

This commit is contained in:
Hillel Coren 2023-11-08 16:13:01 +02:00
parent 135851cf04
commit 8dfe0e38d1
6 changed files with 6 additions and 6 deletions

View File

@ -462,7 +462,7 @@ class _ClientPdfViewState extends State<ClientPdfView> {
canChangeOrientation: false, canChangeOrientation: false,
canChangePageFormat: false, canChangePageFormat: false,
canDebug: false, canDebug: false,
maxPageWidth: 800, maxPageWidth: 600,
pdfFileName: pdfFileName:
localization!.statement + '_' + client!.number + '.pdf', localization!.statement + '_' + client!.number + '.pdf',
), ),

View File

@ -689,7 +689,7 @@ class _PdfDesignPreviewState extends State<PdfDesignPreview> {
allowPrinting: false, allowPrinting: false,
allowSharing: false, allowSharing: false,
canDebug: false, canDebug: false,
maxPageWidth: 800, maxPageWidth: 600,
) )
else else
SizedBox(), SizedBox(),

View File

@ -1352,7 +1352,7 @@ class __PdfPreviewState extends State<_PdfPreview> {
allowSharing: false, allowSharing: false,
canDebug: false, canDebug: false,
pages: [_currentPage - 1], pages: [_currentPage - 1],
maxPageWidth: 800, maxPageWidth: 600,
), ),
), ),
], ],

View File

@ -115,7 +115,7 @@ class InvoiceEditPDFState extends State<InvoiceEditPDF> {
allowPrinting: false, allowPrinting: false,
allowSharing: false, allowSharing: false,
canDebug: false, canDebug: false,
maxPageWidth: 800, maxPageWidth: 600,
), ),
); );
} }

View File

@ -263,7 +263,7 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
canChangeOrientation: false, canChangeOrientation: false,
canChangePageFormat: false, canChangePageFormat: false,
canDebug: false, canDebug: false,
maxPageWidth: 800, maxPageWidth: 600,
pdfFileName: pdfFileName:
localization.lookup(invoice.entityType!.snakeCase) + localization.lookup(invoice.entityType!.snakeCase) +
'_' + '_' +

View File

@ -1380,7 +1380,7 @@ class _PdfPreviewState extends State<_PdfPreview> {
canChangeOrientation: false, canChangeOrientation: false,
canChangePageFormat: false, canChangePageFormat: false,
canDebug: false, canDebug: false,
maxPageWidth: 800, maxPageWidth: 600,
allowPrinting: false, allowPrinting: false,
allowSharing: false, allowSharing: false,
), ),