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

Illegal string offset 'position' #559

CnczubehoerEu opened this issue Mar 22, 2020 · 0 comments

Illegal string offset 'position' #559

CnczubehoerEu opened this issue Mar 22, 2020 · 0 comments


Copy link

@CnczubehoerEu CnczubehoerEu commented Mar 22, 2020

Hi everybody!

Using html2pdf I'm getting the following error:

Warning: Illegal string offset 'position' in /var/www/public/Packages/Libraries/tecnickcom/tcpdf/tcpdf.php line 15588

Using this code:

<div style="width:62mm; height:20mm; position:relative; overflow: hidden;">
         <barcode dimension="2D" type="DATAMATRIX" value="{article.number}" label="label" style="position: absolute; top: 7mm; left: 1mm; width:13mm; height:13mm; color: #000000; font-size: 4mm;"></barcode>
         <div style="position:absolute; left:1mm; top:1mm; width:40mm; height:18mm; font-size:5mm; font-weight:bold;">
         <div style="position:absolute; left:15mm; top:7mm; width:46mm; height:13mm; font-size:3mm;">

$html2pdf = new Html2Pdf("L", [62, 21], "de", true, "UTF-8", [0, 0, 0, 0]);

Does anyone have any idea where this error can come from? Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.