Free plan

Text to outlines

Turn PDF text into shapes so it prints the same everywhere
POST
/v1/pdfs/outline-text

About this tool

This tool turns all the text of a PDF into shapes (outlines, drawings of the letters), so the PDF no longer needs the fonts to look right. It prints the same on any printer or computer. The downside is that the text can no longer be selected, copied or searched. The result tells you which fonts were in the file before and after.
For example, a print shop does not have the font you used in your flyer, so you convert the text to outlines first.

How to use it

  1. Choose this tool.
  2. Add your PDF.
  3. If needed, choose the PDF version of the result and whether pictures should be recompressed.
  4. Press Generate.
  5. Download the new PDF.

What you get back

You get a new PDF whose text is made of shapes, plus a note about the fonts before and after. Keep your original if you still need to edit the text.
GOOD TO KNOW
The whole document is rewritten by Ghostscript; forms, links and bookmarks may be lost. Counts as one PDF operation.
TEST IT LIVE

Try Text to outlines in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/outline-text
Tool ID
pdfs.outline-text
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/outline-text" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'compatibility=1.7' \
  -F 'quality=keep' \
  -F 'response=url'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.outlineText({
    "file": 'document.pdf',
    "compatibility": "1.7",
    "quality": "keep",
    "response": "url"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->outlineText([
    'file' => 'document.pdf',
    'compatibility' => '1.7',
    'quality' => 'keep',
    'response' => 'url',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Turn all the text of a PDF into vector outlines so it prints the same everywhere without any font. The text can no longer be selected or searched; the answer reports the fonts before and after.

Text to outlines accepts PDF. You can send several files in one request.

Text to outlines is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/outline-text with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.