Comments (2)
Hi, if you mean that there is no effect on changing top, bottom, left and fight margins,
I guess I found some solution for this problem.
For some reason there is no passing of margins values, so they are used with default values (30, 30, 30, 30).
To fix it, you can:
- open file <your_glpi_folder>/plugins/barcode/inc/barcode.class.php (even for QRcode margins)
- find there strings smth like
$width = $config['maxCodeWidth'];
$height = $config['maxCodeHeight'];
$marginH = $config['marginHorizontal'];
$marginV = $config['marginVertical'];
they are somewhere at 307-310 strings - insert after them code
$pdf->ezSetMargins($config['marginTop'], $config['marginBottom'], $config['marginLeft'], $config['marginRight'] );
et voilà
bthw, if you want set that margins in cm, just insert
$pdf->ezSetCmMargins($config['marginTop'], $config['marginBottom'], $config['marginLeft'], $config['marginRight'] );
but beware, cm are more large, so if you get blank sheet, decrease your values
from barcode.
Thank you DenSardonic, it works for me.
from barcode.
Related Issues (20)
- error blank barcode
- barcode print the name HOT 1
- No entry found HOT 1
- building Codes failes HOT 1
- Save generated qr/barcode and link it to the asset HOT 1
- Add QRCode Information HOT 3
- Logo not display qr code and barcode HOT 1
- How to save presets print ? HOT 1
- Pagination
- Problemas al generar códigos QR y de barras.
- Display on label depends on integration in QRcode
- error when trying to install the barcode plugin
- Probleme QRcode::png HOT 3
- [Label Size]
- How to Remove Page Number (Label Printer) HOT 1
- Glpi 10.0.11 After installtion unable to registation
- Feature Request
- barecode scanning
- Value only, without description field
- Genero qr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barcode.