Free plan
Text to outlines
Turn PDF text into shapes so it prints the same everywhere
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
- Choose this tool.
- Add your PDF.
- If needed, choose the PDF version of the result and whether pictures should be recompressed.
- Press Generate.
- 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.
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;More in PDFs
