Skip to main content
OctopusPDF Guide

How to translate PDF files for research: Keep citations intact

How to translate PDF files for research: Keep citations intact Translating a research PDF without breaking citation integrity is a common challenge. The secure …

Translating a research PDF without breaking citation integrity is a common challenge. The secure method is to use a browser-based tool with a Bring Your Own Key (BYO) model, which keeps both your source file and your API credentials local. This tutorial walks you through translating a PDF page-by-page into 9+ languages while preserving the original layout and references, using OctopusPDF's Translate PDF tool [K2].

What You Will Need

  • A modern web browser (Chrome, Firefox, Edge, or Safari) with JavaScript enabled.
  • The PDF file you want to translate. It can be up to 100 MB if you are on a Pro plan [K3].
  • An OpenAI-compatible API key. This can be from OpenAI, or any provider that exposes an OpenAI-compatible endpoint.
  • The API endpoint URL for your key provider (e.g., https://api.openai.com/v1 for OpenAI).
  • An internet connection — needed only to reach your AI provider's API. Your PDF file itself stays local.
  • A free OctopusPDF account (optional but recommended for Pro features).

Security note: With the BYO workflow, your PDF is parsed inside the browser tab using pdf.js, and it never uploads to a server [K1]. Your API key is stored only in your browser's localStorage [K1]. OctopusPDF does not proxy or intercept the AI request — your browser connects directly to the endpoint you enter [K1].

Step-by-Step Instructions

Step 1. Open the Translate PDF tool

  • Navigate to the OctopusPDF website and open the Translate PDF tool from the main toolbar or the "AI tools" section.
  • Why: This tool is specifically designed for page-by-page translation with structure awareness [K2].

[Insert screenshot: OctopusPDF homepage with the Translate PDF tool highlighted]

Step 2. Upload your research PDF

  • Click the upload area or drag-and-drop your PDF file into the browser window.
  • Wait for the file to be parsed. You should see the page count appear.
  • Watch out: If you see a progress bar or a "uploading" indicator, stop. On a truly local tool, parsing happens in-browser with no network activity. Verify this in your browser's network panel (F12 → Network tab) — there should be no outgoing request to OctopusPDF servers at this stage [K4].

[Insert screenshot: PDF file loaded in the Translate PDF interface showing page thumbnails]

Step 3. Enter your OpenAI-compatible API key

  • Locate the API key field (usually labeled "API Key" or "Your Key").
  • Paste your key. It will be stored in your browser's localStorage — it is never sent to OctopusPDF's backend [K1].
  • Why: This is the core of the BYO model. Your key is used only to authenticate directly with your chosen AI provider [K1].
image

Step 4. Configure the API endpoint

  • In the endpoint field, enter the base URL of your OpenAI-compatible API provider.
  • For OpenAI, use https://api.openai.com/v1.
  • For other providers (e.g., Azure OpenAI, local models like Ollama), enter their respective base URLs.
  • Watch out: An incorrect endpoint URL is the most common cause of translation failure. Copy the exact URL from your provider's dashboard. Do not add trailing slashes unless your provider requires them.

[Insert screenshot: Settings panel with API key and endpoint URL fields populated]

Step 5. Select the target language

  • From the language dropdown, choose the language you want to translate into. Supported options include Spanish, French, German, Chinese, Japanese, Korean, and others — 9+ languages total [K2].
  • If your source PDF is in a non-English language, choose your desired output language. The tool auto-detects the source language.

Step 6. Choose translation scope (page selection)

  • If you want the entire document, leave the default "All pages" selected.
  • To translate only specific pages (e.g., a chapter or a referenced section), use the page range selector.
  • Why: For research papers, you may only need the abstract and conclusion translated. Translating fewer pages saves API tokens and processing time.

[Insert screenshot: Page range selector with "All pages" dropdown menu]

Step 7. Start the translation

  • Click the Translate button.
  • The browser will send the text content (parsed locally) directly to your API endpoint. No server in the middle [K1].
  • Depending on the number of pages and the API's speed, this may take a minute or two.

Step 8. Review the page-by-page output

  • The tool will render the translated document page by page, preserving the original layout as much as possible.
  • Scroll through each page to check that the translation is applied in place and that citations, footnotes, and reference numbers remain visible in their original positions.
  • Watch out: Do not confuse "page-by-page translation" with a complete reflow. Complex tables and multi-column layouts may show minor alignment shifts, but numbers and citation markers should remain intact.

[Insert screenshot: Translated PDF side-by-side with original showing preserved citations]

Step 9. Download the translated PDF

image
  • Click the Download button to save the translated PDF to your device.
  • The output file contains the translated text. It does not carry metadata from the source file — no author names, no software fingerprints, no EXIF data [K5].
  • Why: This is useful if you plan to share the translated version externally, as it strips hidden metadata that could leak information [K3 K5].

[Insert screenshot: Download button highlighted with the saved file in the downloads bar]

Common Mistakes / Troubleshooting

Problem Likely Cause Fix
"Invalid API key" error The key was mistyped or copied with a leading/trailing space. Re-copy the key from your provider's dashboard. Ensure there is no whitespace. Check that the key hasn't expired.
"Connection failed" or timeout The endpoint URL is incorrect or unreachable. Verify the base URL. For OpenAI, it must be https://api.openai.com/v1. For other providers, check their documentation. Also confirm your firewall/VPN allows calls to that domain.
Translation is garbled or incomplete You may have selected a page range that starts mid-paragraph, or the API request hit a token limit. Re-run the translation on the full page range. If the problem persists, break the document into smaller PDFs and translate each separately.
Layout looks broken Complex tables or multi-column layouts can shift during translation. Use the page-by-page view to check each page. For critical citations, cross-reference the numbers in the translated text against the original.
The tool seems slow The API provider is rate-limiting or your document has many pages. Wait a few seconds and try again. For large documents, consider translating a specific page range instead of the whole file [K6 — implied by the page selector feature].

How to Verify Success

  • The translated PDF downloads without errors.
  • Open the output file and verify that citation markers (e.g., [1], [2], superscript numbers) appear in the same positions as the source.
  • Check that in-text references like "(Smith, 2020)" are translated for the surrounding text but the names, years, and numbers remain unchanged.
  • Confirm the page count of the output matches the input document.
  • In your browser's network panel, verify that no request was sent to any server except your API endpoint during the process [K4].
  • Check the file properties of the output PDF — no source metadata (author, software, EXIF) should be present [K5].

FAQ

Q1. Is my PDF truly never uploaded?

Yes. The tool is designed as a local-only converter [K4]. The PDF is parsed inside the browser tab using pdf.js [K1]. You can verify this yourself: open your browser's developer tools (F12) and watch the Network tab while the file is being parsed and translated. The only requests you see should be to the API endpoint you configured — never to OctopusPDF's servers [K1].

Q2. Why do I need my own API key?

The BYO (Bring Your Own Key) model means OctopusPDF does not manage or proxy AI requests [K1]. By using your own key, your API calls are sent directly from your browser to your chosen provider. This gives you control over which AI model processes your document and keeps your key from being stored on third-party servers. The key is stored in your browser's localStorage and never sent to OctopusPDF's backend [K1].

Q3. Can I use this for a confidential manuscript under review?

Yes, and this is one of the strongest use cases. Because the file never leaves your browser, you can process pre-publication manuscripts or documents under embargo [K3]. Additionally, the output PDF carries no metadata from the source files — no hidden author information, no tracked changes, no software fingerprints [K5]. This makes the tool suitable for solo attorneys, researchers, and small businesses handling sensitive documents on shared devices [K3].


Final note: The Translate PDF tool preserves citations because it works page-by-page rather than reflowing the entire document as continuous text [K2]. For the best results, always proofread the output against the original to confirm that reference numbering and bibliographic elements remain in proper order.