title: JT400 SpooledFile to TIFF zoom level
body: <p>I am trying to convert AFPDS spooled files to TIFF images. No problem, unless the original spooled file spills outside the printable area. In the iSeries Navigator, I can zoom out and see the content that spilled over. I am desperately seeking a method to do the same with the JT400 toolkit. Does anyone have a hint?</p>
  
  <p>V6R1, a simplified version of the code follows:</p>
  
  <pre><code>    private void readTiffs(SpooledFile spf) throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, RequestNotSupportedException{
      PrintParameterList prtParm = new PrintParameterList();
      PrintObjectPageInputStream inpStream = null;
  
      prtParm.setParameter(PrintObject.ATTR_MFGTYPE,"*WSCST" );
      prtParm.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS.LIB/QWPTIFFPB.WSCST");
  
      inpStream = spf.getPageInputStream(prtParm);
  
      if(inpStream != null) {
          byte[] imagebuff = null;
          do{
                imagebuff = new byte[inpStream.available()];
                inpStream.read (imagebuff);
  
                // we have the TIFF here, but the right side is cut off if the printout overflowed
  
          } while(inpStream.nextPage());
      }
  }   
  </code></pre>
  
  <p>Thanks,
  John</p>