Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

pdfinvert.rb does not work if Inkscape can not access /tmp

Aperta
#1 12 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
cli

Direzione di ricerca

Start by reproducing ruby pdfinvert.rb sheet01.pdf sheet01_inv.pdf with the supplied archive, then inspect pdfinvert.rb around line 222 and the Inkscape-related temporary-file handling. Done means the command completes successfully and produces the inverted PDF when Inkscape cannot access /tmp.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I really appreciate the work you put in the pdfinvert script. I searched long on the internet to find sth useful to invert pdf 😀
But I get an exception when executing. Here is the debug output:

▶ ruby pdfinvert.rb sheet01.pdf sheet01_inv.pdf          
Exception `Gem::LoadError' at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319 - Could not find 'parallel' (>= 0) among 15 total gem(s)
Checked in 'GEM_PATH=/Users/renekud/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information
Exception `Errno::ENOENT' at pdfinvert.rb:222 - No such file or directory @ rb_sysopen - input_0001.svg
pdfinvert.rb:222:in `initialize': No such file or directory @ rb_sysopen - input_0001.svg (Errno::ENOENT)
	from pdfinvert.rb:222:in `open'
	from pdfinvert.rb:222:in `invert'
	from pdfinvert.rb:354:in `block in <main>'
	from pdfinvert.rb:353:in `each'
	from pdfinvert.rb:353:in `rescue in <main>'
	from pdfinvert.rb:343:in `<main>'

I have the script in the same directory like the pdf that I want to invert. It would be wonderfull if we could fix this. Sadly I never did sth in ruby :D
Here are the files of the /tmp/pdfinvert folder:
pdfinvert_sheet01.zip

Lingua principale
Ruby
Stelle
19
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di reitzig/scripts

Tutte le issue di reitzig/scripts

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.