Skip to content

TartexFumex/musecore2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

musecore2pdf

Notes

A graphical interface has been added, you just have to run the gui.py file.

Description

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.

Prerequisites

  • Python 3.x
  • Chrome browser
  • ChromeDriver (Ensure it's in your system PATH)
  • Required Python libraries: selenium, svglib, reportlab, PyPDF2

Installation

  1. Clone the repository:

    git clone https://github.com/TartexFumex/musecore2pdf
    cd musecore2pdf
  2. Install the required Python libraries:

    pip install -r requirements.txt
  3. Configure config.conf:

    • Set the url to the MuseScore sheet music URL.
    • Adjust other parameters like render_path and file_name as needed.

Usage

Run the script using the following command:

python musecore2pdf.py

Configuration

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!

About

Convert musecore url to pdf file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages