convert JPG to PDF using PDFfiller PHP Client

When a PDF document contains more images than text, it is better to convert it to JPG format for better image quality. Using PDFfiller's PDF to JPG converter, you'll see how easy it is to transform files from one format to another.
          
              
                    PDFfiller\OAuth2\Client\Provider\Document::download();

$uploader = new Uploader($provider, Document::class);
$uploader->type = Uploader::TYPE_MULTIPART;
$uploader->file = __DIR__ . '/test.jpg';
$logo = $uploader->upload();

$contents = Document::download($provider, 54656456);