Altering Text Properties in a PDF #2222
Replies: 1 comment 5 replies
-
Text cannot be altered "in-place" - it must always be rewritten. E.g. there is no "switching" between bold / unbold, because these are different fonts! There might be a change to have the current font xref be replaced by another one pointing to a font with a different weight or style. But this (1) requires low-level code, and (2) automatically applies to all text in the whole document that uses the old font, (3) for some fonts, italic / bold / regular versions also have different character distances, so the result of such a change may very well look awkward. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Good Morning sir,
Could you please suggest an efficient way to alter Text Properties of text in a pdf.
So, what i want is to change:
1. Size of Text
2. Bold/ Un-Bold Text
3. Text Offset
(of particular text in a PDF)
What i thought was a very in-efficient approach of:
For Text Offset
-> first extracting text box and then deleting the text on the PDF,
then pasting the extracted to new co-ordinates.
For bold
-> I cant still figure out
For Size
-> first extracting text box and then deleting the text on the PDF,
then pasting the extracted (with new size) again.
Any scope to increase efficiency?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions