From aldeid
Jump to navigation Jump to search
You are here:


pdfsh is the Command Line Interface (CLI) version of Origami.



Usage:  irb.rb [options] [programfile] [arguments]


Suppress read of ~/.irbrc
Bc mode (load mathn, fraction or matrix are available)
Set $DEBUG to true (same as "ruby -d")
-r load-module
Same as "ruby -r"
-I path
Specify $LOAD_PATH directory
Use "inspect" for output (default except for bc mode)
Don't use inspect for output
Use Readline extension module
Don't use Readline extension module
--prompt prompt-mode
--prompt-mode prompt-mode
Switch prompt mode. Pre-defined prompt modes are "default", "simple", "xmp" and "inf-ruby"
Use prompt appropriate for inf-ruby-mode on emacs.
Suppresses --readline.
Simple prompt mode
No prompt mode
Display trace for each execution of commands.
--back-trace-limit n
Display backtrace top n and tail n. The default value is 16.
--irb_debug n
Set internal debug level to n (not for popular use)
-v, --version
Print the version of irb


  • Create a pdf object and read a PDF
$ pdfsh
>>> pdf = PDF.read 'pdf1.pdf' 
  • List elements on the first page
>>> page = pdf.pages.first
  • Display the xrefs table:
>>> page.xrefs[0]

For more information about available methods, please refer to the official documentation here: