How to preserve @page margin but with a sidebar

允我心安 提交于 2021-01-29 10:35:19

问题


I've been trying to generate a dynamic invoice using Handlebars and Puppeteer. Now the problem is that I need to display a 'sidebar' so to speak in my invoice template. However, I also need @page margin so that overflowing content gets wrapped to a new page with enough margin. See image below for clarification:

I set up a github repo with example code you can check out here (instructions to run project in read.me).

How can I preserve the margin added with @page, but also have a sidebar that goes fully from top to bottom?

来源:https://stackoverflow.com/questions/65704404/how-to-preserve-page-margin-but-with-a-sidebar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!