|
| |
Creating a PDF file
pdf = new pdf$([watermark][,onPageheader][,onPagefooter][,onPagebreak][,landscape])
Setting Margins and Page Size
pdf.setMargins(left,right,top,bottom)
pdf.setLandscape(landscape) true =
lanscape, false = portrait
pdf.setPageSize(name) name =
"letter", "legal", "ledger", "executive", "A", "B", "C", "D", "E" or size "width,height"
Setting Tabs and Columns, Word Wrap, Truncation and
Justification
pdf.setRuler(ruler)
lines = pdf.split(text)
Font and Graphic Characteristics
pdf.setFont([color] [,size] [,bold] [,italic] [,underline] [,name]
[,subscript] [,superscript] )
pdf.setFontRender(name)
pdf.setFontSkew(angle)
pdf.setFontScale(xscale,yscale)
pdf.setLetterSpacing(points)
pdf.setWordSpacing(points)
pdf.setGraphic([lineColor] [,lineWeight] [,fillColor])
pdf.setGraphicColor(color)
pdf.setGraphicLineWeight(weight)
pdf.setGraphicFillColor(color)
pdf.setGraphicGrayscale(value) 0.0
to 1.0
pdf.setGraphicLineStyle(style)
"solid", "dot", "dash", or a pdf pattern "[1,2] 3"
Lines and Page Breaks
pdf.lineBreak()
pdf.pageBreak()
Adding Text
pdf.addText(text [,url])
pdf.leftText(text [,url])
pdf.centerText(text [,url])
pdf.rightText(text [,url])
pdf.placeText(x,y,text [,url])
pdf.addTextBox(x,y,height,width,text,just,vjust,shape,dropx,dropy)
Adding Graphic
pdf.drawLine(x1,y1,x2,y2)
pdf.drawLinestring(points)
pdf.drawRectangle(x1,y1,x2,y2)
pdf.drawArc(cx,cy,radius,start,sweep)
pdf.drawCone(cx,cy,radius,start,sweep)
pdf.drawPie(cx,cy,radius,start,slices)
pdf.drawNumberline(g)
pdf.drawCircle(cx,cy,radius)
pdf.drawMarker(x,y,name,size)
pdf.drawSymbol(x,y,char,angle)
pdf.drawGrid(x1,y1,x2,y2,rows,cols,absolute)
pdf.addGraphic(data,height,width,angle,lineColor,lineWeight,bgColor,grayscale,clip,range)
Adding Images (jpeg only)
pdf.addImage(filename [,height] [,width] [,angle])
pdf.placeImage(x,y,filename [,height] [,width] [,angle])
Bookmarks
pdf.addOutline(parent,title,ypos)
Report Generation
pdf.createReportGroup(headerLines,footerLines,onGroupHeader,onGroupFooter,onBeforePagebreak,onAfterPagebreak,
keepTogether,skipIfBlank,pagebreakBefore,pageBreakAfter)
pdf.addReportDetail(values-list [,key-list] [,url-list])
pdf.addHeader(values-list [,url-list])
Saving the PDF File
pdf.writeToFile(filename)
pdf.sendToClient()
pdf.sendToServer(filename)
pdf.downloadToClient(filename)
|