Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resize of QR code to be smaller in simple certificate? #217

Open
williamtekkom opened this issue Jan 10, 2019 · 4 comments
Open

How to resize of QR code to be smaller in simple certificate? #217

williamtekkom opened this issue Jan 10, 2019 · 4 comments
Labels

Comments

@williamtekkom
Copy link

qr

@bozoh bozoh added the question label Jan 10, 2019
@bozoh
Copy link
Owner

bozoh commented Jan 10, 2019

Only changing the source code.

https://github.com/bozoh/moodle-mod_simplecertificate/blob/master/locallib.php#L1093

$pdf->write2DBarcode($codeurl->out(false), 'QRCODE,M', $this->get_instance()->codex, $this->get_instance()->codey, 50, 50, ....

the 50,50 is the width and height , if the bottom text (code text) get weird, comment this line:

https://github.com/bozoh/moodle-mod_simplecertificate/blob/master/locallib.php#L1097

@bozoh bozoh closed this as completed Jan 10, 2019
@bozoh bozoh reopened this Apr 12, 2020
@davefoord
Copy link

Knowing how to resize the QR code is really useful - but I also want to reposition it, so it appears bottom left rather than top left - how do I do this?

@thisisasupercoolusername

Knowing how to resize the QR code is really useful - but I also want to reposition it, so it appears bottom left rather than top left - how do I do this?

Hi Dave!
Did you find how to do it?

@davefoord
Copy link

Yes - very easy to reposition, the settings are actually within each certificate activity, so you can have some bottom left, some top right, some in the middle etc. Within the certificate settings, and the 'Others Options' there is a 'show more' link at the top of the section, if you click on that, it gives you two boxes to identify the horizontal and vertical positions.

Note, you can also change the default settings at site admin level, for any new certificates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants