Hi ! Question : How to Center SVG image vertically on a PDF Page ?
Details: I want to center the SVG image (Both horizontally and vertically), whose width and height are not known in advance.
Required Soln: Centering Horizontally + Centering vertically
Code used- $pdf->ImageSVG("@".$data,0,0,$w,0,'','','C');
here $data contains the data string and $w contains the width of the current page. Note - There is no other content on the page.
I have achieved centering the Image horizontally but cant figure how to do it vertically ?
Log in to post a comment.
Hi !
Question : How to Center SVG image vertically on a PDF Page ?
Details: I want to center the SVG image (Both horizontally and vertically), whose width and height are not known in advance.
Required Soln: Centering Horizontally + Centering vertically
Code used-
$pdf->ImageSVG("@".$data,0,0,$w,0,'','','C');
here $data contains the data string and $w contains the width of the current page.
Note - There is no other content on the page.
I have achieved centering the Image horizontally but cant figure how to do it vertically ?