Export to PDF Fails when slashes in the part title and full score selected
When Exporting PDFs of parts, parts with slashes in the title do not export - e.g - a part named "Keyboard / Conductor" or "Trumpet / Violin". This error has only occurred in 3.6 and was fine in 3.5.
How to reproduce error -
1) Load a musescore file with parts containing slashes (/) in the part name (attached file is from 3.5, just for reference).
2) Select the full score.
2) Click Export, then select all (or just the parts with slashes) and export the parts. Make sure parts are being exported to PDF.
Expected - parts export without error.
Actual Result - An Error Dialogue Box comes up with the message "Cannot Write Into [File Path]/[File Name].pdf
EDIT - Ran some more tests and this error does not happen when you select the parts containing the slashes and then export - it only had an issue with the full score selected. Weird.....
EDIT 2 - By Extention, this also applies to PNGs
Attachment | Size |
---|---|
DEC NEW ORCH FIX 3.6 ADJUSTED.mscz | 39.02 KB |
Comments
Workaround Discovered - click on each part individually, export and rename them individually. Works but is time consuming.
Confirmed on macOS. I have already a fix in mind, will try later today.
See https://github.com/musescore/MuseScore/pull/7313
Fixed in branch 3.x, commit b542650184
_Fix #316224: Export fails when part name contains slash
Fixed by using
mscore->saveFilename(score->title())
instead of plainscore->title()
._Automatically closed -- issue fixed for 2 weeks with no activity.