Client/Server端的PDF打印解決方案:pdfmake

w427 10年前發布 | 49K 次閱讀 pdfmake PDF工具包

pdfmake 是基于客戶端/服務器的 PDF 打印解決方案,完全基于 JavaScript 開發。提供強大的排版引擎

安裝:

client-version bower install pdfmake
server-version npm install pdfmake

特性:

  • line-wrapping,

  • text-alignments (left, right, centered, justified),

  • numbered and bulleted lists,

  • tables and columns

    • auto/fixed/star-sized widths,

    • col-spans and row-spans,

    • headers automatically repeated in case of a page-break,

  • images and vector graphics,

  • convenient styling and style inheritance,

  • page headers and footers:

    • static or dynamic content,

    • access to current page number and page count,

  • background-layer

  • page dimensions and orientations,

  • margins,

  • custom page breaks,

  • font embedding,

  • support for complex, multi-level (nested) structures,

  • helper methods for opening/printing/downloading the generated PDF.

項目主頁:http://www.baiduhome.net/lib/view/home/1433057929260

 本文由用戶 w427 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!