code: public void getSheetAsPDF(long id, OutputStream outputStream, PaperSize paperSize) throws SmartsheetException {
          getSheetAsFile(id, paperSize, outputStream, "application/pdf");
      }
docs: Get a sheet as a PDF file.
  
  It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/pdf" Accept HTTP
  header
  
  Exceptions:
  IllegalArgumentException : if outputStream is null
  InvalidRequestException : if there is any problem with the REST API request
  AuthorizationException : if there is any problem with the REST API authorization(access token)
  ResourceNotFoundException : if the resource can not be found
  ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
  SmartsheetRestException : if there is any other REST API related error occurred during the operation
  SmartsheetException : if there is any other error occurred during the operation
  
  @param id the id
  @param outputStream the output stream to which the PDF file will be written.
  @param paperSize the optional paper size
  @return the sheet as pdf
  @throws SmartsheetException the smartsheet exception