在我的项目中,pdf是动态生成的。我想要的是直接将其存储到S3存储桶。这是我的代码。谁能帮助我。
public function pdftest(){
$this->load->library('m_pdf');
$this->load->library('S3');
$name=rand(9999,999999);
$html = $this->load->view('applicant-pdf', $data, true);
//$this->m_pdf->pdf->WriteHTML($html);
//$this->m_pdf->pdf->Output($pdfFilePath, "F");
if($this->s3->putObjectFile($this->m_pdf->pdf->Output($pdfFilePath, "F"), "swirl-pdf", "evidence-pdf/" . $name.".pdf", S3::ACL_PUBLIC_READ)){
echo "success";
}
}