Php 我从html使用mpdf生成pdf,现在我必须在pdf中显示pdf
在pdf中显示pdf 我从html使用mpdf生成pdf,我面临的问题是我有图像,我可以使用img src显示它们,但我需要在pdf中显示pdf 我有pdf文件,我必须在pdf文件中显示 使用href,用户可以在报告pdf文件中下载pdf 有什么想法吗 这是我到目前为止尝试的代码,似乎什么都不起作用:Php 我从html使用mpdf生成pdf,现在我必须在pdf中显示pdf,php,codeigniter,pdf,mpdf,Php,Codeigniter,Pdf,Mpdf,在pdf中显示pdf 我从html使用mpdf生成pdf,我面临的问题是我有图像,我可以使用img src显示它们,但我需要在pdf中显示pdf 我有pdf文件,我必须在pdf文件中显示 使用href,用户可以在报告pdf文件中下载pdf 有什么想法吗 这是我到目前为止尝试的代码,似乎什么都不起作用: <a href="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>">Download
<a href="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>">Download PDF</a>
<a href="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>"><embed src="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>" width="500" height="375"></a>
<embed src="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>" width="500" height="375">
<div id="pdf">
<object width="400" height="500" type="application/pdf" data="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>" id="pdf_content">
<p>Insert your error message here, if the PDF cannot be displayed.</p>
</object>
</div>
<object data="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>" type="application/pdf" width="300" height="200"> alt : <a href="<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>">test.pdf</a>
</object>
<iframe src="http://docs.google.com/gview?url=<?php echo base_url().'get_image.php?i='.$plan_dir.$plan['file'];?>&embedded=true" style="width:718px; height:700px;" frameborder="0"></iframe>
尝试将URL与http
一起使用,例如:
或
而不是基本url()
要使用该链接,请尝试使用name
例如:
<a name="http://example.com" target="_blank">DESCRIPTION</a>
说明
请澄清您的问题。你谈论图像,并能够用imgsrc显示它们,然后在需要pdf格式的pdf后立即说。是否要从其他pdf中链接到pdf?或者您想在另一个pdf中嵌入pdf?在另一个pdf中嵌入pdf