Insert all text into new page with origin properties #2326
-
Hi there! I have extracted the word from the origin page with When I want to add that words with What technique do you suggest to exactly insert the text from one page to another page with their own properties?I hope my explanation was short and clear! Looking forward to your reply! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The best start is going from If you want to see a sophisticated example, look at the font replacing scripts here. The "words" extraction is of limited use here, because you do not have the font and the insertion point. |
Beta Was this translation helpful? Give feedback.
The best start is going from
page.get_text("dict")
. This is a dictionary of stacked dictionaries described in detail here. It contains a very complete information of text properties, including text color.If you want to see a sophisticated example, look at the font replacing scripts here.
The "words" extraction is of limited use here, because you do not have the font and the insertion point.