After doing page.insert_htmlbox to insert some text , how to extract this same text with get_text where the place it has been inserted is respected. #3283
-
I did Where i wanted to place a number where pdf has input fields. But when i do What i wanted was/ Desired Output :
What it gives me:
and at the end of the text , all number from How to get my desired output. Thankyou for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
All text extraction and text search variants support the |
Beta Was this translation helpful? Give feedback.
-
This cannot work! |
Beta Was this translation helpful? Give feedback.
This cannot work!
All new stuff in a PDF can only be appended to old content - not inserted in the middle of things by some miracle. This a PDF peculiarity - not a PyMuPDF restriction.
The only way you have is sorting extracted text in a suitable way.
There is a
sort
parameter in get_text() which behaves slightly differently depending on the output option.In your case however - as…