title: How to merge images using php imagick
body: <p>I am very new to use php imagick to use . 
  Basically I want to merge two images. 
  I have coded this</p>
  
  <pre><code>    $logo = new Imagick("img/logo.png");
      $name  ="Jhon N. Doe";
      $title ="Web Programmer";
      $address= "abc road xyz";
      $website = "www.acfh.com";
      $phone = "0555555";
      $email ="mizff@yahoo.com";
  
      $image = new Imagick();
      $draw = new ImagickDraw();
      $pixel = new ImagickPixel( '#f5f5f5' );
  
      $image-&gt;newImage(350, 170, $pixel);
  
      //$logo-&gt;newImage(100, 100,$logo);
      /* Black text */
      $draw-&gt;setFillColor('#6b6a6a');
  
      /* Font properties */
      $draw-&gt;setFont('./font/MyriadPro-Regular.otf');
      $draw-&gt;setFontSize(10);
  
      /* Create text */
      $image-&gt;annotateImage($draw, 230, 150, 0, $email);
      $image-&gt;annotateImage($draw, 102, 75, 0, $title);
      $image-&gt;annotateImage($draw, 10, 150, 0, $address);
      $image-&gt;annotateImage($draw, 230, 160, 0, $phone);
  
  
      /* Output the image */
  
      //for name 
      $draw-&gt;setFillColor('#333333');
      $draw-&gt;setFontSize( 30 );
      $image-&gt;annotateImage($draw, 30, 60, 0, $name);
  
      $draw-&gt;setGravity(Imagick::GRAVITY_CENTER);
      $image-&gt;compositeImage($logo, Imagick::COMPOSITE_DEFAULT, 230, 20);
      $image-&gt;resetIterator();
      $combined = $image-&gt;appendImages(true);
      $combined-&gt;setResolution(72,72);
      $combined-&gt;setImageFormat("jpg");
      header("Content-Type: image/jpg");
      echo $combined;
      }
  </code></pre>
  
  <p>This gives a card  . Now I want to repeat it on A4 or leageal page multiple times and save it to pdf. Kindly help me .</p>