Created a Feature Request as my last comment was on the community forum.
We have issues with the PDF export adding a margin to the pages making it impossible to print. Is there anyone out there who can fix this? This plugin is using "tcpdf" to generate the output file, the script seems fairly simple from the FPD side in order-viewer.js - I assume it just needs either better options set up or a better PDF plugin.
0 Votes
O
Olivier Gorzalka posted
over 7 years ago
Best Answer
Hi,
You can add an additional code in the following file : plugins/fancy-product-designer/admin/class-admin-ajax.php
Line 1077 just after this code :
1
$pdf = new TCPDF($orientation, 'mm', array($width, $height), true, 'UTF-8', false);
Add this :
1
2
$pdf->SetMargins(0, 0, 0, true);
$pdf->setPageOrientation($orientation, true, 0);
I think it could be part of the core plugin...
0 Votes
1 Comments
O
Olivier Gorzalkaposted
over 7 years ago
Answer
Hi,
You can add an additional code in the following file : plugins/fancy-product-designer/admin/class-admin-ajax.php
Line 1077 just after this code :
1
$pdf = new TCPDF($orientation, 'mm', array($width, $height), true, 'UTF-8', false);
Created a Feature Request as my last comment was on the community forum.
We have issues with the PDF export adding a margin to the pages making it impossible to print. Is there anyone out there who can fix this? This plugin is using "tcpdf" to generate the output file, the script seems fairly simple from the FPD side in order-viewer.js - I assume it just needs either better options set up or a better PDF plugin.
0 Votes
Olivier Gorzalka posted over 7 years ago Best Answer
Hi,
You can add an additional code in the following file : plugins/fancy-product-designer/admin/class-admin-ajax.php
Line 1077 just after this code :
$pdf = new TCPDF($orientation, 'mm', array($width, $height), true, 'UTF-8', false);
Add this :
$pdf->SetMargins(0, 0, 0, true);
$pdf->setPageOrientation($orientation, true, 0);
I think it could be part of the core plugin...
0 Votes
1 Comments
Olivier Gorzalka posted over 7 years ago Answer
Hi,
You can add an additional code in the following file : plugins/fancy-product-designer/admin/class-admin-ajax.php
Line 1077 just after this code :
$pdf = new TCPDF($orientation, 'mm', array($width, $height), true, 'UTF-8', false);
Add this :
$pdf->SetMargins(0, 0, 0, true);
$pdf->setPageOrientation($orientation, true, 0);
I think it could be part of the core plugin...
0 Votes
Login or Sign up to post a comment