    OCR = PDFServicesSdk.OCR,
       ocrOperation = OCR.Operation.createNew(),
       input = PDFServicesSdk.FileRef.createFromLocalFile('test/resources/ocrInput.pdf', OCR.SupportedSourceFormat.pdf);

 ocrOperation.setInput(input);

 ocrOperation.execute(executionContext)
     .then(result => result.saveAsFile('output/ocrOutput.pdf'))
     .catch(err => console.log(err));
</code>
</pre></div>
        
    
</header>

<article>
    

    

    

    
    
    

     

    

    
        <h3 class="subsection