Hybrid PDF support
Hi,
I think that "export as hybrid PDF" option (PDF with the .mscz file attached to it) would be very hepful for musescore because:
a) when "import pdf", it can just grab the .mscz from the PDF directly and recover the partiture; and
b) if the original .mscz gets corrupted, you might "recover" your partiture from the PDF.
Sincerely,
Franz
Comments
Not sure you can embed 'foreign' content in a PDF, but mscz is a zip file after all, so you could add a PDF into it
In reply to Not sure you can embed … by Jojo-Schmitz
Yes, you can. I've been creating hybrid PDFs for all my text files since years ago with LibreOffice [1]
[1] https://wiki.documentfoundation.org/Documentation/HowTo/CreateAHybridPDF
You can hybrid anything: fonts, images, zips (LibreOffice documents are a zipped files too) or whatever.
In reply to Yes, you can. I've been… by franzrogar
+1
nice idea!
Of course you can also attach files to PDFs with Acrobat or free software like pdftk. But the Hybrid PDF would make life easier and undependent from PDF-Readers to be able to open these attachments.
(With pdftk e.g. you can attach files to PDFs with this command:
pdftk music.pdf attach_files music.mscz output music_with_mscz.pdf
or attach a file to a specific page (indicated as comment):
pdftk music.pdf attach_files music.mscz to_page 1 output music_with_mscz.pdf
In reply to +1… by musikai
It can also be done with litePDF [1] (last version of the library is opensource). They even provide with a source code example of attachments [2]. Being based on PoDoFo, my guess it's multi-OS (Linux, Windows, Mac at least).
[1] https://litepdf.sourceforge.io/
[2] https://litepdf.sourceforge.io/attachments.cpp.html
EDIT: you can also extract the files with the example they provide, so it could be called in the "import pdf" menu. Just suggestions ;-)