|
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
public class PDF3Printer
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.
| 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 | |
|---|---|
PDF3Printer()
Create an empty PDF3Printer. |
|
PDF3Printer(OutputStream out)
Create a PDF3Printer to the specified output. |
|
| Method Summary | |
|---|---|
void |
addBookmark(inetsoft.report.pdf.Node node)
Add bookmark. |
void |
close()
Close the pdf output stream. |
char[] |
drawString(String str,
double sx,
double sy)
Draw string with double coordinate values. |
protected String |
emitFont(Font font)
Send the set font command to output. |
protected void |
emitFont2(Font font)
Send the set font command to output. |
protected String |
getEmitFontName(inetsoft.report.pdf.FontInfo finfo,
Font font)
Get the font name used to emit font descriptor. |
String |
getFontName(Font font)
Get the PDF font name. |
String[] |
getFullyEmbeddedFonts()
Gets the names of the fonts that should be fully embedded. |
protected String |
getPSName(String name,
Font font)
|
protected String |
getRegularFontName(String fname)
Remove the pending style string from font name, such as Bold, Italic. |
boolean |
isBase14Only()
Check whether to use base14 fonts only. |
boolean |
isEmbedFont()
Check whether to embed fonts in PDF. |
void |
setBase14Only(boolean base14)
Set whether to use base14 fonts only. |
void |
setEmbedFont(boolean embed)
Set whether to embed fonts in PDF. |
void |
setFullyEmbeddedFonts(String[] fullyEmbeddedFonts)
Sets the names of the fonts that should be fully embedded. |
protected float |
stringWidth(String str)
Return the string width. |
| 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 PDF3Printer()
public PDF3Printer(OutputStream out)
| Method Detail |
|---|
public void setBase14Only(boolean base14)
base14 - true to use base14 fonts only.public boolean isBase14Only()
public void setEmbedFont(boolean embed)
embed - true to embed fonts.public boolean isEmbedFont()
public void setFullyEmbeddedFonts(String[] fullyEmbeddedFonts)
fullyEmbeddedFonts - the font names.public String[] getFullyEmbeddedFonts()
public String getFontName(Font font)
getFontName in interface PDFDevicegetFontName in class PDFPrinterfont - font object.
protected String getPSName(String name,
Font font)
public void addBookmark(inetsoft.report.pdf.Node node)
protected String emitFont(Font font)
emitFont in class PDFPrinterprotected String getRegularFontName(String fname)
protected float stringWidth(String str)
stringWidth in class PDFPrinterprotected void emitFont2(Font font)
public void close()
close in interface PDFDeviceclose in class PDFPrinter
public char[] drawString(String str,
double sx,
double sy)
drawString in class PDFPrinter
protected String getEmitFontName(inetsoft.report.pdf.FontInfo finfo,
Font font)
|
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 | ||||||||