home.social

#ghostscript — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ghostscript, aggregated by home.social.

fetched live
  1. I am having some trouble running EasyABC from github.com/aupfred/EasyABC2 . I get a #ghostscript cannot be found error but I have it. Just not the right version. `brew install [email protected]` does not work... #python

  2. I am having some trouble running EasyABC from github.com/aupfred/EasyABC2 . I get a #ghostscript cannot be found error but I have it. Just not the right version. `brew install [email protected]` does not work... #python

  3. In case anyone else is having problems viewing their annual statement from Nest Pensions in Preview.app on MacOS, I managed to fix mine with Ghostscript:

    gs \
    -sDEVICE=pdfwrite \
    -dNOPAUSE \
    -dBATCH \
    -o repaired.pdf \
    broken.pdf

    #NestPensions #pdf #MacOS #PreviewApp #ghostscript

  4. In case anyone else is having problems viewing their annual statement from Nest Pensions in Preview.app on MacOS, I managed to fix mine with Ghostscript:

    gs \
    -sDEVICE=pdfwrite \
    -dNOPAUSE \
    -dBATCH \
    -o repaired.pdf \
    broken.pdf

    #NestPensions #pdf #MacOS #PreviewApp #ghostscript

  5. “Secure #redaction by design and through extensive #testing

    #Censor 0.6.0 comes with many more #security improvements, motivated by extensive testing on more then 1,000 #PDF document samples. You may now redact securely also links, form fields and widgets. In rare cases, when partial image redaction fails, the more secure full image removal is used instead.

    But even more important, Censor now warns you, when unsuccessful redaction is detected during postprocessing. This reduces the impact of known issues of unsecure redaction.

    Polish is the 11th language you may speak with Censor. Thanks to its translators (among them, @mondstern)!

    Thanks a lot also to #pypdf, #qpdf, #pikepdf, #Ghostscript, #MuPDF, #PyMuPDF, and #poppler contributors for the great resource of PDF document samples!

    Find it at @flathub: flathub.org/apps/page.codeberg and @Codeberg: codeberg.org/censor/Censor

    #Censorship #Codeberg #Flathub #GNOME #Linux #Python

  6. “Secure #redaction by design and through extensive #testing

    #Censor 0.6.0 comes with many more #security improvements, motivated by extensive testing on more then 1,000 #PDF document samples. You may now redact securely also links, form fields and widgets. In rare cases, when partial image redaction fails, the more secure full image removal is used instead.

    But even more important, Censor now warns you, when unsuccessful redaction is detected during postprocessing. This reduces the impact of known issues of unsecure redaction.

    Polish is the 11th language you may speak with Censor. Thanks to its translators (among them, @mondstern)!

    Thanks a lot also to #pypdf, #qpdf, #pikepdf, #Ghostscript, #MuPDF, #PyMuPDF, and #poppler contributors for the great resource of PDF document samples!

    Find it at @flathub: flathub.org/apps/page.codeberg and @Codeberg: codeberg.org/censor/Censor

    #Censorship #Codeberg #Flathub #GNOME #Linux #Python

  7. That said and celebrated ;), there are things that #Censor is not yet well redacting.

    The upstream library #MuPDF (with its #Python bindings in #PyMuPDF) supports by default only redaction of text, vector graphics and images. Testing on a variety of PDF files (thanks to #pypdf, #qpdf, #ghostscript, and their issue reporters, as well as @pdfarranger for their hint) let me discover that some vector graphics are not properly redacted and an upstream issue has been reported for that.

    Also, form fields (widgets), signatures and links may be incompletely redacted.

    You can find an updated list of “What is redacted? What not?” here: codeberg.org/censor/Censor/iss

    #pdf #redaction #security

  8. That said and celebrated ;), there are things that #Censor is not yet well redacting.

    The upstream library #MuPDF (with its #Python bindings in #PyMuPDF) supports by default only redaction of text, vector graphics and images. Testing on a variety of PDF files (thanks to #pypdf, #qpdf, #ghostscript, and their issue reporters, as well as @pdfarranger for their hint) let me discover that some vector graphics are not properly redacted and an upstream issue has been reported for that.

    Also, form fields (widgets), signatures and links may be incompletely redacted.

    You can find an updated list of “What is redacted? What not?” here: codeberg.org/censor/Censor/iss

    #pdf #redaction #security

  9. I fixed my issue. This is incredibly dumb. Ubuntu's Apparmor restricted the file extensions ghostscript was able to read. And, lo and behold, both XML and ICC (Color profiles) were not in that list.

    This MUST be a bug, now where to report it to?

    I learned a thing or two about postscript and ghostscript on the way. Not sure I needed that but here we are.

    I'll turn this into a quick blog post.

    #Ubuntu #Ghostscript #ZUGFeRD

  10. I fixed my issue. This is incredibly dumb. Ubuntu's Apparmor restricted the file extensions ghostscript was able to read. And, lo and behold, both XML and ICC (Color profiles) were not in that list.

    This MUST be a bug, now where to report it to?

    I learned a thing or two about postscript and ghostscript on the way. Not sure I needed that but here we are.

    I'll turn this into a quick blog post.

    #Ubuntu #Ghostscript #ZUGFeRD

  11. @gborn Ich würde mich freuen, in weiteren Teilen des Beitrags würde nicht nur #Fakturama beleuchtet. Die von mir lizenzierte Fachsoftware (leider unter Windows) erzeugt mittlerweile #XRechnung•en (noch nicht fehlerfrei). Ich hätte gern etwas (ein Skript?), das aus dem PDF/A und der XML ein #ZUGFeRD-PDF macht. Gibt's das? Geht das mit #Ghostscript? Würde es jemand für kleines Geld schreiben?

  12. @gborn Ich würde mich freuen, in weiteren Teilen des Beitrags würde nicht nur #Fakturama beleuchtet. Die von mir lizenzierte Fachsoftware (leider unter Windows) erzeugt mittlerweile #XRechnung•en (noch nicht fehlerfrei). Ich hätte gern etwas (ein Skript?), das aus dem PDF/A und der XML ein #ZUGFeRD-PDF macht. Gibt's das? Geht das mit #Ghostscript? Würde es jemand für kleines Geld schreiben?

  13. With the push to rewrite existing unix tools in Rust... A rust-based Ghostscript alternative would be nice.

    The stream of pointer/memory management security vulnerabilities in Ghostscript seems to not be lessening over the years.

    launchpad.net/ubuntu/+source/g

    #rust #ghostscript #security

  14. Eine gute Einführung in die Optimierungsmöglichkeiten für PDF-Dateien mit #Ghostscript. Ganz wichtig ist der Hinweis, dass manche Programme in ihre PDFs große Blobs schreiben (z.B. #Illustrator). In meinem Fall habe ich gerade ein geliefertes #PDF um 97 Prozent verkleinert.
    ghostscript.com/blog/optimizin

  15. Back on social media again (touching grass was nice) ... I usually do prepress on macOS, but when I'm on Linux I end up using #Inkscape (Scribus UX is not the best).

    So I decided to make a simple GUI over Ghostscript 👻 . It will create prepress-ready PDF/X from any PDF. Note! If you want total control over CMYK/spot colors use Scribus, but if your demands are simple (RGB=>CMYK) it might work for you...

    github.com/rodlie/cyanpdf

    #cmyk #prepress #pdf #pdfx #linux #ghostscript #libregraphics

  16. Back on social media again (touching grass was nice) ... I usually do prepress on macOS, but when I'm on Linux I end up using #Inkscape (Scribus UX is not the best).

    So I decided to make a simple GUI over Ghostscript 👻 . It will create prepress-ready PDF/X from any PDF. Note! If you want total control over CMYK/spot colors use Scribus, but if your demands are simple (RGB=>CMYK) it might work for you...

    github.com/rodlie/cyanpdf

    #cmyk #prepress #pdf #pdfx #linux #ghostscript #libregraphics

  17. When you've had enough of automating every little thing and just want to get stuff done and end up manually generating a bunch of (very slow to generate) PDF plots, then concatenate all of them with , then extract the text with , use a regex in Python to find some numbers and dates in the plot's legend, to finally write them into a csv file.

    🫠

    It's not stupid if it works, right? 😅

  18. When you've had enough of automating every little thing and just want to get stuff done and end up manually generating a bunch of (very slow to generate) PDF plots, then concatenate all of them with #ghostScript, then extract the text with #pdf2txt, use a regex in Python to find some numbers and dates in the plot's legend, to finally write them into a csv file.

    🫠

    It's not stupid if it works, right? 😅

    #PhDLife

  19. Mit Postscript ein PDF-Formular erstellen

    Mit Postscript können auch in ein bestehendes PDF Formularfelder eingefügt werden.

    #Postscript #PDF_Formular #Ghostscript #Linux

    gnulinux.ch/mit-postscript-ein

  20. Mit Postscript ein PDF-Formular erstellen

    Mit Postscript können auch in ein bestehendes PDF Formularfelder eingefügt werden.

    #Postscript #PDF_Formular #Ghostscript #Linux

    gnulinux.ch/mit-postscript-ein

  21. #ghostscript lebt!
    ❯ ps ax | grep -w gs
    3083637 ?        R     17:04 gs -dBATCH -dNOPAUSE -dSAFER -dCompatibilityLevel=1.6 -sDEVICE=pdfwrite -dAutoRotatePages=/None -sColorConversionStrategy=RGB -dPDFSTOPONERROR -dAutoFilterColorImages=true -dAutoFilterGrayImages=true -dJPEGQ=95 -dPDFA=2 -dPDFACompatibilityPolicy=1 -o /tmp/ocrmypdf.io.p9tlge8m/pdfa.pdf -sstdout=%stderr /tmp/ocrmypdf.io.p9tlge8m/pdfa.ps /tmp/ocrmypdf.io.p9tlge8m/fix_docinfo.pdf

    (Ich schmeiße gerade (via #paperless-ngx das AfD-Gutachten des Verfassungsschutzes von cicero.de/innenpolitik/cicero-… #tesseract vor. Das dauert.)
  22. #ghostscript lebt!
    ❯ ps ax | grep -w gs
    3083637 ?        R     17:04 gs -dBATCH -dNOPAUSE -dSAFER -dCompatibilityLevel=1.6 -sDEVICE=pdfwrite -dAutoRotatePages=/None -sColorConversionStrategy=RGB -dPDFSTOPONERROR -dAutoFilterColorImages=true -dAutoFilterGrayImages=true -dJPEGQ=95 -dPDFA=2 -dPDFACompatibilityPolicy=1 -o /tmp/ocrmypdf.io.p9tlge8m/pdfa.pdf -sstdout=%stderr /tmp/ocrmypdf.io.p9tlge8m/pdfa.ps /tmp/ocrmypdf.io.p9tlge8m/fix_docinfo.pdf

    (Ich schmeiße gerade (via #paperless-ngx das AfD-Gutachten des Verfassungsschutzes von cicero.de/innenpolitik/cicero-… #tesseract vor. Das dauert.)
  23. 4chan z problemami czyli o ataku na popularny imageboard

    Internet pełen jest portali społecznościowych czy forów. O tych bardziej popularnych, chociaż owianych złą sławą, ze względu szerokie spektrum dopuszczalnych treści, należy 4chan. Portal założony pod koniec 2003 roku stał się sławny za sprawą działań swoich anonimowych użytkowników oraz kontrowersyjnych memów. 4chan zasłynął z różnych akcji, takich jak namierzanie flagi...

    #WBiegu #4Chan #Atak #Deface #FreeBSD #Ghostscript #Memy #Websec

    sekurak.pl/4chan-z-problemami-

  24. EDIT: SOLVED - my fault entirely - not a problem with update.
    I now know more than I ever wanted to about apache error logs.
    Thanks to those who offered suggestions or boosted.
    Now back to teaching myself PHP - without so may errors! 🤦‍♀️
    ====================

    Looking for help from linux mint gurus - an update ate my disk!

    I just allowed update manager to update ghostscript and now I'm getting a warning that I have 0 space left in my root file system.
    My /bin directory seems to contain recursive X11 folders. I'm not sure how many because I'm worried about messing with it in case I cause more problems.

    I'd appreciate simple suggestions about the best way to solve this. I'm ok with using synaptic and even the terminal (if I really have to). But if you're going to ask me to delete random file please explain why.
    I've been using Linux for years but I don't consider myself an expert.

    I'm running Linux mint 21.3 cinnamon on an AMD Athlon with a 500GB HDD.

    #Linux #linuxmint #ghostscript

  25. Sicherheitslücken im PDF/Postscript-Interpreter Ghostscript

    In dem besonders unter Linux/Unix verbreiteten Interpreter Ghostscript zum Umgang mit PDF- und PostScript-Dateien befindet sich einige Schwachstellen, die von Angreifer genutzt werden können, um Schadcode auszuführen. kantel.github.io/posts/2025032 #Ghostscript #Security