Hi guys,
yesterday i started to test Prince. I wrote a little php-file where a background image is loaded dynamically and the width an height for the wrapper-div are measured from that pic.
Yesterday it runs with no warnings or errors. But today i got this warnings/errors:
pdf.php:style:3: warning: parse error in value of property 'width' at '<'
pdf.php:style:4: warning: parse error in value of property 'height' at '<'
/<: warning: can't open input file: No such file or directory
The stylesheet looks like this:
<style>
#wrapper {
width: <?=$bgSize[0]?>px;
height: <?=$bgSize[1]?>px;
background-image: url(<?=$bgPath?>);
background-size: cover;
}
</style>
The generated PDF has no background image. But yesterday it has one.
I'm a little bit confused...
yesterday i started to test Prince. I wrote a little php-file where a background image is loaded dynamically and the width an height for the wrapper-div are measured from that pic.
Yesterday it runs with no warnings or errors. But today i got this warnings/errors:
pdf.php:style:3: warning: parse error in value of property 'width' at '<'
pdf.php:style:4: warning: parse error in value of property 'height' at '<'
/<: warning: can't open input file: No such file or directory
The stylesheet looks like this:
<style>
#wrapper {
width: <?=$bgSize[0]?>px;
height: <?=$bgSize[1]?>px;
background-image: url(<?=$bgPath?>);
background-size: cover;
}
</style>
The generated PDF has no background image. But yesterday it has one.
I'm a little bit confused...