implements Pdf export in example sketches