{"id":52038153,"url":"https://github.com/adobe/pdfservices-node-sdk-samples","last_synced_at":"2026-08-01T21:04:34.168Z","repository":{"id":40386764,"uuid":"200844577","full_name":"adobe/pdfservices-node-sdk-samples","owner":"adobe","description":"Samples for the Adobe Document Services PDF Tools Node SDK","archived":false,"fork":false,"pushed_at":"2025-01-02T05:22:27.000Z","size":45414,"stargazers_count":109,"open_issues_count":3,"forks_count":24,"subscribers_count":16,"default_branch":"master","last_synced_at":"2026-04-17T22:48:10.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adobe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-06T12:13:11.000Z","updated_at":"2026-03-06T14:10:01.000Z","dependencies_parsed_at":"2024-06-12T13:38:30.697Z","dependency_job_id":null,"html_url":"https://github.com/adobe/pdfservices-node-sdk-samples","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/adobe/pdfservices-node-sdk-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fpdfservices-node-sdk-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fpdfservices-node-sdk-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fpdfservices-node-sdk-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fpdfservices-node-sdk-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adobe","download_url":"https://codeload.github.com/adobe/pdfservices-node-sdk-samples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fpdfservices-node-sdk-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36170408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-08-01T02:00:05.789Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-08-01T21:04:33.643Z","updated_at":"2026-08-01T21:04:34.153Z","avatar_url":"https://github.com/adobe.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Samples for the PDF Services Node.js SDK\n\nThis sample project helps you get started with the  PDF Services Node.js SDK.\n\nThe sample JS scripts illustrate how to perform PDF-related actions (such as converting to and from the PDF format) using\nthe SDK. **Please note that the PDF Services Node.js SDK supports only server side use cases.**\n\n## Prerequisites\nThe sample application has the following requirements:\n* Node.js : Version 18.0 or above. Node installation instructions can be found\n  [here](https://nodejs.org/en/download/).\n\n\n## Authentication Setup\n\nThe credentials file for the samples is ```pdfservices-api-credentials.json```.\nBefore the samples can be run, set the environment variables `PDF_SERVICES_CLIENT_ID` and `PDF_SERVICES_CLIENT_SECRET`\nfrom the `pdfservices-api-credentials.json` file downloaded at the end of creation of credentials via\n[Get Started](https://www.adobe.io/apis/documentcloud/dcsdk/gettingstarted.html?ref=getStartedWithServicesSdk) workflow\nby running the following commands :\n\n1. For MacOS/Linux Users :\n```$xlst\nexport PDF_SERVICES_CLIENT_ID=\u003cYOUR CLIENT ID\u003e\nexport PDF_SERVICES_CLIENT_SECRET=\u003cYOUR CLIENT SECRET\u003e\n```\n\n2. For Windows Users :\n```$xlst\nset PDF_SERVICES_CLIENT_ID=\u003cYOUR CLIENT ID\u003e\nset PDF_SERVICES_CLIENT_SECRET=\u003cYOUR CLIENT SECRET\u003e\n```\n\n## Client Configurations\n\nThe SDK supports setting up custom request timeout for the API calls. Please refer this\n[section](#create-a-pdf-file-from-a-docx-file-by-providing-custom-value-for-timeouts) to know more.\n\nThe SDK also supports setting up Proxy Server configurations which helps in successful API calls for network where all\noutgoing calls have to go through a proxy else, they are blocked. Please\nrefer this [section](#create-a-pdf-file-from-a-docx-file-by-providing-proxy-server-settings) to\nknow more.\n\nAdditionally, SDK can be configured to process the documents in the specified region. Please refer this\n[section](#export-a-pdf-file-to-a-docx-file-by-providing-the-region) section to know more.\n\n## Quota Exhaustion\n\nIf you receive ServiceUsageError during the Samples run, it means that trial credentials have exhausted their usage quota.\nPlease [contact us](https://www.adobe.com/go/pdftoolsapi_requestform) to get paid credentials.\n\n## Build with npm\n\nRun the following command to build the project:\n```$xslt\nnpm install\n```\n\nNote that the PDF Services SDK is listed as a dependency in the package.json and will be downloaded automatically.\n\n## A Note on Logging\nFor logging, this SDK uses the [log4js API](https://www.npmjs.com/package/log4js) .\nUpon running, the SDK searches for a file ```config/pdfservices-sdk-log4js-config.json``` in the working directory, and reads the\nlogging properties from there. If no configuration file is provided, default logging, i.e. logging INFO logs to the console is enabled. The clients can change the logging settings as per their needs.\n\n## Running the samples\n\nThe following sub-sections describe how to run the samples. Prior to running the samples, check that the configuration\nfile is set up as described above and that the project has been built.\n\nThe samples code is available under the ```src``` folder. Test\nfiles used by the samples can be found in the ```resources``` folder. When executed, all samples create an ```output```\nchild folder under the project root directory to store their results.\n\n### Create a PDF File\nThese samples illustrate how to convert files of some formats to PDF. Refer the sdk documentation of create-pdf-operation.js\nto see the list of all supported media types which can be converted to PDF.\n\n#### Create a PDF File From a DOCX File\n\nThe sample script ```create-pdf-from-docx.js``` creates a PDF file from a DOCX file.\n\n```$xslt\nnode src/createpdf/create-pdf-from-docx.js\n```\n\n#### Create a PDF File From a DOCX File with options\n\nThe sample script ```create-pdf-from-docx-with-options.js``` creates a PDF file from a DOCX file by setting documentLanguage as\nthe language of input file.\n\n```$xslt\nnode src/createpdf/create-pdf-from-docx-with-options.js\n```\n\n####  Create a PDF File From a PPTX File\n\nThe sample script ```create-pdf-from-pptx.js``` creates a PDF file from a PPTX file.\n\n```$xslt\nnode src/createpdf/create-pdf-from-pptx.js\n```\n\n### Create a PDF File From HTML\nThese samples illustrate how to convert HTML to PDF.\nRefer the [HTML to PDF API documentation](https://developer.adobe.com/document-services/docs/apis/#tag/Html-to-PDF/operation/pdfoperations.htmltopdf)\nto see instructions on the structure of the zip file.\n\n#### Create a PDF File From Static HTML file with inline CSS\n\nThe sample script ```html-with-inline-css-to-pdf.js``` creates a PDF file from an input HTML file with inline CSS.\n\n```$xslt\nnode src/htmltopdf/html-with-inline-css-to-pdf.js\n```\n\n#### Create a PDF File From HTML specified via URL\n\nThe sample script ```html-to-pdf-from-url.js``` creates a PDF file from an HTML specified via URL.\n\n```$xslt\nnode src/htmltopdf/html-to-pdf-from-url.js\n```\n\n#### Create a PDF File From Static HTML (via Zip Archive)\n\nThe sample script ```static-html-to-pdf.js``` creates a PDF file from a zip file containing the input HTML file and its resources.\nPlease refer the sdk documentation of create-pdf-operation.js to see instructions on the structure of the zip file.\n\n```$xslt\nnode src/htmltopdf/static-html-to-pdf.js\n```\n\n#### Create a PDF File From Dynamic HTML (via Zip Archive)\n\nThe sample script ```dynamic-html-to-pdf.js``` converts a zip file, containing the input HTML file and its\nresources, along with the input data to a PDF file. The input data is used by the javascript in the HTML file to\nmanipulate the HTML DOM, thus effectively updating the source HTML file. This mechanism can be used to provide data to\nthe template HTML dynamically and then, convert it into a PDF file.\n\n```$xslt\nnode src/htmltopdf/dynamic-html-to-pdf.js\n```\n\n### Export PDF To Other Formats\nThese samples illustrate how to export PDF files to other formats. Refer to the documentation of export-pdf-operation.js\nand export-pdf-to-images-operation.js for supported export formats.\n\n#### Export a PDF File To a DOCX File\n\nThe sample script ```export-pdf-to-docx.js``` converts a PDF file to a DOCX file.\n\n```$xslt\nnode src/exportpdf/export-pdf-to-docx.js\n```\n\n#### Export a PDF file to a DOCX file (apply OCR on the PDF file)\n\nThe sample script ```export-pdf-to-docx-with-ocr-options.js``` converts a PDF file to a DOCX file. OCR processing is also performed on the input PDF file to extract text from images in the document.\n\n```$xslt\nnode src/exportpdf/export-pdf-to-docx-with-ocr-options.js\n```\n\n#### Export a PDF File To an Image Format (JPEG)\n\nThe sample script ```export-pdf-to-jpeg.js``` converts a PDF file's pages to a list of JPEG images.\n\n```$xslt\nnode src/exportpdftoimages/export-pdf-to-jpeg.js\n```\n\n#### Export a PDF File To a Zip of Images (JPEG)\n\nThe sample script ```export-pdf-to-jpeg-zip.js``` converts a PDF file's pages to JPEG images. The resulting file is a ZIP archive containing one image per page of the source PDF file.\n\n```$xslt\nnode src/exportpdftoimages/export-pdf-to-jpeg-zip.js\n```\n\n### Combine PDF Files\nThese samples illustrate how to combine multiple PDF files into a single PDF file.\n\n#### Combine Multiple PDF Files\n\nThe sample script ```combine-pdf.js``` combines multiple PDF files into a single PDF file. The combined PDF file contains all pages\nof the source files.\n\n```$xslt\nnode src/combinepdf/combine-pdf.js\n```\n\n#### Combine Specific Pages of Multiple PDF Files\n\nThe sample script ```combine-pdf-with-page-ranges.js``` combines specific pages of multiple PDF files into into a single PDF file.\n\n```$xslt\nnode src/combinepdf/combine-pdf-with-page-ranges.js\n```\n\n### OCR PDF File\nThese samples illustrate how to apply OCR(Optical Character Recognition) to a PDF file and convert it to a searchable copy of your PDF.\nThe supported input format is application/pdf.\n\n#### Convert a PDF File into a Searchable PDF File\n\nThe sample script ```ocr-pdf.js``` converts a PDF file into a searchable PDF file.\n\n```$xslt\nnode src/ocr/ocr-pdf.js\n```\n\n#### Convert a PDF File into a Searchable PDF File while keeping the original image\n\nThe sample script ```ocr-pdf-with-options.js``` converts a PDF file to a searchable PDF file with maximum fidelity to the original image and default en-us locale. Refer to the documentation of ocr-options.js\nto see the list of supported OCR locales and OCR types.\n\n```$xslt\nnode src/ocr/ocr-pdf-with-options.js\n```\n\n### Compress PDF File\n\nThe sample illustrates how to reduce the size of a PDF file.\n\n#### Reduce PDF File Size\n\nThe sample script ```compress-pdf.js``` reduces the size of a PDF file.\n\n```$xslt\nnode src/compresspdf/compress-pdf.js\n```\n\n#### Reduce PDF File Size on the basis of Compression Level\n\nThe sample script ```compress-pdf-with-options.js``` reduces the size of a PDF file on the basis of provided compression level.\nRefer to the documentation of compress-pdf-options.js to see the list of supported compression levels.\n\n```$xslt\nnode src/compresspdf/compress-pdf-with-options.js\n```\n\n### Linearize PDF File\n\nThe sample illustrates how to convert a PDF file into a Linearized (also known as \"web optimized\") PDF file. Such PDF files are\noptimized for incremental access in network environments.\n\n#### Convert a PDF File into a Web Optimized File\n\nThe sample script ```linearize-pdf.js``` optimizes the PDF file for a faster Web View.\n\n```$xslt\nnode src/linearizepdf/linearize-pdf.js\n```\n\n### Protect PDF File\n\nThese samples illustrate how to secure a PDF file with a password.\n\n#### Convert a PDF File into a Password Protected PDF File\n\nThe sample script ```protect-pdf.js``` converts a PDF file into a password protected PDF file.\n\n```$xslt\nnode src/protectpdf/protect-pdf.js\n```\n\n#### Protect a PDF File with an Owner Password and Permissions\n\nThe sample script ```protect-pdf-with-owner-password.js``` secures an input PDF file with owner password and allows certain access permissions\nsuch as copying and editing the contents, and printing of the document at low resolution.\n\n```$xslt\nnode src/protectpdf/protect-pdf-with-owner-password.js\n```\n\n### Remove Protection\n\nThe sample illustrates how to remove a password security from a PDF document.\n\n#### Remove Protection from a PDF File\n\nThe sample script ```remove-protection.js``` removes a password security from a secured PDF document.\n\n```$xslt\nnode src/removeprotection/remove-protection.js\n```\n\n### Rotate Pages\n\nThe sample illustrates how to rotate pages in a PDF file.\n\n#### Rotate Pages in PDF File\n\nThe sample script ```rotate-pdf-pages.js``` rotates specific pages in a PDF file.\n\n```$xslt\nnode src/rotatepages/rotate-pdf-pages.js\n```\n\n### Delete Pages\n\nThe sample illustrates how to delete pages in a PDF file.\n\n#### Delete Pages from PDF File\n\nThe sample script ```delete-pdf-pages.js``` removes specific pages from a PDF file.\n\n```$xslt\nnode src/deletepages/delete-pdf-pages.js\n```\n\n### Reorder Pages\n\nThe sample illustrates how to reorder the pages in a PDF file.\n\n#### Reorder Pages in PDF File\n\nThe sample script ```reorder-pdf-pages.js``` rearranges the pages of a PDF file according to the specified order.\n\n```$xslt\nnode src/reorderpages/reorder-pdf-pages.js\n```\n\n### Insert Pages\n\nThe sample illustrates how to insert pages in a PDF file.\n\n#### Insert Pages into a PDF File\n\nThe sample script ```insert-pdf-pages.js``` inserts pages of multiple PDF files into a base PDF file.\n\n```$xslt\nnode src/insertpages/insert-pdf-pages.js\n```\n\n### Replace Pages\n\nThe sample illustrates how to replace pages of a PDF file.\n\n#### Replace PDF File Pages with Multiple PDF Files\n\nThe sample script ```replace-pdf-pages.js``` replaces specific pages in a PDF file with pages from multiple PDF files.\n\n```$xslt\nnode src/replacepages/replace-pdf-pages.js\n```\n\n### Split PDF File\n\nThese samples illustrate how to split PDF file into multiple PDF files.\n\n#### Split PDF By Number of Pages\n\nThe sample script ```split-pdf-by-number-of-pages.js``` splits input PDF into multiple PDF files on the basis of the maximum number\nof pages each of the output files can have.\n\n```$xslt\nnode src/splitpdf/split-pdf-by-number-of-pages.js\n```\n\n#### Split PDF Into Number of PDF Files\n\nThe sample script ```split-pdf-into-number-of-files.js``` splits input PDF into multiple PDF files on the basis of the number\nof documents.\n\n```$xslt\nnode src/splitpdf/split-pdf-into-number-of-files.js\n```\n\n#### Split PDF By Page Ranges\n\nThe sample script ```split-pdf-by-page-ranges.js``` splits input PDF into multiple PDF files on the basis of page ranges.\nEach page range corresponds to a single output file having the pages specified in the page range.\n\n```$xslt\nnode src/splitpdf/split-pdf-by-page-ranges.js\n```\n\n### Document Merge\nAdobe Document Merge Operation allows you to produce high fidelity PDF and Word documents with dynamic data inputs.\nUsing this operation, you can merge your JSON data with Word templates to create dynamic documents for\ncontracts and agreements, invoices, proposals, reports, forms, branded marketing documents and more.\nTo know more about document generation and document templates, please checkout the [documentation](http://www.adobe.com/go/dcdocgen_overview_doc)\n\n#### Merge Document to DOCX\n\nThe sample script ```merge-document-to-docx.js``` merges the Word based document template with the input JSON data to generate\nthe output document in the DOCX format\n\n```$xslt\nnode src/documentmerge/merge-document-to-docx.js\n```\n\n#### Merge Document to PDF\n\nThis sample script  ```merge-document-to-pdf.js``` merges the Word based document template with the input JSON data to generate\nthe output document in the PDF format.\n\n```$xslt\nnode src/documentmerge/merge-document-to-pdf.js\n```\n\n#### Merge Document to DOCX with Fragments\n\nThis sample script  ```merge-document-to-docx-fragments.js``` merges the Word based document template with the input JSON data and Fragments JSON to generate\nthe output document in the PDF format.\n\n```$xslt\nnode src/documentmerge/merge-document-to-docx-fragments.js\n```\n\n### PDF Electronic Seal\n\nThese samples illustrate how to perform electronic seal over PDF documents like\nagreements, invoices, proposals, reports, forms, branded marketing documents and more.\nTo know more about PDF Electronic Seal, please see the [documentation](https://www.adobe.com/go/dc_eseal_overview_doc).\nThe following details needs to updated while executing these samples: PROVIDER_NAME, ACCESS_TOKEN, CREDENTIAL_ID and PIN.\n\n#### Apply Electronic Seal\n\nThis sample script  ```electronic-seal.js``` uses the sealing options with default appearance options to apply electronic seal over the PDF document.\n\n```$xslt\nnode src/electronicseal/electronic-seal.js\n```\n\n#### Apply Electronic Seal With Custom Appearance Options\n\nThis sample script  ```electronic-seal-with-appearance-options.js``` uses the sealing options with custom appearance options to apply electronic seal over the PDF document.\n\n```$xslt\nnode src/electronicseal/electronic-seal-with-appearance-options.js\n```\n\n#### Apply Electronic Seal With Trusted Timestamp\n\nThe sample script ```electronic-seal-with-stamp-authority.js``` uses a time stamp authority to apply electronic seal\nwith trusted timestamp over the PDF document.\n\n```$xslt\nnode src/electronicseal/electronic-seal-with-stamp-authority.js\n```\n\n### Extract PDF\n\nThese samples illustrate extracting content of PDF in a structured JSON format along with the renditions inside PDF.\nThe output of SDK extract operation is Zip package. The Zip package consists of following:\n\n* The structuredData.json file with the extracted content \u0026 PDF element structure. See the [JSON schema](https://opensource.adobe.com/pdftools-sdk-docs/release/shared/extractJSONOutputSchema.json). Please refer the [Styling JSON schema](https://opensource.adobe.com/pdftools-sdk-docs/release/shared/extractJSONOutputSchemaStylingInfo.json) for a description of the output when the styling option is enabled.\n* A renditions folder(s) containing renditions for each element type selected as input.\n  The folder name is either “tables” or “figures” depending on your specified element type.\n  Each folder contains renditions with filenames that correspond to the element information in the JSON file.\n\n#### Extract Text Elements\n\nThe sample script ```extract-text-info-from-pdf.js``` extracts text elements from PDF document.\n\n```$xslt\nnode src/extractpdf/extract-text-info-from-pdf.js\n```\n\n#### Extract Text, Table Elements\n\nThe sample script ```extract-text-table-info-from-pdf.js``` extracts text, table elements from PDF document.\n\n```$xslt\nnode src/extractpdf/extract-text-table-info-from-pdf.js\n```\n\n#### Extract Text, Table Elements with Renditions of Table Elements\n\nThe sample script ```extract-text-table-info-with-tables-renditions-from-pdf.js``` extracts text, table elements along with table renditions from PDF document.\nNote that the output is a zip containing the structured information along with renditions as described in [section](#extract-pdf).\n\n```$xslt\nnode src/extractpdf/extract-text-table-info-with-tables-renditions-from-pdf.js\n```\n\n#### Extract Text, Table Elements with Renditions of Figure, Table Elements\n\nThe sample script ```extract-text-table-info-with-figures-tables-renditions-from-pdf.js``` extracts text, table elements along with figure\nand table element's renditions from PDF document. Note that the output is a zip containing the structured information\nalong with renditions as described in [section](#extract-pdf).\n\n```$xslt\nnode src/extractpdf/extract-text-table-info-with-figures-tables-renditions-from-pdf.js\n```\n\n#### Extract Text Elements and bounding boxes for Characters present in text blocks\n\nThe sample script ```extract-text-table-info-with-char-bounds-from-pdf.js``` extracts text elements and bounding boxes\nfor characters present in text blocks. Note that the output is a zip containing the structured information\nalong with renditions as described in [section](#extract-pdf).\n\n```$xslt\nnode src/extractpdf/extract-text-table-info-with-char-bounds-from-pdf.js\n```\n\n#### Extract Text, Table Elements and bounding boxes for Characters present in text blocks with Renditions of Table Elements\n\nThe sample script ```extract-text-table-info-with-char-bounds-from-pdf.js``` extracts text, table elements, bounding boxes for characters present in text blocks and table element's renditions from PDF document.\nNote that the output is a zip containing the structured information along with renditions as described in [section](#extract-pdf).\n\n```$xslt\nnode src/extractpdf/extract-text-table-info-with-char-bounds-from-pdf.js\n```\n\n#### Extract Text, Table Elements with Renditions and CSV's of Table Elements\n\nThe sample script ```extract-text-table-info-with-tables-structure-from-pdf.js``` extracts text, table elements, table structures as CSV and table element's renditions from PDF document. Note that the output is a zip containing the structured information along with renditions as described in [section](#extract-pdf).\n\n```$xslt\nnode src/extractpdf/extract-text-table-info-with-tables-structure-from-pdf.js\n```\n\n#### Extract Text, Table Elements with Styling information of text\n\nThe sample script ```extract-text-table-info-with-styling-info-from-pdf``` extracts text and table elements along with the styling information of the text blocks. Note that the output is a zip containing the structured information along with renditions as described in [section](#extract-pdf).\n\n```$xslt\nnode src/extractpdf/extract-text-table-info-with-styling-info-from-pdf.js\n```\n\n### PDF Properties\n\nThis sample illustrates how to fetch properties of a PDF file.\n\n#### Fetch PDF Properties\n\nThe sample script ```get-pdf-properties.js``` fetches the properties of an input PDF.\n\n```$xslt\nnode src/pdfproperties/get-pdf-properties.js\n```\n\n### Custom Client Configuration\n\nThese samples illustrate how to provide a custom client configurations(timeouts, proxy etc.).\n\n#### Create a PDF File From a DOCX File (By providing custom value for timeouts)\nThe sample script ```create-pdf-with-custom-timeouts``` highlights how to provide the custom value for timeout.\n\n```$xslt\nnode src/customconfigurations/create-pdf-with-custom-timeouts.js\n```\n\n#### Create a PDF File From a DOCX File (By providing Proxy Server settings)\n\nThe sample script ```create-pdf-with-proxy-server.js``` highlights how to provide Proxy Server configurations to allow\nall API calls via that proxy Server.\n\n```$xslt\nnode src/customconfigurations/create-pdf-with-proxy-server.js\n```\n\n#### Create a PDF File From a DOCX File (By providing Proxy Server settings with authentication)\n\nThe sample script ```create-pdf-with-authenticated-proxy-server.js``` highlights how to provide Proxy Server\nconfigurations to allow all API calls via that proxy Server that requires authentication.\n\n```$xslt\nnode src/customconfigurations/create-pdf-with-authenticated-proxy-server.js\n```\n\n#### Export a PDF File to a DOCX File (By providing the region)\n\nThe sample script ```export-pdf-with-specified-region.js``` highlights how to configure the SDK to process the documents\nin the specified region.\n\n```$xslt\nnode src/customconfigurations/export-pdf-with-specified-region.js\n```\n\n### Create Tagged PDF\n\nThese samples illustrate how to create a PDF document with enhanced readability from existing PDF document. All tags from the input file will be removed except for existing alt-text images and a\nnew tagged PDF will be created as output. However, the generated PDF is not guaranteed to comply with accessibility standards such as WCAG and PDF/UA as you may need to perform further downstream remediation to meet those standards.\n\n#### Create Tagged PDF from a PDF\n\nThe sample script autotag-pdf highlights how to add tags to PDF document to make the PDF more accessible.\n\n```$xslt\nnode src/autotag/autotag-pdf.js\n```\n\n#### Create Tagged PDF from a PDF along with a report and shift the headings in the output PDF file\n\nThe sample script autotag-pdf-with-options highlights how to add tags to PDF documents to make the PDF more accessible and also shift the headings in the output PDF file.\nAlso, it generates a tagging report which contains the information about the tags that the tagged output PDF document contains.\n\n```$xslt\nnode src/autotag/autotag-pdf-with-options.js\n```\n\n#### Create Tagged PDF from a PDF by setting options with command line arguments\n\nThe sample script autotag-pdf-parameterised  highlights how to add tags to PDF documents to make the PDF more accessible by setting options through command line arguments.\n\nHere is a sample list of command line arguments and their description: \u003c/br\u003e\n--input \u0026lt; input file path \u0026gt; \u003c/br\u003e\n--output \u0026lt; output file path \u0026gt; \u003c/br\u003e\n--report { If this argument is present then the output will be generated with the tagging report } \u003c/br\u003e\n--shift_headings { If this argument is present then the headings will be shifted in the output PDF document } \u003c/br\u003e\n\n```$xslt\nnode src/autotag/autotag-pdf-parameterised.js --report --shift_headings --input resources/autotagPdfInput.pdf --output output/\n```\n\n### Accessibility Checker\n\nThese samples illustrate how to check the accessibility of a PDF file\n\n#### Check Accessibility of a PDF File\n\nThe sample script `pdf-accessibility-checker.js` checks the accessibility of an input PDF.\n\n```$xslt\nnode src/pdfaccessibilitychecker/pdf-accessibility-checker.js\n```\n\n#### Check Accessibility of a PDF File for given page range\n\nThe sample script `pdf-accessibility-checker-with-options.js` checks the accessibility of an input PDF for given page start and page end.\n\n```$xslt\nnode src/pdfaccessibilitychecker/pdf-accessibility-checker-with-options.js\n```\n\n### PDF Watermark\n\nThese samples illustrate how to add a watermark in PDF document.\n\n#### Add Watermark in PDF Document\n\nThe sample script ```pdf-watermark.js``` adds a watermark to the input PDF document using a source watermark PDF. The first page of source watermark PDF will be added as a watermark in input PDF document.\n\n```$xslt\nnode src/pdfwatermark/pdf-watermark.js\n```\n\n#### Add Watermark in PDF Document with options\n\nThe sample script ```pdf-watermark-with-options.js``` adds a watermark to the input PDF document using a source watermark PDF by setting opacity and appearOnForeground options.\n\n```$xslt\nnode src/pdfwatermark/pdf-watermark-with-options.js\n```\n\n### External Input / Output Storage\nThese samples illustrate how to use external input and output storage for the supported operations.\n\n####  Create a PDF File From a DOCX File Using External Input Storage\n\nThe sample script ```external-input-create-pdf-from-docx.js``` creates a PDF file from a DOCX file stored at external storage.\n\n```$xslt\nnode src/externalstorage/external-input-create-pdf-from-docx.js\n```\n\n####  Create a PDF File From a DOCX File Using External Input Storage and Store the Result in External Output Storage\n\nThe sample script ```external-input-and-output-create-pdf-from-docx.js``` creates a PDF file from a DOCX file stored at\nexternal storage and stores the result in external output storage.\n\n```$xslt\nnode src/externalstorage/external-input-and-output-create-pdf-from-docx.js\n```\n\n### Licensing\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe%2Fpdfservices-node-sdk-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadobe%2Fpdfservices-node-sdk-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe%2Fpdfservices-node-sdk-samples/lists"}