Edit the text already in the PDF
Not a text box on top of the page: your users change the existing text itself — its words, font, size and colour — and move, rotate or restack it.
PDF text editing that changes the real text.
Any script
Replace text in any language. Supply fonts for scripts a document’s own fonts lack — Hindi, Arabic, CJK — and they are used for it.
Your own fonts
Switch text to a built-in sans, serif or mono family, or to a font file you provide.
Fits the space
Replace text and shrink it to fit where the old text was — or let it run longer, and know that it did.
Move, rotate, restack
Text is a layer: move it, rotate it, bring it forward or send it back, duplicate it.
Undo, always
Every change — by hand or from your code — goes on the editor’s undo history.
From code
Read every text block of a page and replace it programmatically, with or without the editor on screen.
From your code.
Replaces every text block on the first page. The same document API exists on iOS and Android.
See the API referenceimport { PDFDocumentEditor } from '@pdfsdk/editor';
const doc = await PDFDocumentEditor.open(bytes);
for (const block of doc.textBlocks(0)) {
const text = await translate(block.text ?? '');
doc.setText(block, text, { shrinkToFit: true });
}
const edited = doc.save();Edit text questions.
Yes. The editor changes the text already in the file — its words, font, size and colour — and can move, rotate and restack it.
Yes, text can be replaced in any script. Where a document’s own fonts lack a script, you supply fonts for it and the editor uses them.
Yes. The document API reads a page’s text blocks and replaces them, optionally shrinking new text to fit the old space.
Try it in your app.
A free trial unlocks every feature on every platform, in any app. Open a document today.
Talk to us
Questions about licensing, several apps, volume, or OEM and site terms — we will work out what fits.