<pre class="prettyprint">
<code>
const credentials = PDFToolsSdk.Credentials.serviceAccountCredentialsBuilder()
           .fromFile("pdftools-api-credentials.json")
           .build();
const executionContext = PDFToolsSdk.ExecutionContext.create(credentials),
       createPDFOperation = PDFToolsSdk.CreatePDF.Operation.createNew(),
       input = PDFToolsSdk.FileRef.createFromLocalFile('files/resources/createPDFInput.docx');

createPDFOperation.setInput(input);

createPDFOperation.execute(executionContext)