def test_iotools_write_expr_to_pdf_01(): staff = Staff("c'8 d'8 e'8 f'8") iotools.write_expr_to_pdf(staff, 'tmp_staff.pdf') assert os.path.exists('tmp_staff.pdf') os.remove('tmp_staff.pdf') assert not os.path.exists('tmp_staff.pdf')
def write_illustration_pdf_to_disk(self, prompt=True): illustration = self.illustration_with_stylesheet iotools.write_expr_to_pdf( illustration, self.illustration_pdf_file_name, print_status=False, ) self.session.io_manager.proceed( 'PDF written to disk.', is_interactive=prompt)