![]() ![]() Convert Range of Pages from DOCX to PDF in Node.js # The following code example shows how to convert a Word document to a PDF without using cloud storage. Save the output file to the local path using FileStream.writeFile() method.Get results by calling the convertDocument_Direct()_ method with ConvertDocumentDirectRequest.Provide the target format as “pdf” and the input file path as input parameters.Please follow the steps mentioned below to convert a DOCX to a PDF without using cloud storage. You can convert a Word document to PDF without using the cloud storage by passing it in the request body and receiving the output file in the API response. Please follow the steps mentioned earlier to upload and download files.Ĭonvert Word to PDF with Watermark using Node.js DOCX to PDF Conversion without using Cloud Storage # The following code example shows how to convert a Word document to a PDF document and add a watermark to the converted PDF document using a REST API in Node.js. Define the PdfConvertOptions and assign WatermarkOptions.Set Watermark Text, Color, Width, Height, etc.Create an instance of the WatermarkOptions.You can convert Word documents to PDF documents and add watermarks to converted documents programmatically by following the steps given below: Convert Word to PDF with Watermark using Node.js # ![]() The following code example shows how to convert a Word document to a PDF document with advanced convert options. Optionally set various convert options such as displayDocTitle, margins (top, left, right, bottom), etc.Create an instance of the PdfConvertOptions.Optionally set various load options such as hideComments, hideWordTrackedChanges, etc.Create an instance of the DocxLoadOptions. ![]() You can convert Word documents to PDF files with some advanced settings by following the steps given below: You can download it using the following code sample: Word to PDF Conversion with Advanced Options # The above code sample will save the converted PDF file on the cloud. The following code example shows how to convert DOCX to PDF using a REST API in Node.js.Ĭonvert Word Documents to PDF using a REST API in Node.js Download the Converted File #
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |