Are you on NixOS? Are you tired of seeing this when trying to open encrypted PDFs?
No? Well, unless you're a plumber-in-training trying to download the plumbing code of Australia from their university database who also happens be a long-time programming enthusiast and Linux user, probably not. But just in case you are, I've packaged PDF-XChange Editor with Wine!
First, add this repository as an input to your flake:
# ...
inputs = {
# ...
nix-pdf-xchange-editor = {
url = "github:JakeHPark/nix-pdf-xchange-editor";
inputs.nixpkgs.follows = "nixpkgs";
};
# ...
};
# ...Then apply the overlay:
# ...
nixpkgs.overlays = [
inputs.nix-pdf-xchange-editor.overlays.default
# ...
];
# ...To remove protections on the PDF, just print the PDF to PDF:
services.printing = {
enable = true;
cups-pdf = {
enable = true;
instances.pdf.settings = {
Out = "\${HOME}/Desktop";
UserUMask = "0033";
};
};
};