欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

wkhtmltopdf如何協(xié)助后端導(dǎo)出復(fù)雜pdf文件的第三方軟件

這期內(nèi)容當(dāng)中小編將會(huì)給大家?guī)?lái)有關(guān)wkhtmltopdf如何協(xié)助后端導(dǎo)出復(fù)雜pdf文件的第三方軟件,文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。

創(chuàng)新互聯(lián)建站專注于鏡湖網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供鏡湖營(yíng)銷型網(wǎng)站建設(shè),鏡湖網(wǎng)站制作、鏡湖網(wǎng)頁(yè)設(shè)計(jì)、鏡湖網(wǎng)站官網(wǎng)定制、微信小程序服務(wù),打造鏡湖網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供鏡湖網(wǎng)站排名全網(wǎng)營(yíng)銷落地服務(wù)。

(1)術(shù)語(yǔ)定義

文檔對(duì)象
“文檔對(duì)象”是指PDF文檔中的文檔對(duì)象,共有三種類型的“文檔對(duì)象”,他們分別是“頁(yè)面對(duì)象”,“封面對(duì)象”和“目錄對(duì)象”。
頁(yè)面對(duì)象
“頁(yè)面對(duì)象”是指以頁(yè)面的形式在PDF文檔中呈現(xiàn)的對(duì)象,這個(gè)是相對(duì)于“封面對(duì)象”和“目錄對(duì)象”來(lái)講的。此類對(duì)象會(huì)成為PDF文檔中內(nèi)容。
封面對(duì)象
“封面對(duì)象”是指以封面的形式在PDF文檔中呈現(xiàn)的對(duì)象。這類對(duì)象會(huì)成為PDF文檔中的封面。
目錄對(duì)象
“目錄對(duì)象”是以目錄的形式在PDF文檔中呈現(xiàn)的對(duì)象,又叫“TOC對(duì)象”。這類對(duì)象會(huì)成為PDF文檔中的目錄。
大綱
“大綱”是指閱讀PDF文檔時(shí)的書簽導(dǎo)航。
外鏈
“外鏈”是指所有在這個(gè)頁(yè)面中且不指向它自身頁(yè)面中錨點(diǎn)的超鏈接。
內(nèi)鏈
“內(nèi)鏈”是指在這個(gè)頁(yè)面中且指向的目標(biāo)頁(yè)面是這個(gè)頁(yè)面本身中的一個(gè)錨點(diǎn)的超鏈接。

(2)命令格式

wkhtmltopdf [GLOBAL OPTION]... [OBJECT]... <output file>

上述代碼就是 wkhtmltopdf 的命令行格式,看似簡(jiǎn)單,其實(shí)在 [GLOBAL OPTION] 和 [OBJECT] 中還別有洞天。預(yù)知詳情,且聽我慢慢道來(lái)。

(3)參數(shù)

常規(guī)選項(xiàng)

