Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 fpdf 类创建一个 pdf,其顶部、右侧和左侧的彩色边框为 15 毫米厚,底部为 32 毫米厚(为了论证,边框颜色为橙色),中间留有白色背景对于文本内容。
请问我怎样才能最好地做到这一点?
不要使用 FDPF。使用 DomPDF - 它接受 HTML 作为输入,您可以轻松地执行您所描述的操作,并从中生成 PDF。