canorusmusic / canorus

Canorus is a free cross-platform music score editor
http://www.canorus.org
GNU General Public License v3.0
34 stars 14 forks source link

print preview with print settings #119

Open matevz opened 4 years ago

matevz commented 4 years ago

Currently, print preview is done by exporting document to PDF and launching external PDF viewer. Implement real print preview dialog either by:

  1. exporting document to svg (by the typesetter) and render it by native Qt engine,
  2. or use libpoppler to render the generated pdf file.

In the print preview dialog, allow user to set the staff size, paper size, margins etc. I assume those would be document-wide settings.

It might be feasible not to add a separate print preview dialog, but embed the print preview widget inside the document properties dialog (on the left?), because all those settings would probably be settable in this dialog anyway.

suamor commented 4 years ago

I think it would be even better not to export at all but instead use our main typesetter (lilypond) as external library. As we use fix command line options the input/output handling could be done directly in memory.