首页 文章
  • 0 votes
     answers
     views

    html2pdf当表超过页面大小时如何生成新页面

    我正在尝试根据所需的产品数量生成pdf文件 . $html2pdf->writeHTML($this->render($template, array( 'offerte' => $offerte, 'customer' => $customer ))->getContent()); try { $htm...
  • 0 votes
     answers
     views

    html2pdf调整页面大小

    我有html2pdf很好地将pdf附加到电子邮件但是,我需要将页面宽度调整为606px我可以在html中执行此操作但html是606px而pdf本身是标准字母宽度在portait中 . 有没有办法将文档限制到我需要的宽度?感谢名单 标记
  • 2 votes
     answers
     views

    html2pdf页码

    我有一个HTML代码,当我使用html2pdf将其转换为pdf时,它比单个页面长,我需要将页码放在两个页面中 . 我试过把page_footer代码放在这篇文章中说:html2pdf page numbering 但它只显示最后一页中的页码,而不是第一页中的页码 . 我可以修改html代码,但我知道如果我把标记放在它的末尾,html2pdf认为它指的是代码的结尾,而不是页面的结尾 . 如何将页码放...
  • 7 votes
     answers
     views

    HTML2PDF没有't recognize tables'尺寸

    我使用HTML2PDF扩展来生成PDF(http://html2pdf.fr/) . 尽管PDF生成正常,但它的大小并不合适;没有't matter the width or height I specify for a row or a whole table: the PDF is always generated the same way (with a table width that j...
  • 7 votes
     answers
     views

    HTML2PDF页面大小

    我正在使用PHP和HTML2PDF lib生成pdf文件 . 但我要做的是生成一个pdf文件,其pageSize(宽度/高度)为html内容大小 . 我怎样才能做到这一点? 我的HTML内容是: <page format="432x240" orientation="L" backcolor="#FFFFFF" style=&quo...
  • 1 votes
     answers
     views

    分页符的html2pdf问题(新页面)

    我在使用 html2pdf v4.03 在循环中创建分页符时遇到问题 . 我试过了: $pdf = new HTML2PDF('P', 'A4', 'de', true, 'UTF-8'); $output = ""; for (...) { $output = '<div style="page-break-after: always;"&...
  • 1 votes
     answers
     views

    HTML2PDF中的多个页码

    我有超过20个字母,我使用html2pdf打印成PDF . HTML代码进入foreach循环,我在foreach循环中使用... data ...来打印每个字母 . 但是,正在提交的页码正在应用于整个PDF,我希望为PDF中的每个标签重置页码 . 例如,如果letter1上升2页,那么对于相同PDF中的字母2,它应该从1开始页码 . 下面是我的示例代码 . 我想知道是否有任何替代解决方案来解决...
  • 0 votes
     answers
     views

    随机页面上的Html2pdf对齐方式

    我正在使用html2pdf库: html2pdf.fr/en/default 和我'm having issues with the alignment of an element on a random page. In the latest version it went wrong on page 5. I validated the HTML source and there weren'...
  • 0 votes
     answers
     views

    html2pdf - TCPDF:使用零宽度空间在表格单元格中自动换行(在PDF中替换为'?')

    我正在使用html2pdf(本身使用TCPDF)将HTML表格元素转换为PDF文件 . 此表具有动态内容,这意味着其列数可以变化(有时为3,有时为11列等) . 一列包含一个非常长的数字(例如:BF8545498134587) . 我的问题是,当有很多列时,这个数字超过了列宽 . 我想把它包起来(比如在HTML / CSS中使用wrap-word) . 但是html2pdf不支持这些CSS属性 ....
  • 0 votes
     answers
     views

    phantom-html2pdf css不适用

    尝试使用phantom-html2pdf nodejs将html转换为pdf . 除了一个之外,所有工作都没有问题 . 我尝试将CSS应用于我的输出,但根本没有任何事情发生 . app.get("/ph2p", function(req, res) { var pdf = require("phantom-html2pdf"); var fs = ...
  • 2 votes
     answers
     views

    添加破折号直到换行

    可以设置文本样式,以便添加破折号直到发生换行 . Example: Lorem ipsum dolor sit amet,consectetur adipisicing elit,sed do eiusmod tempor incididunt ut labore et dolore magna aliqua . Ut enim ad minim veniam,quis nostrud ----...
  • 1 votes
     answers
     views

    Odoo 10报告保证金

    我正在使用小标签,我正在尝试使用所有空间,但似乎总是在报告的一侧添加边距(无法使用样式或页面设置删除它) . 我做了一些研究,似乎是html2pdf问题,但我不知道如何在odoo中做到这一点 . 您有什么建议如何删除保证金?我已经附加了我找到的问题和图像的链接 . How to get rid of the left and top margins in css when using html2...

热门问题