• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Issue with the display of Digsig plugins in PDF

Hello,

The Digsig plugin displays correctly in the form and form details. However, the result I get in the PDF is a tiny, tiny picture. Anyone knows why and has a solution to this?
Joomla version 3.10.9, Fabrik 3.10.

Thank you
 
I think there's a thread somewhere.

Are other images displayed correctly?

It's ringing a bell, maybe it needs some custom CSS.
In one of my details PDF templates (PDF is always details) I have
#{$form} img {width:auto;height:auto;}
 
Thank you for your reply.
Yes, the other pictures are displayed correctly. Only the signature is tiny. The width and height given in the settings don't apply. Where should I insert the following #{$form} img {width:auto;height:auto;}?
 
CSS: in your pdf details template's custom_css.php
And/or you can try to tweak (override) plugins\fabrik_element\digsig\layouts\fabrik-element-digsig-details-pdf.php
 
I have inserted ( #{$form} img {width:auto;height:auto;}) in the relevant plugin, and the tiny picture has been replaced by the syntax

upload_2022-6-23_19-49-4.png

the file fabrik-element-digsig-details-pdf.php has currently the following code. I might have something wrong:rolleyes:

<?php
defined('JPATH_BASE') or die;
$d = $displayData;
?>
<img src="<?php echo $d->link; ?>" width="<?php echo $d->digsig_width; ?>" height="<?php echo $d->digsig_height; ?>" />
#{$form} img {width:auto;height:auto;}
 
#{$form} img {width:auto;height:auto;} must go
CSS: in your pdf details template's custom_css.php
I just tested, you don't need to touch fabrik-element-digsig-details-pdf.php, it's just the custom CSS.
 
I have checked the custom CSS, and the following code was already there. I still get a tiny signature on the PDF. The custom CSS file doesn't seem to work.

upload_2022-6-23_22-55-19.png
 
Last edited:
the following code was already there.
Must be coming from you...
Digsig in a PDF of a details view is working with this CSS on my site (without this setting I also see the tiny one), but this may also depend on your Joomla template.

Did you add the CSS to the custom_css of the details template you have selectet as PDF template?
You can check with Fabrik's PDF debugging on with your browser console if your CSS is loaded correctly
Are you using the PDF button? In case of PDF attatchment there's a fix in GitHub for CSS loading.
 
Must be coming from you...
Digsig in a PDF of a details view is working with this CSS on my site (without this setting I also see the tiny one), but this may also depend on your Joomla template.

Did you add the CSS to the custom_css of the details template you have selectet as PDF template?
You can check with Fabrik's PDF debugging on with your browser console if your CSS is loaded correctly
Are you using the PDF button? In case of PDF attatchment there's a fix in GitHub for CSS loading.

My Joomla template is Protostar. I have added the CSS to the custom_css of the details template I have selected as PDF template. When I check with Fabrik's PDF debugging, the signature is displayed. However, I lose some of the CSS for the group 3 columns layout. I noticed also that when I set the PDF Bootstrap to NO, the signature displays, and I lose the layout. I really need to have the PDF Bootstrap set to YES. I have also removed the curly bits with no success.
upload_2022-6-24_11-31-52.png

I have found that also in the browser console

upload_2022-6-24_11-56-15.png

upload_2022-6-24_11-57-28.png
 
Last edited:
Strange, is this some browser security setting? Did you try a different browser?
In a custom template you can also modify template_css.php directly and remove (rename) custom_css.php.

Which php version? Are you running a recent GitHub update?
When I check with Fabrik's PDF debugging, the signature is displayed.
This doesn't say much, the PDF libs (which one do you have, domPDF or mPDF?) are rendering slightly different, e.g. not supporting float/flex....
So in debug mode you can check for errors, if templates and CSS are loaded correctly etc. but you don't see exactly how the PDF will render. It's a lot of try & error:rolleyes:
 
I don't think I have anything special with my browser because I tried it with Edge and Safari and my iPad, and I got the same result (tiny image when the PDF Bootstrap is set to YES).
The PHP version the site is using is 7.4.30. The last Fabrik update is dated August 2021. I'm using domPDF.
 
The official Fabrik3.10 from Aug2021 is not php7.4 ready.
You should update from GitHub, there are several php7.4 and php8 fixes.
(Not sure if this is related to your PDF problem)
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top