public class PDFStream extends PDFDictionary implements PDFConstants
The stream allows to write dictionary entries. The /Length entry is written automatically, referencing an object which will also be written just after the stream is closed and the length is calculated.
out, pdf
CAP_BUTT, CAP_ROUND, CAP_SQUARE, dateFormat, EOL, JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND, MODE_CLIP, MODE_FILL, MODE_FILL_CLIP, MODE_FILL_STROKE, MODE_FILL_STROKE_CLIP, MODE_INVISIBLE, MODE_STROKE, MODE_STROKE_CLIP
Modifier and Type | Method and Description |
---|---|
void |
beginCompatibility() |
void |
beginText() |
void |
cap(int capStyle) |
void |
charSpace(double charSpace) |
void |
clip() |
void |
clipEvenOdd() |
void |
closeAndStroke() |
void |
closeFillAndStroke() |
void |
closeFillEvenOddAndStroke() |
void |
closePath() |
void |
colorSpace(double g) |
void |
colorSpace(double[] color) |
void |
colorSpace(double[] color,
PDFName name) |
void |
colorSpace(double r,
double g,
double b) |
void |
colorSpace(double c,
double m,
double y,
double k) |
void |
colorSpace(PDFName colorSpace) |
void |
colorSpaceStroke(double g) |
void |
colorSpaceStroke(double[] color) |
void |
colorSpaceStroke(double[] color,
PDFName name) |
void |
colorSpaceStroke(double r,
double g,
double b) |
void |
colorSpaceStroke(double c,
double m,
double y,
double k) |
void |
colorSpaceStroke(PDFName colorSpace) |
void |
comment(String comment) |
void |
cubic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3) |
void |
cubicV(double x2,
double y2,
double x3,
double y3) |
void |
cubicY(double x1,
double y1,
double x3,
double y3) |
void |
dash(float[] dash,
double phase) |
void |
dash(int[] dash,
double phase) |
boolean |
drawPath(Shape s)
Draws the points of the shape using path construction
operators.
|
void |
endCompatibility() |
void |
endPath() |
void |
endText() |
void |
fill() |
void |
fillAndStroke() |
void |
fillEvenOdd() |
void |
fillEvenOddAndStroke() |
void |
flatness(double flatness) |
void |
font(PDFName fontName,
double size) |
int |
getLength() |
void |
glyph(double wx,
double wy) |
void |
glyph(double wx,
double wy,
double llx,
double lly,
double urx,
double ury) |
void |
image(RenderedImage image,
Color bkg,
String encode)
Image convenience function (see Table 4.35).
|
void |
imageMask(RenderedImage image,
String encode) |
void |
inlineImage(RenderedImage image,
Color bkg,
String encode)
Inline Image convenience function (see Table 4.39 and 4.40).
|
void |
join(int joinStyle) |
void |
leading(double leading) |
void |
line(double x,
double y) |
void |
matrix(AffineTransform xform) |
void |
matrix(double m00,
double m10,
double m01,
double m11,
double m02,
double m12) |
void |
mitterLimit(double limit) |
void |
move(double x,
double y) |
void |
print(String s) |
void |
println(String s) |
void |
rectangle(double x,
double y,
double width,
double height) |
void |
rendering(int mode) |
void |
restore() |
void |
rise(double rise) |
void |
save() |
void |
scale(double scale) |
void |
shade(PDFName name) |
void |
show(Object[] array) |
void |
show(String text) |
void |
showLine(double wordSpace,
double charSpace,
String text) |
void |
showLine(String text) |
void |
state(PDFName stateDictionary) |
void |
stroke() |
void |
text(double x,
double y) |
void |
textLeading(double x,
double y) |
void |
textLine() |
void |
textMatrix(double a,
double b,
double c,
double d,
double e,
double f) |
void |
width(double width) |
void |
wordSpace(double wordSpace) |
void |
xObject(PDFName name) |
public int getLength()
public void print(String s) throws IOException
IOException
public void println(String s) throws IOException
IOException
public void comment(String comment) throws IOException
IOException
public void save() throws IOException
IOException
public void restore() throws IOException
IOException
public void matrix(AffineTransform xform) throws IOException
IOException
public void matrix(double m00, double m10, double m01, double m11, double m02, double m12) throws IOException
IOException
public void width(double width) throws IOException
IOException
public void cap(int capStyle) throws IOException
IOException
public void join(int joinStyle) throws IOException
IOException
public void mitterLimit(double limit) throws IOException
IOException
public void dash(int[] dash, double phase) throws IOException
IOException
public void dash(float[] dash, double phase) throws IOException
IOException
public void flatness(double flatness) throws IOException
IOException
public void state(PDFName stateDictionary) throws IOException
IOException
public void cubic(double x1, double y1, double x2, double y2, double x3, double y3) throws IOException
IOException
public void cubicV(double x2, double y2, double x3, double y3) throws IOException
IOException
public void cubicY(double x1, double y1, double x3, double y3) throws IOException
IOException
public void move(double x, double y) throws IOException
IOException
public void line(double x, double y) throws IOException
IOException
public void closePath() throws IOException
IOException
public void rectangle(double x, double y, double width, double height) throws IOException
IOException
public void stroke() throws IOException
IOException
public void closeAndStroke() throws IOException
IOException
public void fill() throws IOException
IOException
public void fillEvenOdd() throws IOException
IOException
public void fillAndStroke() throws IOException
IOException
public void fillEvenOddAndStroke() throws IOException
IOException
public void closeFillAndStroke() throws IOException
IOException
public void closeFillEvenOddAndStroke() throws IOException
IOException
public void endPath() throws IOException
IOException
public void clip() throws IOException
IOException
public void clipEvenOdd() throws IOException
IOException
public void beginText() throws IOException
IOException
public void endText() throws IOException
IOException
public void charSpace(double charSpace) throws IOException
IOException
public void wordSpace(double wordSpace) throws IOException
IOException
public void scale(double scale) throws IOException
IOException
public void leading(double leading) throws IOException
IOException
public void font(PDFName fontName, double size) throws IOException
IOException
public void rendering(int mode) throws IOException
IOException
public void rise(double rise) throws IOException
IOException
public void text(double x, double y) throws IOException
IOException
public void textLeading(double x, double y) throws IOException
IOException
public void textMatrix(double a, double b, double c, double d, double e, double f) throws IOException
IOException
public void textLine() throws IOException
IOException
public void show(String text) throws IOException
IOException
public void showLine(String text) throws IOException
IOException
public void showLine(double wordSpace, double charSpace, String text) throws IOException
IOException
public void show(Object[] array) throws IOException
IOException
public void glyph(double wx, double wy) throws IOException
IOException
public void glyph(double wx, double wy, double llx, double lly, double urx, double ury) throws IOException
IOException
public void colorSpace(PDFName colorSpace) throws IOException
IOException
public void colorSpaceStroke(PDFName colorSpace) throws IOException
IOException
public void colorSpace(double[] color) throws IOException
IOException
public void colorSpaceStroke(double[] color) throws IOException
IOException
public void colorSpace(double[] color, PDFName name) throws IOException
IOException
public void colorSpaceStroke(double[] color, PDFName name) throws IOException
IOException
public void colorSpace(double g) throws IOException
IOException
public void colorSpaceStroke(double g) throws IOException
IOException
public void colorSpace(double r, double g, double b) throws IOException
IOException
public void colorSpaceStroke(double r, double g, double b) throws IOException
IOException
public void colorSpace(double c, double m, double y, double k) throws IOException
IOException
public void colorSpaceStroke(double c, double m, double y, double k) throws IOException
IOException
public void shade(PDFName name) throws IOException
IOException
public void image(RenderedImage image, Color bkg, String encode) throws IOException
image
- Image to writebkg
- Background color, null for transparent imageencode
- ImageConstants.ZLIB
or ImageConstants.JPG
IOException
- thrown by ImageBytespublic void imageMask(RenderedImage image, String encode) throws IOException
IOException
public void inlineImage(RenderedImage image, Color bkg, String encode) throws IOException
image
- Image to writebkg
- Background color, null for transparent imageencode
- ImageConstants.ZLIB
or ImageConstants.JPG
IOException
- thrown by ImageBytespublic boolean drawPath(Shape s) throws IOException
IOException
public void xObject(PDFName name) throws IOException
IOException
public void beginCompatibility() throws IOException
IOException
public void endCompatibility() throws IOException
IOException
Copyright © 2014. All rights reserved.