A graphical interface has been added, you just have to run the gui.py file.
The musecore2pdf
program is designed to convert MuseScore sheet music URLs into PDF files. It utilizes Selenium, ReportLab, and other Python libraries to automate the process of rendering each page of the MuseScore sheet music and saving them as a single PDF file. The script handles various scenarios, including the display of both SVG and PNG images on the MuseScore webpage.
- Python 3.x
- Chrome browser
- ChromeDriver (Ensure it's in your system PATH)
- Required Python libraries:
selenium
,svglib
,reportlab
,PyPDF2
-
Clone the repository:
git clone https://github.com/TartexFumex/musecore2pdf cd musecore2pdf
-
Install the required Python libraries:
pip install -r requirements.txt
-
Configure
config.conf
:- Set the
url
to the MuseScore sheet music URL. - Adjust other parameters like
render_path
andfile_name
as needed.
- Set the
Run the script using the following command:
python musecore2pdf.py
Modify the config.conf
file to customize the script behavior:
[general]
binary_location = path/to/BraveSoftware/Brave-Browser/Application/brave.exe
driver_path = path/to/chromedriver-win64/chromedriver.exe
[main.py]
url = https://musescore.com/user/xxx/scores/xxx
file_name = render.pdf
render_path = path/to/musecore2pdf
Feel free to contribute or report issues!