pdf-lib icon indicating copy to clipboard operation
pdf-lib copied to clipboard

Modifying Existing PDFs text in every page

Open taulantdema opened this issue 2 years ago • 2 comments

Describe your idea

Is there any option to edit text of every page for example each word in a pdf document I want first letter to be italic. Or last one to be bold. So modifying only text in all pages.

How could this be implemented?

I saw some methods used there to draw text with from scratch but I didn't see any option to modify each word of pdf file. I think this can be done with some of the same functionality as draw text has been developed.

What problem are you trying to solve?

For example when we need to correct some of letters for example ë we can do it through this process. Or we want to highlight ë in all pages we can do it by this functionality

Why does this matter to you?

I think this will improve and raise the number of users who uses this package and also make my life easier

Would others find this helpful?

I think yes, would be great only to modify all words in all pdf pages

Are you interested in implementing your proposal?

No

Why are you submitting a proposal?

Increase number of users who use this package

Additional Notes

No response

taulantdema avatar May 31 '22 20:05 taulantdema

This library can parse the structure of an existing PDF document (for deleting, re-ordering, or adding content to pages), but has no capability to edit existing page content. See Limitations for more info.

The PDF file format wasn't really designed to be parsed or changed, it's a bit like an image or photograph in that respect.

joewestcott avatar Jun 04 '22 17:06 joewestcott

Any updates regarding search and highlight text in PDF? @taulantdema Have you found any RN solution for that?

anaelmashinsky avatar Jan 31 '24 09:01 anaelmashinsky