如何使用 PDFRreactor 构建具有复杂 html 和样式的 pdf header(top-left 和 top-right)?

How to structure pdf header(top-left and top-right) with complex html and styles with PDFRreactor?

我正在使用 PDFReactor 生成 pdf。使用@top-left 和@top-right 以及复杂的 html 标签(如 <a> 标签而不是简单的原始文本,如 @top-right{content: "some text"} 来构造 pdf 顶部的最佳方法是什么?

使用 running()element()。参见 https://www.w3.org/TR/css-gcpm-3/#running-elements