Categories

Doc Comment to PDF Docs

Generate API documentation PDF from code comments

Extract JSDoc-style comments and format them as PDF API documentation.

Input: source text or file with /** */ blocks
Output: PDF documentation

Example Results

1 examples

Doc Comment Docs

Source comments rendered as docs PDF

doc-comment-to-pdf-docs-example1.pdf View File
View input parameters
{ "sourceText": "/**\n * Adds two values\n * @param {number} a\n * @param {number} b\n */\nfunction add(a,b){ return a+b }", "docTitle": "Utility Docs", "version": "1.0.0" }

Click to upload file or drag and drop file here

Maximum file size: 10MB Supported formats: text/plain, application/octet-stream

Key Facts

Category
Document Tools
Input Types
textarea, file, text, number, select, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Extract JSDoc-style comments and format them as PDF API documentation. **Input:** source text or file with /** */ blocks **Output:** PDF documentation

When to Use

  • Use it when you need to convert pdf, text content quickly in the browser.
  • Helpful for document tools workflows that need repeatable inputs and fast results.
  • A good fit when you want to test with real files before running the same workflow in code or API calls.

How It Works

  • Provide Source Text, Source File, Document Title, Version as input to the tool.
  • The tool processes the request and returns a file result.
  • For file workflows, start with representative samples such as pdf, text test files to verify edge cases and output quality.

Use Cases

Convert pdf, text data during debugging or QA.
Validate expected output before using the API or automation flows.
Test the workflow with representative sample files and edge cases.

Try with Samples

pdf, text, file

Related Hubs

FAQ

What does Doc Comment to PDF Docs do?

Doc Comment to PDF Docs helps you convert pdf, text content online without setting up a separate local script or app.

When should I use this tool?

Use it when you need a quick convert workflow, want to verify output, or need a browser-based utility for document tools tasks.

Can I try this tool with sample data?

Yes. This page can recommend related sample files so you can test the workflow immediately.

What inputs does Doc Comment to PDF Docs accept?

Doc Comment to PDF Docs accepts Source Text, Source File, Document Title, Version and supports file uploads for 1 field.

Is there an API for Doc Comment to PDF Docs?

Yes. The tool page includes an API endpoint so you can move from manual testing to scripted usage.

API Documentation

Request Endpoint

POST /en/api/tools/doc-comment-to-pdf-docs

Request Parameters

Parameter Name Type Required Description
sourceText textarea No -
sourceFile file (Upload required) No -
docTitle text No -
version text No -
baseFontSize number No -
pageSize select No -
landscape checkbox No -
printBackground checkbox No -
marginTop number No -
marginBottom number No -
marginLeft number No -
marginRight number No -
waitUntil select No -
waitTime number No -

File type parameters need to be uploaded first via POST /upload/doc-comment-to-pdf-docs to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-doc-comment-to-pdf-docs": {
      "name": "doc-comment-to-pdf-docs",
      "description": "Generate API documentation PDF from code comments",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=doc-comment-to-pdf-docs",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]