我有以下 pdflib 代码:
$pdf = pdf_new();
pdf_begin_document($pdf, "", "");
pdf_begin_page($pdf, $bleedw,$bleedh);
pdf_arc($pdf,2.63*72,1.13*72,(2*72/2),270,90);
pdf_arc($pdf,.25*72,$bleedh-.25*72,(.25*72/2),90,180);
pdf_arc($pdf,.25*72,.25*72,(.25*72/2),180,270);
pdf_lineto($pdf,2*72/2,$bottom);
pdf_closepath_stroke($pdf);
//output pdf
pdf_end_page($pdf);
pdf_end_document($pdf, "");
$data = pdf_get_buffer($pdf);
header('Content-type: application/pdf');
header("Content-disposition: attachment; filename=custom_template_outside.pdf");
header("Content-length: " . strlen($data));
echo $data;
它如何将这个生成的图形放在现有的 pdf 文件之上?