Skip to content

Not handler variable $xpos and $ypos in function Cezpdf() construct when used type 'image' #101

@jhonnycgarcia

Description

@jhonnycgarcia

Hola!
Hi!

Cuando intento utilizar la opcion de image en el llamado a la funcion del constructor
When i try to use the option image in called to construct function

$pdf = new Cezpdf('a4', 'portrait', 'image', array( 'img'=>'images/img.jpg' ,'width'=>'200' ,'height'=>'60' ,'xpos' => 255 ,'ypos'=> 255) );
No toma el valor de las variable $xpos y $ypos.
He does not recognize variables $xpos and $ypos.

Entonces, leyendo el codigo detecte que no las utiliza en la linea #380
So, reading the code detect that it does not use them into the line #380

$this->addBackgroundImage($xpos, $ypos);

Es necesario cambiar esa lina por la siguiente para que funcione
Require change that line for it to work

$this->addBackgroundImage($this->ezBackground['xpos'],$this->ezBackground['ypos']);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions