$nik, 'passphrase' => $passphrase, 'tampilan' => 'invisible', 'halaman' => 'terakhir', 'image' => 'false', 'xAxis' => 43.63, 'yAxis' => 28.71, 'width' => 550.78, 'height' => 130.88, 'reason' => 'Dokumen ditandatangani secara elektronik Universitas Tanjungpura', 'location' => 'Universitas Tanjungpura', 'linkQR' => $linkQr, ]); $response = Http::withBasicAuth($this->username, $this->password) ->timeout(60) ->attach('file', file_get_contents($filePath), basename($filePath)) ->post("{$this->baseUrl}/api/sign/pdf?{$query}"); } catch (Throwable $th) { Log::error('TTE signDokumenUser : '.$th->getMessage()); return false; } if (! $response->successful()) { Log::error("TTE signDokumenUser gagal: HTTP {$response->status()} - {$response->body()}"); return false; } return $response->body(); } }