new GeometryCollection()
        The class GeometryCollection.
A Preprocessed PDF geometry collection
    
    
    
    
    
    
    
Extends
Members
- 
    
<static> SnappingMode
 - 
    
    
Properties:
Name Type Description e_DefaultSnapModenumber e_PointOnLinenumber e_LineMidpointnumber e_LineIntersectionnumber e_PathEndpointnumber  
Methods
- 
    
destroy()
 - 
    
    Destructor
- Inherited From:
 
Returns:
- Type
 - Promise.<void>
 
 - 
    
snapToNearest(x, y, mode)
 - 
    
    return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
Parameters:
Name Type Description xnumber - the x coordinate to snap, in page coordinates. ynumber - the y coordinate to snap, in page coordinates. modenumber - a combination of flags from the SnappingMode enumeration. Returns:
A promise that resolves to a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged.- Type
 - Promise.<Core.PDFNet.Point>
 
 - 
    
snapToNearestPixel(x, y, dpi, mode)
 - 
    
    return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
Parameters:
Name Type Description xnumber - the x coordinate to snap. ynumber - the y coordinate to snap. dpinumber - the resolution of the rendered page, in pixels per inch. modenumber - a combination of flags from the SnappingMode enumeration. Returns:
A promise that resolves to a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged.- Type
 - Promise.<Core.PDFNet.Point>
 
 - 
    
takeOwnership()
 - 
    
    Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
- Inherited From:
 
Returns:
- Type
 - void