index.js
/**
 * out_stream this is a private function that is used as the callback for the convertURI function below
 * @param  {stream}   wStream  the writable stream that the pdf will pipe to
 * @param  {Function} callback callback that chains all the way out the the exposed method
 * @return {callback} callback(err,result)
 */
out_stream this is a private function that is used as the callback for the convertURI function below
@param  {stream}   wStream  the writable stream that the pdf will pipe to
@param  {Function} callback callback that chains all the way out the the exposed method
@return {callback} callback(err,result)
out_stream this is a private function that is used as the callback for the convertURI function below @param { stream } wStream the writable stream that the pdf will pipe to @param { Function } callback callback that chains all the way out the the exposed method @return { callback } callback ( err result )
function out_stream(wStream, callback) {
  return {
    pdf: function(rstream) {
      rstream.pipe(wStream);
    },
    error: function(errMessage, statusCode) {
      callback("ERROR: " + errMessage, null);
    },
    end: function() {
      callback(null, true);
    }
  };
}
function out_stream ( wStream , callback ) { return { pdf : function ( rstream ) { rstream . pipe ( wStream ) ; } , error : function ( errMessage , statusCode ) { callback ( "ERROR: " + errMessage , null ) ; } , end : function ( ) { callback ( null , true ) ; } } ; }
out_stream this is a private function that is used as the callback for the convertURI function below
 @param  {stream}   wStream  the writable stream that the pdf will pipe to
 @param  {Function} callback callback that chains all the way out the the exposed method
 @return {callback} callback(err,result)
out_stream this is a private function that is used as the callback for the convertURI function below @param { stream } wStream the writable stream that the pdf will pipe to @param { Function } callback callback that chains all the way out the the exposed method @return { callback } callback ( err result )
//pipe the pdf that is rstream to the wstream(s3 writable stream) //if an error happens during pipe bubble the error message up //called at the end of the stream // now just get the signed url to return...