-
-
Save designium/ddaccaf2c79a6a5dbf743ad52a94e958 to your computer and use it in GitHub Desktop.
Revisions
-
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ``` 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 ~ ``` ### 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 (assume being in `cd ~` directory) -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ``` ``` @@ -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 (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 (assume being in `cd ~` directory) ``` mv Downloads/pdftk_package/pdftk.pkg/bin/pdftk /usr/local/Cellar/pdftk/2.02/bin/pdftk -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 27 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ``` ``` 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 ``` ``` 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 ``` ### Create the appropriate symlinks through `brew` -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) ``` Here are the individual directories being created above. -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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` -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. ###### 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)` Here are the individual directories being created above. -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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). ###### 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)``` Here are the individual directories being created above. -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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). #### 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` ### 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 `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)` @@ -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` `brew doctor` -
jvenator revised this gist
Jan 30, 2015 . 1 changed file with 30 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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` ## 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` ## 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` ## Create the appropriate symlinks through `brew` `brew doctor` and most likely then `brew link pdftk` -
jvenator created this gist
Jan 30, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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`