Categories

PDF Basic Document Generator (PDF基础文档生成器)

Create PDF documents with text, paragraphs, headers, footers, and page numbers

This tool generates professional PDF documents with the following features:

Content Features:

  • Multi-paragraph text input
  • Optional title page with document metadata
  • Automatic page breaks
  • Chinese character support

Page Layout:

  • Multiple page sizes (A4, Letter, Legal, A5)
  • Portrait or landscape orientation
  • Adjustable margins on all sides
  • Customizable font size and line height

Header & Footer:

  • Optional header text with alignment
  • Optional footer text with placeholders ({page}, {total})
  • Configurable page number positions
  • Automatic page numbering

Output:

  • High-quality PDF with embedded fonts
  • Downloadable file with timestamp
  • File metadata and statistics

Key Facts

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

Overview

The PDF Basic Document Generator creates professional PDF documents from plain text input. It supports multi-paragraph content, customizable page layouts, headers, footers, and automatic page numbering, with output as a downloadable PDF file.

When to Use

  • When you need to convert text content into a formatted PDF document with consistent styling.
  • When you require headers, footers, or page numbers in your PDF for navigation or branding.
  • When you want to customize page size, orientation, or margins to meet specific document requirements.

How It Works

  • Enter your document content in the text area, separating paragraphs with blank lines for automatic formatting.
  • Configure page settings such as size (e.g., A4, Letter), orientation (portrait or landscape), and margins.
  • Add optional headers and footers with text and placeholders like {page} for page numbers.
  • Generate the PDF to download a high-quality file with embedded fonts and metadata.

Use Cases

Creating business reports with headers, footers, and page numbers for professional presentation.
Generating invoices or receipts that require custom margins and consistent formatting.
Producing academic papers or essays with specific font sizes, line heights, and page layouts.

Examples

1. Quarterly Financial Report

Financial Analyst
Background
A financial analyst needs to compile quarterly data into a shareable PDF for stakeholders.
Problem
The report must include a header with the company name, page numbers, and a clean layout for easy review.
How to Use
Enter the financial summary in the content field, set the title to 'Q1 2024 Report', choose Letter page size in portrait orientation, add a header with 'ABC Corp' text centered, and enable page numbers at the bottom center.
Example Config
Set margins to 72pt on all sides, font size to 11pt, and line height to 1.5.
Outcome
A professional PDF report with numbered pages and a consistent header, ready for distribution.

2. Academic Research Paper

Graduate Student
Background
A student is finalizing a research paper for submission to a conference with strict formatting guidelines.
Problem
The paper requires A4 page size, 12pt font, double spacing, and page numbers at the top right corner.
How to Use
Input the paper content, set page size to A4, orientation to portrait, font size to 12pt, line height to 2.0, and configure page numbers to appear at the top right.
Outcome
A formatted PDF draft that adheres to submission standards, with proper margins and page numbering.

Try with Samples

pdf, text

Related Hubs

FAQ

What output format does the tool produce?

The tool generates PDF files only, with embedded fonts for consistent rendering.

Can I use non-Latin characters like Chinese in the document?

Yes, the tool supports Chinese characters and other Unicode text in the content.

How do I add page numbers to the PDF?

Enable the 'Show Page Numbers' option and select the desired position from the dropdown menu.

What page sizes are available?

You can choose from A4, Letter, Legal, and A5 page sizes in the settings.

Is there a limit on document length or number of pages?

The tool handles multi-page documents with automatic page breaks based on content and layout settings.

API Documentation

Request Endpoint

POST /en/api/tools/pdf-basic-text-doc

Request Parameters

Parameter Name Type Required Description
content textarea Yes -
title text No -
pageSize select No -
orientation select No -
fontSize number No -
lineHeight number No -
marginTop number No -
marginBottom number No -
marginLeft number No -
marginRight number No -
showHeader checkbox No -
headerText text No -
headerAlignment select No -
showFooter checkbox No -
footerText text No -
footerAlignment select No -
showPageNumbers checkbox No -
pageNumberPosition select No -

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-pdf-basic-text-doc": {
      "name": "pdf-basic-text-doc",
      "description": "Create PDF documents with text, paragraphs, headers, footers, and page numbers",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-basic-text-doc",
      "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.

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