com.caucho.quercus.lib.pdf
Class PDFStream
java.lang.Object
com.caucho.quercus.lib.pdf.PDFStream
public class PDFStream
- extends java.lang.Object
pdf object oriented API facade
Method Summary |
void |
clip()
|
void |
closepath()
|
void |
closepathFillStroke()
|
void |
closepathStroke()
|
boolean |
concat(double a,
double b,
double c,
double d,
double e,
double f)
|
void |
continue_text(java.lang.String text)
|
void |
curveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
|
void |
endpath()
|
void |
fill()
|
void |
fillStroke()
|
boolean |
fit_file_image(PDFFileImage img)
|
boolean |
fit_image(PDFImage img)
|
void |
flush()
|
void |
flushToGraph()
|
PDFFont |
getFont()
|
double |
getFontSize()
|
int |
getId()
|
int |
getLength()
|
PDFProcSet |
getProcSet()
|
void |
lineTo(double x,
double y)
|
void |
moveTo(double x,
double y)
|
static java.lang.String |
pdfEscapeText(java.lang.String text)
|
void |
rect(double x,
double y,
double w,
double h)
|
boolean |
restore()
Restores the graphics state |
boolean |
save()
Saves the graphics state |
boolean |
setcolor(java.lang.String fstype,
java.lang.String colorspace,
double c1,
double c2,
double c3,
double c4)
|
void |
setDash(double b,
double w)
|
void |
setFont(PDFFont font,
double size)
|
boolean |
setlinewidth(double w)
|
void |
setTextPos(double x,
double y)
|
void |
show(java.lang.String text)
|
void |
stroke()
|
void |
write(PDFWriter out)
|
void |
writeToStream(WriteStream os)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STROKE
public static int STROKE
FILL
public static int FILL
BOTH
public static int BOTH
getId
public int getId()
setFont
public void setFont(PDFFont font,
double size)
getFont
public PDFFont getFont()
getFontSize
public double getFontSize()
setTextPos
public void setTextPos(double x,
double y)
stroke
public void stroke()
closepath
public void closepath()
clip
public void clip()
curveTo
public void curveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
endpath
public void endpath()
closepathStroke
public void closepathStroke()
closepathFillStroke
public void closepathFillStroke()
fill
public void fill()
fillStroke
public void fillStroke()
lineTo
public void lineTo(double x,
double y)
rect
public void rect(double x,
double y,
double w,
double h)
moveTo
public void moveTo(double x,
double y)
setcolor
public boolean setcolor(java.lang.String fstype,
java.lang.String colorspace,
double c1,
double c2,
double c3,
double c4)
setDash
public void setDash(double b,
double w)
setlinewidth
public boolean setlinewidth(double w)
save
public boolean save()
- Saves the graphics state
restore
public boolean restore()
- Restores the graphics state
concat
public boolean concat(double a,
double b,
double c,
double d,
double e,
double f)
show
public void show(java.lang.String text)
continue_text
public void continue_text(java.lang.String text)
fit_image
public boolean fit_image(PDFImage img)
fit_file_image
public boolean fit_file_image(PDFFileImage img)
flushToGraph
public void flushToGraph()
flush
public void flush()
getProcSet
public PDFProcSet getProcSet()
getLength
public int getLength()
write
public void write(PDFWriter out)
throws java.io.IOException
- Throws:
java.io.IOException
writeToStream
public void writeToStream(WriteStream os)
throws java.io.IOException
- Throws:
java.io.IOException
pdfEscapeText
public static java.lang.String pdfEscapeText(java.lang.String text)