Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Text #38

Open
lionel218 opened this issue Mar 30, 2018 · 2 comments
Open

Replace Text #38

lionel218 opened this issue Mar 30, 2018 · 2 comments
Labels

Comments

@lionel218
Copy link

lionel218 commented Mar 30, 2018

Hi @gdelugre , Can we update a pdf for some of the text and background image of first page?
207 Sanderling Ln - JSP.pdf

@gdelugre
Copy link
Owner

Text insertion/replacement is a feature often requested. It is unfortunately quite difficult to implement in a generic way.

The PDF is composed of a stream of instructions for rendering every glyph either in a block, separately, at relative or absolute position. Every time you draw something text on a page, you need to compute the updated position in the graphics stack, and for this you need to know the metrics of the font currently in use.

Since there is no font parsing implemented now, it cannot be done easily. The best solution would be to locate the text in the PDF instructions on the page, and modify them directly.

@9mm
Copy link

9mm commented Jan 28, 2021

@gdelugre is there a way jsut to render the current page to a big messy string? i dont even care what it looks like formatting wise. i just need 1 word out of the damn document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants