jPDFWriter是一個(gè)Java™類庫(kù),可以幫助用戶無(wú)需安裝任何第三方驅(qū)動(dòng)或軟件即可直接從Java程序中創(chuàng)建PDF文件。jPDFWriter模仿了標(biāo)準(zhǔn)Java™類進(jìn)行打印和圖形的拖曳,以便減少用戶學(xué)會(huì)使用該庫(kù)和進(jìn)行即在代碼復(fù)用的時(shí)間。
jPDFWriter is a Java™ class library that allows you to create PDF documents directly from your Java programs without having to install any third party drivers or software. jPDFWriter emulates the standard Java™ classes to print and draw graphics to reduce the learning curve when using the library and reuse existing code.
需要培訓(xùn)、定制、外包?
請(qǐng)聯(lián)系我們!:800018081
慧都專業(yè)技術(shù)團(tuán)隊(duì)幫助您提高效率,節(jié)省成本,降低風(fēng)險(xiǎn)!
* 關(guān)于本產(chǎn)品的分類與介紹僅供參考,精準(zhǔn)產(chǎn)品資料以介紹為準(zhǔn),如需購(gòu)買(mǎi)請(qǐng)先行測(cè)試。
PDFWriter可以使用一下兩種方式創(chuàng)建PDF文件:
- 可以使用jPDFWriter非常簡(jiǎn)單的API直接創(chuàng)建PDF文件。用戶可以方便的創(chuàng)建PDFDocument對(duì)象,創(chuàng)建盡可能多的PDFPage對(duì)象以滿足需要,在頁(yè)面上畫(huà)線條,圖片以及其他Graphics2D支持的元素,然后將之保存
- jPDFWriter也擴(kuò)展了標(biāo)準(zhǔn)的PrinterJob以幫助用戶以如同使用物理打印機(jī)時(shí)創(chuàng)建的PDF文件一般的方式創(chuàng)建PDF文件。這可以幫助用于重用即在的打印編碼,且可以幫助應(yīng)用程序在運(yùn)行時(shí)決定是否需要將輸出發(fā)送至打印機(jī)或者PDF文件
主要功能
- 其效仿了java圖形和打印類,因此盡可能的減少了代碼修改和訓(xùn)練
- 用戶在部署其應(yīng)用程序的時(shí)候無(wú)需安裝或者配置附加的驅(qū)動(dòng)程序或者軟件
- *使用Java™編寫(xiě)-允許用戶的應(yīng)用程序保持平立性
- 支持PDF文件壓縮,以減小體積
- 支持對(duì)PDF文件進(jìn)行加密和權(quán)限設(shè)置
- 支持字體嵌入
- 支持可選模式的JBIG2圖像
- 可在運(yùn)行的時(shí)候決定送至打印機(jī)還是保存至文件
- 支持所有的圖片格式,包括JBIG2 和 JPEG 2000
- 在JDK 1.3.1及其以上環(huán)境中經(jīng)過(guò)測(cè)試
PDFWriter can create PDF files in two ways:
- PDF files can be created directly using jPDFWriter's very simple API. Simply create a PDFDocument object, create as many PDFPage objects as necessary, draw strings, graphics or any other elements supported by Graphics2D to the pages and then save the document.
- jPDFWriter also extends the standard Java PrinterJob so that you can create PDF files in the same way that you would print to a physical printer. This allows for reuse of existing printing code and for an application to decide, at runtime, whether to send the output to a printer or to a PDF file.
Main Features
- Emulates the java graphics and printing classes, thus minimizing code changes and training.
- No need to install or configure additional drivers or software when deploying your application.
- Written entirely in Java™ - allows your application to remain platform independent.
- Supports PDF compression for smaller document size.
- Support for PDF encryption and permissions
- Support for embedding fonts.
- Support for JBIG2 images with optional module.
- Allows runtime decision to go to a printer or to a PDF file.
- Support for all image types, including JBIG2 and JPEG 2000.
- Tested on JDK 1.3.1 and above.