Partially revert commit #69efc894. Test for Octave/Matlab to decide how to call the print command. Added a warning stating that Octave cannot create pdf files.