Add Images using PDFfiller PHP Client

Now you can easily add images to your PDF document without affecting the image quality. Attaching a photo to a document when completing it has become a common requirement. Using PDFfiller, you can insert any type of image in just a few clicks.
          
              
                    // Multipart
$uploader = new Uploader($provider, CustomLogo::class);
$uploader->type = Uploader::TYPE_MULTIPART;
$uploader->file = __DIR__ . '/test.jpg';
$logo = $uploader->upload();

// URL
$uploader = new Uploader($provider, CustomLogo::class);
$uploader->type = Uploader::TYPE_URL;
$uploader->file = 'http://design.ubuntu.com/wp-content/uploads/ubuntu-logo32.png';
$logo = $uploader->upload();