The Visio Diagram API allows you to perform various scenarios with Visio documents in Node.js code....(shape, stream) Creates the shape pdf and saves it to a stream. Example...fs.createWriteStream("output.pdf"); aspose.diagram.Shape.toPdfStream(shape...