pdf-lib
Version:
Library for creating and modifying PDF files in JavaScript
11 lines (10 loc) • 563 B
JavaScript
// tslint:disable-next-line:no-unused-variable
import PDFOperator from '../../../pdf-operators/PDFOperator';
/**
* Close the current subpath by appending a straight line segment from the current
* point to the starting point of the subpath. If the current subpath is already
* closed, h shall do nothing. This operator terminates the current subpath.
* Appending another segment to the current path shall begin a new subpath, even if
* the new segment begins at the endpoint reached by the h operation.
*/
export default PDFOperator.createSingletonOp('h');