Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save designium/ddaccaf2c79a6a5dbf743ad52a94e958 to your computer and use it in GitHub Desktop.
Save designium/ddaccaf2c79a6a5dbf743ad52a94e958 to your computer and use it in GitHub Desktop.

Revisions

  1. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ pkgutil --expand ~/Downloads/pdftk_download.pkg ~/Downloads/pdftk_package
    *NOTE: I had no prior install of PDFtk via brew-cask when doing this. Not sure how having multiple versions installed might affect `brew link` and these instructions.

    ```
    (cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)
    cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1
    ```

    Here are the individual directories being created above (assume being in `cd ~` directory).
    @@ -53,13 +53,13 @@ gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz
    ### Use `cpio` to unarchive the resulting file

    ```
    (cd ~/Downloads/pdftk_package/pdftk.pkg/ && cpio -iv < ~/Downloads/pdftk_package/pdftk.pkg/payload && cd ~)
    cd ~/Downloads/pdftk_package/pdftk.pkg/ && cpio -iv < ~/Downloads/pdftk_package/pdftk.pkg/payload && cd ~
    ```

    ### Move the relevant extracted files to their appropriate locations within the `Cellar/pdftk` directory

    ```
    (cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)
    cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1
    ```

    Or the individual file moves (assume being in `cd ~` directory)
  2. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    ### Download and extract the Mac OS X server install pacakge

    ```
    curl -o Downloads/pdftk_download.pkg https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg
    curl -o ~/Downloads/pdftk_download.pkg https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg
    ```

    ```
    @@ -24,7 +24,7 @@ pkgutil --expand ~/Downloads/pdftk_download.pkg ~/Downloads/pdftk_package
    (cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)
    ```

    Here are the individual directories being created above.
    Here are the individual directories being created above (assume being in `cd ~` directory).

    `mkdir /usr/local/Cellar/pdftk`

    @@ -62,7 +62,7 @@ gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz
    (cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)
    ```

    or the individual file moves
    Or the individual file moves (assume being in `cd ~` directory)

    ```
    mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk
  3. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 27 additions and 9 deletions.
    36 changes: 27 additions & 9 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,13 @@

    ### Download and extract the Mac OS X server install pacakge

    `curl -o Downloads/pdftk_download.pkg https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg`
    ```
    curl -o Downloads/pdftk_download.pkg https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg
    ```

    `pkgutil --expand ~/Downloads/pdftk_download.pkg ~/Downloads/pdftk_package`
    ```
    pkgutil --expand ~/Downloads/pdftk_download.pkg ~/Downloads/pdftk_package
    ```

    ### Now create directories for where it would go with a proper brew install.

    @@ -38,25 +42,39 @@ Here are the individual directories being created above.

    ### Give the `Payload` file the proper gzip file extension and unzip it

    `mv ~/Downloads/pdftk_package/pdftk.pkg/Payload ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`
    ```
    mv ~/Downloads/pdftk_package/pdftk.pkg/Payload ~/Downloads/pdftk_package/pdftk.pkg/payload.gz
    ```

    `gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`
    ```
    gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz
    ```

    ### Use `cpio` to unarchive the resulting file

    `(cd ~/Downloads/pdftk_package/pdftk.pkg/ && cpio -iv < ~/Downloads/pdftk_package/pdftk.pkg/payload && cd ~)`
    ```
    (cd ~/Downloads/pdftk_package/pdftk.pkg/ && cpio -iv < ~/Downloads/pdftk_package/pdftk.pkg/payload && cd ~)
    ```

    ### Move the relevant extracted files to their appropriate locations within the `Cellar/pdftk` directory

    `(cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)`
    ```
    (cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)
    ```

    or the individual file moves

    `mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk`
    ```
    mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk
    ```

    `mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/`
    ```
    mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/
    ```

    `mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1`
    ```
    mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1
    ```

    ### Create the appropriate symlinks through `brew`

  4. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,9 @@

    *NOTE: I had no prior install of PDFtk via brew-cask when doing this. Not sure how having multiple versions installed might affect `brew link` and these instructions.

    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`
    ```
    (cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)
    ```

    Here are the individual directories being created above.

  5. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -21,16 +21,23 @@
    Here are the individual directories being created above.

    `mkdir /usr/local/Cellar/pdftk`

    `mkdir /usr/local/Cellar/pdftk/2.02`

    `mkdir /usr/local/Cellar/pdftk/2.02/bin`

    `mkdir /usr/local/Cellar/pdftk/2.02/lib`

    `mkdir /usr/local/Cellar/pdftk/2.02/share`

    `mkdir /usr/local/Cellar/pdftk/2.02/share/man`

    `mkdir /usr/local/Cellar/pdftk/2.02/share/man/man1`

    ### Give the `Payload` file the proper gzip file extension and unzip it

    `mv ~/Downloads/pdftk_package/pdftk.pkg/Payload ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`

    `gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`

    ### Use `cpio` to unarchive the resulting file
    @@ -44,7 +51,9 @@ Here are the individual directories being created above.
    or the individual file moves

    `mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk`

    `mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/`

    `mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1`

    ### Create the appropriate symlinks through `brew`
  6. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,8 @@

    ### Now create directories for where it would go with a proper brew install.

    *NOTE: I had no prior install of PDFtk via brew-cask when doing this. Not sure how having multiple versions installed might affect `brew link` and these instructions.

    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`

    Here are the individual directories being created above.
  7. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,9 @@

    ###### This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this [homebrew-cask issue](https://github.com/caskroom/homebrew-cask/issues/7707).

    ###### The following steps worked on Mac OS X 10.10.1 with a standard [brew](http://brew.sh/) installation for the PDFtk Mac OS X server libary version 2.02
    ###### The following steps worked on Mac OS X 10.10.1 with a standard [brew](http://brew.sh/) installation for the PDFtk Mac OS X server libary version 2.02.

    ###### All Terminal commands separated by a full line space. Some commands wrap into multiple lines.

    ### Download and extract the Mac OS X server install pacakge

    @@ -12,7 +14,7 @@

    ### Now create directories for where it would go with a proper brew install.

    ```(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)```
    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`

    Here are the individual directories being created above.

  8. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Installing PDFtk Server edittion on your Mac

    #### This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this [homebrew-cask issue](https://github.com/caskroom/homebrew-cask/issues/7707).
    ###### This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this [homebrew-cask issue](https://github.com/caskroom/homebrew-cask/issues/7707).

    #### The following steps worked on Mac OS X 10.10.1 with a standard [brew](http://brew.sh/) installation for the PDFtk Mac OS X server libary version 2.02
    ###### The following steps worked on Mac OS X 10.10.1 with a standard [brew](http://brew.sh/) installation for the PDFtk Mac OS X server libary version 2.02

    ### Download and extract the Mac OS X server install pacakge

    @@ -12,7 +12,7 @@

    ### Now create directories for where it would go with a proper brew install.

    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`
    ```(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)```

    Here are the individual directories being created above.

  9. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    # Installing PDFtk Server edittion on your Mac

    ### This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this [homebrew-cask issue](https://github.com/caskroom/homebrew-cask/issues/7707).
    #### This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this [homebrew-cask issue](https://github.com/caskroom/homebrew-cask/issues/7707).

    ### The following steps worked on Mac OS X 10.10.1 with a standard [brew](http://brew.sh/) installation for the PDFtk Mac OS X server libary version 2.02
    #### The following steps worked on Mac OS X 10.10.1 with a standard [brew](http://brew.sh/) installation for the PDFtk Mac OS X server libary version 2.02

    ## Download and extract the Mac OS X server install pacakge
    ### Download and extract the Mac OS X server install pacakge

    `curl -o Downloads/pdftk_download.pkg https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg`

    `pkgutil --expand ~/Downloads/pdftk_download.pkg ~/Downloads/pdftk_package`

    ## Now create directories for where it would go with a proper brew install.
    ### Now create directories for where it would go with a proper brew install.

    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`

    @@ -24,16 +24,16 @@ Here are the individual directories being created above.
    `mkdir /usr/local/Cellar/pdftk/2.02/share/man`
    `mkdir /usr/local/Cellar/pdftk/2.02/share/man/man1`

    ## Give the `Payload` file the proper gzip file extension and unzip it
    ### Give the `Payload` file the proper gzip file extension and unzip it

    `mv ~/Downloads/pdftk_package/pdftk.pkg/Payload ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`
    `gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`

    ## Use `cpio` to unarchive the resulting file
    ### Use `cpio` to unarchive the resulting file

    `(cd ~/Downloads/pdftk_package/pdftk.pkg/ && cpio -iv < ~/Downloads/pdftk_package/pdftk.pkg/payload && cd ~)`

    ## Move the relevant extracted files to their appropriate locations within the `Cellar/pdftk` directory
    ### Move the relevant extracted files to their appropriate locations within the `Cellar/pdftk` directory

    `(cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)`

    @@ -43,7 +43,7 @@ or the individual file moves
    `mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/`
    `mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1`

    ## Create the appropriate symlinks through `brew`
    ### Create the appropriate symlinks through `brew`

    `brew doctor`

  10. @jvenator jvenator revised this gist Jan 30, 2015. 1 changed file with 30 additions and 4 deletions.
    34 changes: 30 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,26 +1,52 @@
    # Installing PDFtk Server edittion on your Mac

    ### This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this [homebrew-cask issue](https://github.com/caskroom/homebrew-cask/issues/7707).

    ### The following steps worked on Mac OS X 10.10.1 with a standard [brew](http://brew.sh/) installation for the PDFtk Mac OS X server libary version 2.02

    ## Download and extract the Mac OS X server install pacakge

    `curl -o Downloads/pdftk_download.pkg https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg`

    `pkgutil --expand ~/Downloads/pdftk_download.pkg ~/Downloads/pdftk_package`

    From your home folder `cd ~` run the following commands
    ## Now create directories for where it would go with a proper brew install.

    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`

    Here are the individual directories being created above.

    `mkdir /usr/local/Cellar/pdftk`
    `mkdir /usr/local/Cellar/pdftk/2.02`
    `mkdir /usr/local/Cellar/pdftk/2.02/bin`
    `mkdir /usr/local/Cellar/pdftk/2.02/lib`
    `mkdir /usr/local/Cellar/pdftk/2.02/share`
    `mkdir /usr/local/Cellar/pdftk/2.02/share/man`
    `mkdir /usr/local/Cellar/pdftk/2.02/share/man/man1`
    or
    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`

    ## Give the `Payload` file the proper gzip file extension and unzip it

    `mv ~/Downloads/pdftk_package/pdftk.pkg/Payload ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`
    `gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`

    ## Use `cpio` to unarchive the resulting file

    `(cd ~/Downloads/pdftk_package/pdftk.pkg/ && cpio -iv < ~/Downloads/pdftk_package/pdftk.pkg/payload && cd ~)`

    ## Move the relevant extracted files to their appropriate locations within the `Cellar/pdftk` directory

    `(cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)`

    or the individual file moves

    `mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk`
    `mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/`
    `mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1`

    `(cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)`
    ## Create the appropriate symlinks through `brew`

    `brew doctor`

    and most likely then

    `brew link pdftk`
  11. @jvenator jvenator created this gist Jan 30, 2015.
    26 changes: 26 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    `curl -o Downloads/pdftk_download.pkg https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg`

    `pkgutil --expand ~/Downloads/pdftk_download.pkg ~/Downloads/pdftk_package`

    From your home folder `cd ~` run the following commands
    `mkdir /usr/local/Cellar/pdftk`
    `mkdir /usr/local/Cellar/pdftk/2.02`
    `mkdir /usr/local/Cellar/pdftk/2.02/bin`
    `mkdir /usr/local/Cellar/pdftk/2.02/lib`
    `mkdir /usr/local/Cellar/pdftk/2.02/share`
    `mkdir /usr/local/Cellar/pdftk/2.02/share/man`
    `mkdir /usr/local/Cellar/pdftk/2.02/share/man/man1`
    or
    `(cd ~ && mkdir /usr/local/Cellar/pdftk /usr/local/Cellar/pdftk/2.02 /usr/local/Cellar/pdftk/2.02/bin /usr/local/Cellar/pdftk/2.02/lib /usr/local/Cellar/pdftk/2.02/share /usr/local/Cellar/pdftk/2.02/share/man /usr/local/Cellar/pdftk/2.02/share/man/man1)`

    `mv ~/Downloads/pdftk_package/pdftk.pkg/Payload ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`
    `gunzip ~/Downloads/pdftk_package/pdftk.pkg/payload.gz`
    `(cd ~/Downloads/pdftk_package/pdftk.pkg/ && cpio -iv < ~/Downloads/pdftk_package/pdftk.pkg/payload && cd ~)`

    `mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk`
    `mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/`
    `mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1`

    `(cd ~ && mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk && mv Downloads/pdftk_package/pdftk.pkg/lib/* /usr/local/Cellar/pdftk/2.02/lib/ && mv Downloads/pdftk_package/pdftk.pkg/man/pdftk.1 /usr/local/Cellar/pdftk/2.02/share/man/man1/pdftk.1)`

    `brew link pdftk`