Class PDFNet.PolygonAnnot
PDFNet.PolygonAnnot
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
							
							 A polygon annotation 
						 | 
					
| Method Attributes | Method Name and Description | 
|---|---|
| <static> | 
								 PDFNet.PolygonAnnot.create(doc, pos)
								 
								Creates a new Polygon annotation in the specified document. 
							 | 
						
| <static> | 
								 PDFNet.PolygonAnnot.createFromAnnot(ann)
								 
								creates a Polygon annotation and initializes it using given annotation object. 
							 | 
						
| <static> | 
								 PDFNet.PolygonAnnot.createFromObj(d)
								 
								creates a Polygon annotation and initializes it using given Cos/SDF object. 
							 | 
						
					Method Detail
				
				
					 
					<static> 
					
					{PolygonAnnot}
					PDFNet.PolygonAnnot.create(doc, pos)
					
					
					
						Creates a new Polygon annotation in the specified document.
						
						
					
					
					
					
						
							- Parameters:
 - {SDFDoc} doc
 - A document to which the Polygon annotation is added.
 - {rect} pos
 - A rectangle specifying the Polygon annotation's bounds in default user space units.
 
- Returns:
 - {PolygonAnnot} A promise that resolves to a newly created blank Polygon annotation.
 
<static> 
					
					{PolygonAnnot}
					PDFNet.PolygonAnnot.createFromAnnot(ann)
					
					
					
						creates a Polygon annotation and initializes it using given annotation object.
						
						
					
					
					
					
						
							- Parameters:
 - {Annot} ann
 - Annot object used to initialize the Polygon annotation.
 
- Returns:
 - {PolygonAnnot} A promise that resolves to an object of type: "PolygonAnnot" (generated documentation)
 
<static> 
					
					{PolygonAnnot}
					PDFNet.PolygonAnnot.createFromObj(d)
					
					
					
						creates a Polygon annotation and initializes it using given Cos/SDF object.
						
						
					
					
					
					
						
							- Parameters:
 - {Obj} d
 - The Cos/SDF object to initialze the annotation with.
 
- Returns:
 - {PolygonAnnot} A promise that resolves to an object of type: "PolygonAnnot" (generated documentation)
 
