radykal | Support Center Chooser

For which product do you need support?

Fancy Product Designer Multistep Product Configurator Another

Start a new topic
Answered

PDF export has white margins / padding

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

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

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...

Login or Signup to post a comment