|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Graphics
java.awt.Graphics2D
inetsoft.report.PDFPrinter
inetsoft.report.pdf.PDF3Printer
inetsoft.report.pdf.PDF4Printer
public class PDF4Printer
PDF3Printer implements the full PDF file format, including font embedding. It has the same API as the regular PDFPrinter. It should not be used directly to generate a PDF. Use PDF3Generator.getPDFGenerator() and generate a PDF from the generator.
PDF4Printer generates PDF files confirming to the PDF 1.3 (Acrobat 4.0) specification. It supports CJK fonts using the Acrobat 4.0 Asian language support pack.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class inetsoft.report.PDFPrinter |
|---|
PDFPrinter.CountWriter, PDFPrinter.ImageInfoCache, PDFPrinter.PDFWriter, PDFPrinter.RadioButtonGroup, PDFPrinter.StructurePart |
| Field Summary |
|---|
| Fields inherited from class inetsoft.report.PDFPrinter |
|---|
afm, annots, annotsIds, charname, charRanges, fm, fnList, fnObj, fontFn, fontmap, fontObj, insetx, others, outlines, pageheight, pageIds, pagewidth, pg, psFontName, RESOLUTION |
| Fields inherited from interface inetsoft.report.internal.CustomGraphics |
|---|
G_DASH_LINE, JPEG_EXPORT |
| Constructor Summary | |
|---|---|
PDF4Printer()
Create an empty PDF4Printer. |
|
PDF4Printer(OutputStream out)
Create a PDF4Printer to the specified output. |
|
| Method Summary | |
|---|---|
void |
close()
Close the pdf output stream. |
protected String |
emitFont(Font font)
Send the set font command to output. |
protected void |
emitTj(String txt)
Output the Tj command. |
String |
getFontName(Font font)
Get the PDF font name. |
String |
getPDFVersion()
Return the PDF version of the documents generated by this class. |
protected String |
getPSName(String name,
Font font)
Format font name. |
protected boolean |
isCurrentCJKFont()
Check if current using font is CJK font. |
boolean |
isEmbedCMap()
Check whether to embed cmaps in PDF. |
void |
setEmbedCMap(boolean embed)
Set whether to embed cmaps in PDF. |
protected float |
stringWidth(String str)
Return the string width. |
protected void |
updateCharacterSet(String s)
Updates the set of characters used for the current font to include the characters of the specified string. |
| Methods inherited from class inetsoft.report.pdf.PDF3Printer |
|---|
addBookmark, drawString, emitFont2, getEmitFontName, getFullyEmbeddedFonts, getRegularFontName, isBase14Only, isEmbedFont, setBase14Only, setEmbedFont, setFullyEmbeddedFonts |
| Methods inherited from class java.awt.Graphics |
|---|
finalize, getClipBounds, getClipRect, hitClip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PDF4Printer()
public PDF4Printer(OutputStream out)
| Method Detail |
|---|
public void setEmbedCMap(boolean embed)
embed - true to embed cmaps.public boolean isEmbedCMap()
public String getFontName(Font font)
getFontName in interface PDFDevicegetFontName in class PDF3Printerfont - font object.
protected float stringWidth(String str)
stringWidth in class PDF3Printerprotected String emitFont(Font font)
emitFont in class PDF3Printerprotected boolean isCurrentCJKFont()
isCurrentCJKFont in class PDFPrinterprotected void updateCharacterSet(String s)
updateCharacterSet in class PDFPrinters - the string to add.protected void emitTj(String txt)
emitTj in class PDFPrinterpublic void close()
close in interface PDFDeviceclose in class PDF3Printerpublic String getPDFVersion()
getPDFVersion in class PDFPrinter
protected String getPSName(String name,
Font font)
getPSName in class PDF3Printer
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||