jwdj / EasyABC

EasyABC
GNU General Public License v2.0
87 stars 36 forks source link

Print renders black page in 1.3.8.7 #84

Open markblinkhorn opened 6 months ago

markblinkhorn commented 6 months ago

EasyABC 1.3.8.7 running on Raspberry Pi 5 Bookworm print to PDF of a multipage score renders first page ok but subsequent pages are rendered as black pages (I'm not referencing Frank Zappa here).

I had this as a problem on the Windows 1.3.8.6 version which is reported as FIXED in 1.3.8.7 - however, it would seem to have been fixed only for scores that fit on a single page.

@jwdj - Please let me know what diagnostic information (if any) I can provide.

markblinkhorn commented 6 months ago

Edit: Not just print to PDF - Actual print copy (direct to printer) also renders black

revad commented 5 months ago

I tried this with this tune, which produces a 2-page score http://www.rudemex.co.uk/library/ABC/Bouchard's%20Waltz%20Quadrille%20(3-pt).abc

The exported pdf is OK when displayed in my default SuSE Linux viewer (Evince). The pdf properties are Producer: GPL Ghostscript 9.52 Creator: abcm2ps-8.14.14 Format: PDF-1.7

I can't remember where my abcm2ps came from. There may be a newer version than mine. david@localhost:~> abcm2ps -V abcm2ps-8.14.14 (2022-12-19) Options: A4_FORMAT PANGO Default format directory: /usr/share/abcm2ps

Evince prints the pdf correctly. But when I print the page from EasyABC with File>Print I get a black second page. My guess is that the printer driver and the pdf producer - GS - are interpreting the postscript differently.

I found this post, which may be the same problem. https://groups.io/g/abcusers/message/20826 David mentions ps2pdf. Is ps2pdf involved in Linux - it's not in the EasyABC file settings. Do I have ps2pdf? Yes - ish: david@localhost:~> ps2pdf -V Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-] Googling, ps2pdfwr is a wrapper for qhostscript.

A couple of years ago I had a problem with online pdf AMEX statements. There was a box which contained the balances - on the pdf it displayed with a stippled background with the numbers on top, but when printed it was all black. In the end I resorted to editing the psf with a package called pdftools - I wrote a script to do it. You could use pdftools to poke about in the pdf: what code is there at the top of page 2?

Hope some of that helps!

revad commented 5 months ago

I tried this in Windows 10, latest EasyABC snapshot and mods. The pdf displays OK using Sumatra pdf viewer. pdf properties: Application: abcm2ps-8.14.14 << same as Linux PDF producer: Ghostscript 10.02.0 << newer

Printing is OK from both Sumatra and direct from EasyABC