xhtml2pdf

    1熱度

    2回答

    有沒有辦法以aPDF的形式提供apache檢票頁面? 我需要專家的HTML頁面爲PDF。此頁面使用apache wicket構建,幷包含使用shieldUI生成的圖表。 我試圖使用html單元檢索其內容,但質量非常差。 感謝, 勞拉

    1熱度

    1回答

    我正在開發Django網站上的發票PDF生成器。我使用xhtml2pdf。它似乎有效,但編碼不正確。當我使用變音符時,有錯誤的符號/字符。 這是一個觀點: def render_to_pdf(template_src, context_dict): template = get_template("pdf/pdf.html") context = context_dict

    0熱度

    1回答

    我想通過這個循環下載我數據庫中包含的所有pdf。 當我點擊按鈕時,只有第一個文件被下載。 <?php include_once('functions/functions.php'); require_once('../invoice/html2pdf.class.php'); if (isset($_GET['download'])) { if ($_GET['download']

    2熱度

    1回答

    我在這個網站上給了'tuomastik'一些很棒的代碼,並且稍微調整了它以適合我。但是,我花了幾個小時試圖編輯它,以便打印到一個PDF而不是多個(一個PDF,但每個報告都從一個新頁面開始),但是我的HTML並不像我想要的那麼好,而且我我陷入困境。 的代碼是: HTML <html> <head> <style type="text/css"> html, body {

    1熱度

    1回答

    即時通訊使用xhtml2pdf在django中生成報告,我想讓我的一個單元格文本垂直顯示,但我無法使用css。 下面是一些嘗試: .vertical-text { writing-mode: tb-rl; } <table> <tbody> <tr> <td class="vertical-text" >V text</td> </t

    0熱度

    1回答

    我試圖使用生成一個HTML2PDF PDF格式。 在我的本地主機,一切正常。它加載3秒鐘。 但在我的服務器上需要30秒以上! 我已經檢查了memory_limit的,它說128M,把它改爲256M(PHP代碼),它具有相同的性能。 更改庫是不是一種選擇,雖然,我第一次嘗試MPDF,但它不支持在表塊的水平。 這裏是我的代碼: include_once APPPATH . 'third_party/h

    1熱度

    1回答

    每一個評論:我沒有改變我的代碼: providers = Provider.objects.all() context = { 'providers':providers} 我知道它沒有發揮作用,但想我會繼續嘗試它,因爲奇怪的事情發生。我擔心這個錯誤是在我的django版本上運行的模塊本身。 我沒有看到這個其他的答案,因爲我只是用什麼記錄在這裏讓我感到困惑: https://spapas.g

    1熱度

    1回答

    我正在嘗試創建一個將html文件轉換爲pdf的django項目。我使用的是xhtml2pdf,特別是比薩。我可以得到pdf,但pdf中沒有表單域。在我的觀點我有一個包含以下代碼的方法: views.py from django.template.loader import get_template from django.template import Context from django.

    0熱度

    1回答

    我嘗試將html轉換爲pdf。我使用xhtml2pdf。 我的代碼:創建 # -*- coding: utf-8 -*- from xhtml2pdf import pisa sourceHtml = '<html>' \ ' <head>' \ ' <meta content="text/html; charset=utf-8" http-equiv="Cont

    0熱度

    1回答

    我生成pdf與xhtml2pdf圖書館,我有一個背景圖像奇怪的情況。顯示 形象,但它不適合@page,它的設置是這樣的 @page { size: {% block page_size %}A4 {% endblock %}; background: url("{% static 'folder/background.png' %}") no-repeat cent