Categories

PDF RTL/LTR Support Tester (PDF双向文字测试)

Preview left-to-right and right-to-left text flow in PDF with bidi reordering

Test bidirectional text flow by rendering LTR and RTL samples side by side.

Features:

  • Bidi reordering with RTL detection or manual direction
  • Alignment and spacing controls
  • Optional guide lines to inspect layout
  • Mixed-direction sample line

Click to upload file or drag and drop file here

Maximum file size: 10MB Supported formats: font/ttf, font/otf, application/x-font-ttf, application/x-font-opentype, application/octet-stream

Key Facts

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

Overview

The PDF RTL/LTR Support Tester allows you to preview and verify how bidirectional text flows within a PDF document, ensuring correct rendering for languages like Arabic or Hebrew alongside standard left-to-right scripts.

When to Use

  • Verifying layout consistency for documents containing both LTR and RTL languages.
  • Troubleshooting bidi reordering issues in PDF generation workflows.
  • Testing custom font rendering for right-to-left scripts before final production.

How It Works

  • Input your LTR and RTL text samples into the respective fields.
  • Adjust the base direction, alignment, and typography settings to match your document requirements.
  • Toggle guide lines or include mixed-direction samples to inspect the visual layout.
  • Generate and download the PDF to review the final bidi reordering and spacing.

Use Cases

Validating multilingual document templates for international business reports.
Debugging text direction errors in automated PDF generation pipelines.
Creating visual proofs for designers working with mixed-script typography.

Examples

1. Multilingual Report Layout

Technical Writer
Background
A technical writer is creating a manual that includes both English and Arabic instructions.
Problem
The Arabic text is appearing in the wrong order, and the English text is misaligned when combined in the same paragraph.
How to Use
Input the English text in the LTR field and the Arabic text in the RTL field, then set the base direction to 'Auto' to verify the bidi flow.
Outcome
The tool generates a PDF preview showing the correct visual reordering of the mixed-script content, confirming the layout is ready for publication.

2. Custom Font Validation

Graphic Designer
Background
A designer needs to ensure a specific Hebrew font renders correctly in a PDF document.
Problem
The default system font does not support the required character set for the Hebrew text.
How to Use
Upload the specific Hebrew font file, input the text in the RTL field, and adjust the font size and line height to match the design specs.
Outcome
The generated PDF displays the Hebrew text with the custom font, allowing the designer to verify character shaping and spacing.

Try with Samples

pdf, text, file

Related Hubs

FAQ

What is bidi reordering?

Bidi (bidirectional) reordering is the process of arranging text characters in the correct visual order when a document contains both left-to-right and right-to-left scripts.

Can I use my own fonts?

Yes, you can upload a custom TTF or OTF font file to ensure specific RTL scripts render correctly in your PDF preview.

Does this tool support mixed-direction text?

Yes, you can enable the 'Include Mixed Sample' option to see how the PDF engine handles lines containing both LTR and RTL characters.

What page sizes are supported?

The tool supports standard A4, Letter, and Legal page sizes for your layout testing.

How do I ensure the text aligns correctly?

You can use the Alignment dropdown to set the text to Left, Center, or Right, or select 'Auto' to let the tool determine the best fit based on the base direction.

API Documentation

Request Endpoint

POST /en/api/tools/pdf-rtl-ltr-support

Request Parameters

Parameter Name Type Required Description
ltrText textarea Yes -
rtlText textarea Yes -
baseDirection select No -
alignment select No -
fontSize number No -
lineHeight number No -
pageSize select No -
marginTop number No -
marginBottom number No -
marginLeft number No -
marginRight number No -
showGuides checkbox No -
includeMixedSample checkbox No -
fontFile file (Upload required) No -

File type parameters need to be uploaded first via POST /upload/pdf-rtl-ltr-support 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-pdf-rtl-ltr-support": {
      "name": "pdf-rtl-ltr-support",
      "description": "Preview left-to-right and right-to-left text flow in PDF with bidi reordering",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-rtl-ltr-support",
      "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]