–allow <path> 允許加載從指定的文件夾中的文件或文件(可重復(fù))
–book* 設(shè)置一會(huì)打印一本書的時(shí)候,通常設(shè)置的選項(xiàng)
–collate 打印多份副本時(shí)整理
–cookie <name> <value> 設(shè)置一個(gè)額外的cookie(可重復(fù))
–cookie-jar <path> 讀取和寫入的Cookie,并在提供的cookie jar文件
–copies <number> 復(fù)印打印成pdf文件數(shù)(默認(rèn)為1)
–cover* <url> 使用HTML文件作為封面。它會(huì)帶頁(yè)眉和頁(yè)腳的TOC之前插入
–custom-header <name> <value> 設(shè)置一個(gè)附加的HTTP頭(可重復(fù))
–debug-javascript 顯示的javascript調(diào)試輸出
–default-header* 添加一個(gè)缺省的頭部,與頁(yè)面的左邊的名稱,頁(yè)面數(shù)到右邊,例如: –header-left '[webpage]’ –header-right ‘[page]/[toPage]' –header-line
–disable-external-links* 禁止生成鏈接到遠(yuǎn)程網(wǎng)頁(yè) –disable-internal-links* 禁止使用本地鏈接 –disable-javascript 禁止讓網(wǎng)頁(yè)執(zhí)行JavaScript
–disable-pdf-compression* 禁止在PDF對(duì)象使用無(wú)損壓縮
–disable-smart-shrinking* 禁止使用WebKit的智能戰(zhàn)略收縮,使像素/ DPI比沒有不變
–disallow-local-file-access 禁止允許轉(zhuǎn)換的本地文件讀取其他本地文件,除非explecitily允許用 –allow
–dpi <dpi> 顯式更改DPI(這對(duì)基于X11的系統(tǒng)沒有任何影響)
–enable-plugins 啟用已安裝的插件(如Flash –encoding <encoding> 設(shè)置默認(rèn)的文字編碼
–extended-help 顯示更廣泛的幫助,詳細(xì)介紹了不常見的命令開關(guān)
–forms* 打開HTML表單字段轉(zhuǎn)換為PDF表單域
–grayscale PDF格式將在灰階產(chǎn)生 –help Display help
–htmldoc 輸出程序HTML幫助 –ignore-load-errors 忽略claimes加載過(guò)程中已經(jīng)遇到了一個(gè)錯(cuò)誤頁(yè)面
–lowquality 產(chǎn)生低品質(zhì)的PDF/ PS。有用縮小結(jié)果文檔的空間
–manpage 輸出程序手冊(cè)頁(yè)
–margin-bottom <unitreal> 設(shè)置頁(yè)面下邊距 (default 10mm)
–margin-left <unitreal> 將左邊頁(yè)邊距 (default 10mm)
–margin-right <unitreal> 設(shè)置頁(yè)面右邊距 (default 10mm)
–margin-top <unitreal> 設(shè)置頁(yè)面上邊距 (default 10mm)
–minimum-font-size <int> 最小字體大小 (default 5)
–no-background 不打印背景 –orientation <orientation> 設(shè)置方向?yàn)闄M向或縱向
–page-height <unitreal> 頁(yè)面高度 (default unit millimeter)
–page-offset* <offset> 設(shè)置起始頁(yè)碼 (default 1)
–page-size <size> 設(shè)置紙張大小: A4, Letter, etc.
–page-width <unitreal> 頁(yè)面寬度 (default unit millimeter)
–password <password> HTTP驗(yàn)證密碼
–post <name> <value> Add an additional post field (repeatable)
–post-file <name> <path> Post an aditional file (repeatable)
–print-media-type* 使用的打印介質(zhì)類型,而不是屏幕
–proxy <proxy> 使用代理
–quiet Be less verbose
–read-args-from-stdin 讀取標(biāo)準(zhǔn)輸入的命令行參數(shù)
–readme 輸出程序自述 –redirect-delay <msec> 等待幾毫秒為JS-重定向(default 200)
–replace* <name> <value> 替換名稱,值的頁(yè)眉和頁(yè)腳(可重復(fù))
–stop-slow-scripts 停止運(yùn)行緩慢的JavaScripts
–title <text> 生成的PDF文件的標(biāo)題(第一個(gè)文檔的標(biāo)題使用,如果沒有指定)
–toc* 插入的內(nèi)容的表中的文件的開頭 –use-xserver* 使用X服務(wù)器(一些插件和其他的東西沒有X11可能無(wú)法正常工作)
–user-style-sheet <url> 指定用戶的樣式表,加載在每一頁(yè)中 –username <username> HTTP認(rèn)證的用戶名
–version 輸出版本信息退出 –zoom <float> 使用這個(gè)縮放因子 (default 1)

頁(yè)眉和頁(yè)腳選項(xiàng)

–header-center* <text> (設(shè)置在中心位置的頁(yè)眉內(nèi)容)
–header-font-name* <name> (default Arial) (設(shè)置頁(yè)眉的字體名稱)
–header-font-size* <size> (設(shè)置頁(yè)眉的字體大小)
–header-html* <url> (添加一個(gè)HTML頁(yè)眉,后面是網(wǎng)址)
–header-left* <text> (左對(duì)齊的頁(yè)眉文本)
–header-line* (顯示一條線在頁(yè)眉下)
–header-right* <text> (右對(duì)齊頁(yè)眉文本)
–header-spacing* <real> (設(shè)置頁(yè)眉和內(nèi)容的距離,默認(rèn)0)
–footer-center* <text> (設(shè)置在中心位置的頁(yè)腳內(nèi)容)
–footer-font-name* <name> (設(shè)置頁(yè)腳的字體名稱)
–footer-font-size* <size> (設(shè)置頁(yè)腳的字體大小default 11)
–footer-html* <url> (添加一個(gè)HTML頁(yè)腳,后面是網(wǎng)址)
–footer-left* <text> (左對(duì)齊的頁(yè)腳文本)
–footer-line* 顯示一條線在頁(yè)腳內(nèi)容上)
–footer-right* <text> (右對(duì)齊頁(yè)腳文本)
–footer-spacing* <real> (設(shè)置頁(yè)腳和內(nèi)容的距離)
./wkhtmltopdf –footer-right '[page]/[topage]' https://www.baidu.com baidu.pdf
./wkhtmltopdf –header-center '報(bào)表' –header-line –margin-top 2cm –header-line http://192.168.212.139/oma/ oma.pdf

表內(nèi)容選項(xiàng)中

