Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set missing ghostscript device value #900

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Set missing ghostscript device value #900

merged 1 commit into from
Nov 6, 2023

Conversation

TomaSajt
Copy link
Contributor

@TomaSajt TomaSajt commented Nov 6, 2023

I was testing out pdf conversion on WSL (running NixOS), and ghostscript was complaining that the xserver wasn't running. I found that one line in the pdf info querying code was missing an explicitly specified device, so I'm guessing the xserver was the fallback, which WSL didn't have.

Also tested it on Linux, when I viewed the pdf on the website, the server's monitor started opening many pdf-viewer windows just for a split second, which, because I am using i3, was continuously messing up the window layout.

This simple change should fix both of these issues.

I didn't notice any quality regressions (the quality was not that great before and after the fix, but maybe that's just NixOS)

@Difegue Difegue merged commit 087d63b into Difegue:dev Nov 6, 2023
1 check passed
@Difegue
Copy link
Owner

Difegue commented Nov 6, 2023

Thanks - I'd encountered this in recent WSL testing but didn't have time to figure out the issue. I suspect a recent change in ghostscript required this.
GS PDF quality has never been very good, no worries there! 👍

Copy link

holopin-bot bot commented Nov 6, 2023

Looks like @Difegue is trying to award a holobyte, but something went wrong in issuing it. See this page for more information.

@Difegue
Copy link
Owner

Difegue commented Nov 6, 2023

wow is this thing actually broken for real now

@holopin-bot @TomaSajt cmon

guess it's just bytes that are broken smh

Copy link

holopin-bot bot commented Nov 6, 2023

Congratulations @TomaSajt, you just earned a badge! Here it is: https://holopin.io/claim/clomzt0y828430fjwbb8sdw0o

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants