Coder Social home page Coder Social logo

Replace Text about origami HOT 2 OPEN

gdelugre avatar gdelugre commented on May 26, 2024
Replace Text

from origami.

Comments (2)

gdelugre avatar gdelugre commented on May 26, 2024

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.

from origami.

9mm avatar 9mm commented on May 26, 2024

@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

from origami.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.