You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can confirm, produces a file called "sheet.png" (which MacOS won't open) on my install too. Overriding with the "file" parameter on save_pdf method fixed it, but it was a little unintuitive after following the docs.
At no point is the .png ever overridden. I'm not certain off the top of my head what the best way to fix it would be, but I think a good way that doesn't touch too many files would be making the file extension be one of the properties of sheet, and it defaults to png but can be overridden during the Sheet#full_filename call. I believe that would just require editing /lib/squib/graphics/save_pdf.rb and /lib/squib/args/sheet.rb, and wouldn't affect anything else.
Oops. Small update to what I just wrote: it's not actually the full_filename method. Instead I think it's this file parameter in /lib/squib/args/sheet.rb not being overridden:
It's saving as sheet.png instead of sheet.pdf
To Reproduce
Steps to reproduce the behavior:
Run on latest dockerized squib
docker run --rm -v "$PWD":/usr/src/app andymeneely/squib ruby main.rb
See that sheet.png is generated. I can rename sheet.png to sheet.pdf and open it fine.
Expected behavior
I expect the output file for save_pdf to default to sheet.pdf
Environment
M1 mac oxs 13 docker v24
The text was updated successfully, but these errors were encountered: