Command Line Arguments

Xodo PDF Studio supports various command line arguments allowing to customize the page view, the location in the PDF document or even which side pane is open when launching from the command line (or terminal).

 

How to Call Xodo PDF Studio from the Command Line

When calling Xodo PDF Studio from the command line (or terminal) make sure to use the full file path for the PDF document. See the below examples

Windows: “C:\Program Files\PDFStudio2021\pdfstudio2021.exe” C:\mydocument.pdf

Mac: open -a “Xodo PDF Studio 2021” –args “/Users/user/Desktop/mydocument.pdf”

Linux: ./pdfstudio2021 “/home/xodo/Downloads/mydocument.pdf”

 

Command Line Argument Options

View options

  • zoom=scale
    • Windows: pdfstudio2021.exe /A “zoom=150” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “zoom=150” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “zoom=150” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?zoom=150
  • zoom=scale,top,left
    • Windows: pdfstudio2021.exe /A “zoom=300,200,200” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “zoom=300,200,200” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “zoom=300,200,200” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?zoom=300,200,200
  • view=Fit
    • Windows: pdfstudio2021.exe /A “view=Fit” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “view=Fit” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “view=fit” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?view=Fit
  • view=FitH
    • Windows: pdfstudio2021.exe /A “view=FitH” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “view=FitH” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “view=FitH” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?view=FitH
  • view=FitH,top
    • Windows: pdfstudio2021.exe /A “view=FitH,200” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “view=FitH,200” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “view=FitH,200” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?view=Fit,200
  • nameddest=destination – Specifies a named destination in the document

Location options

  • page=pagenum
    • Windows: pdfstudio2021.exe /A “page=2” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “page=2” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “page=2” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?page=2
  • comment=commentID – Specifies a comment on a given page in the PDF document.
    • Use the page command before this command.
    • For example: “page=3&comment=AA617F97B2482D900FE18B6DBEE431C2”

Studio pane options

  • pagemode=bookmarks
    • Windows: pdfstudio2021.exe /A “pagemode=bookmarks” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “pagemode=bookmarks” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “pagemode=bookmarks” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?pagemode=bookmarks
  • pagemode=thumbs
    • Windows: pdfstudio2021.exe /A “pagemode=thumbs” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “pagemode=thumbs” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “pagemode=thumbs” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?pagemode=thumbs
  • pagemode=none
    • Windows: pdfstudio2021.exe /A “pagemode=none” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “pagemode=none” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “pagemode=none” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?pagemode=none
  • pagemode=attachments
    • Windows: pdfstudio2021.exe /A “pagemode=attachments” “C:\temp\CommandLine.pdf”
    • Linux: ./pdfstudio2021 /A “pagemode=attachments” “/home/user/CommandLine.pdf”
    • Mac: open -a “Xodo PDF Studio 2021” –args /A “pagemode=attachments” “/Users/user/Desktop/CommandLine.pdf”
    • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?pagemode=attachments

Combining Options / Flags:

If you need to use two or more of the above options, you can combine them using the "&" symbol. See below.

  • Windows: pdfstudio2021.exe /A “zoom=150&pagemode=none” “C:\temp\CommandLine.pdf”
  • Linux: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?zoom=150&pagemode=none
  • Mac: open -a “Xodo PDF Studio 2021” –args /A “zoom=150&pagemode=none” “/Users/user/Desktop/CommandLine.pdf”
  • Open From URL: https://www.xodo.com/files/pdfstudio/images/CommandLine.pdf?zoom=150&pagemode=none