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.
Best Answer
O
Olivier Gorzalka
said
over 7 years ago
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...
1 Comment
O
Olivier Gorzalka
said
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);
Marc
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.
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...
Olivier Gorzalka
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...
-
Adding Fancy Products to Categories
-
Shortcode for specfic product designer
-
What theme is recommended to use with FPD ?
-
Exclude Image from export
-
Google Font Family adds extras
-
Floating Dialog box
-
Uploadzone not working
-
Image transparency like in T-shirt demo
-
How do I get clipart
-
What does the LOAD button do / what is it for?
See all 2194 topics