–toc-depth* <level> Set the depth of the toc (default 3)
–toc-disable-back-links* Do not link from section header to toc
–toc-disable-links* Do not link from toc to sections
–toc-font-name* <name> Set the font used for the toc (default Arial)
–toc-header-font-name* <name> The font of the toc header (if unset use –toc-font-name)
–toc-header-font-size* <size> The font size of the toc header (default 15)
–toc-header-text* <text> The header text of the toc (default Table Of Contents)
–toc-l1-font-size* <size> Set the font size on level 1 of the toc (default 12)
–toc-l1-indentation* <num> Set indentation on level 1 of the toc (default 0)
–toc-l2-font-size* <size> Set the font size on level 2 of the toc (default 10)
–toc-l2-indentation* <num> Set indentation on level 2 of the toc (default 20)
–toc-l3-font-size* <size> Set the font size on level 3 of the toc (default 8)
–toc-l3-indentation* <num> Set indentation on level 3 of the toc (default 40)
–toc-l4-font-size* <size> Set the font size on level 4 of the toc (default 6)
–toc-l4-indentation* <num> Set indentation on level 4 of the toc (default 60)
–toc-l5-font-size* <size> Set the font size on level 5 of the toc (default 4)
–toc-l5-indentation* <num> Set indentation on level 5 of the toc (default 80)
–toc-l6-font-size* <size> Set the font size on level 6 of the toc (default 2)
–toc-l6-indentation* <num> Set indentation on level 6 of the toc (default 100)
–toc-l7-font-size* <size> Set the font size on level 7 of the toc (default 0)
–toc-l7-indentation* <num> Set indentation on level 7 of the toc (default 120)
–toc-no-dots* Do not use dots, in the toc

輪廓選項(xiàng)

–dump-outline <file> 轉(zhuǎn)儲(chǔ)目錄到一個(gè)文件
–outline 顯示目錄(文章中h2,h3來(lái)定)
–outline-depth <level> 設(shè)置目錄的深度(默認(rèn)為4)

頁(yè)腳和頁(yè)眉

  • [page] 由當(dāng)前正在打印的頁(yè)的數(shù)目代替

  • [frompage] 由要打印的第一頁(yè)的數(shù)量取代

  • [topage] 由最后一頁(yè)要打印的數(shù)量取代

  • [webpage] 通過(guò)正在打印的頁(yè)面的URL替換

  • [section] 由當(dāng)前節(jié)的名稱替換

  • [subsection] 由當(dāng)前小節(jié)的名稱替換

  • [date] 由當(dāng)前日期系統(tǒng)的本地格式取代

  • [time] 由當(dāng)前時(shí)間,系統(tǒng)的本地格式取代

上述就是小編為大家分享的wkhtmltopdf如何協(xié)助后端導(dǎo)出復(fù)雜pdf文件的第三方軟件了,如果剛好有類似的疑惑,不妨參照上述分析進(jìn)行理解。如果想知道更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。

分享標(biāo)題:wkhtmltopdf如何協(xié)助后端導(dǎo)出復(fù)雜pdf文件的第三方軟件
文章地址:http://aaarwkj.com/article48/igdpep.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供Google、手機(jī)網(wǎng)站建設(shè)服務(wù)器托管、網(wǎng)站內(nèi)鏈、商城網(wǎng)站、域名注冊(cè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)
国产大学生情侣在线视频| 亚洲青青草原自拍偷拍| 成人黄色动作片在线观看| 亚洲国产自拍精品视频| 亚洲欧美日韩国产亚洲欧美日韩国产| 国产成人精品一二三四区| 亚洲精品色播一区二区| 在线成人影院中文字幕| 国产成人亚洲精品另类动态| 日韩av在线高清播放| 国产成人av中文字暮在线| 日本福利资源在线观看| 亚洲熟妇精品一区二区三区| 黄色av免费播放网站| 熟妇人妻精品视频一区二区| av中文字幕亚洲一区二区| 高清免费国产日日操夜夜草| 国产免费不卡午夜福利在线| 97国产在线视频观看| 日韩永久免费av网站| 黄色av手机在线观看| 三级av电影中文字幕| 嫩草网站国产精品一区二| 人妻少妇偷人精品免费看| 日韩中文字幕在线乱码| 日韩中文字幕乱码一区| 国产三级国产精品国产国在线观看| 日韩美女毛片啪啪响| 亚洲精品在线观看日本| 国产熟女高潮一区二区| 免费观看国内性生活大片| 九九六热这里只有精品| 手机在线观看午夜小视频| 亚洲精品在线观看毛片| 黄片在线免费在线播放| 亚洲人成网站在线免费看| 国产精品国产三级区别| 欧美亚洲午夜一二综合| 高潮内射主播自拍一区| 免费无遮挡18禁视频| 国产剧情av专业在线观看|