Code Monkey home page Code Monkey logo

Comments (7)

Aazhar avatar Aazhar commented on September 26, 2024

Indeed the annotations displayed from PDF.js are incorrect, but it's not related to pdfalto, using macos system viewer for selection shows that the coordinates are correct for example the token "Association" :

screenshot 2019-03-02 at 15 07 26

I'm having a look at pdf.js processings.

from pdfalto.

kermitt2 avatar kermitt2 commented on September 26, 2024

The coordinates that are displayed by Preview with the selection are not correct, look:

screen shot 2019-03-02 at 15 56 55

The origin is already shifted... I think the coordinates I put above from PDF.js are the correct/expected ones for origin at (0,0) (x:57, y:90 for top left corner of "Association" and not x:85, y:126 from pdfalto or x:83.92, y:124.62 from Preview). Or somehow the size of the page is not correct and should be shifted/rescaled accordingly.

from pdfalto.

Aazhar avatar Aazhar commented on September 26, 2024

Ok I think I know the problem, actually there are different level for the boxes (media/crop/bleed) each is used by particular impression equipments, when these are not the same sized box it leads to such issues, I'll see how to fix this

from pdfalto.

Aazhar avatar Aazhar commented on September 26, 2024

So i've made a change to use crop box by default instead of media box : b14cd4e

from pdfalto.

Aazhar avatar Aazhar commented on September 26, 2024

This should be a dynamic option from pdfalto command line what do you think ?

from pdfalto.

Aazhar avatar Aazhar commented on September 26, 2024

Just reminder, this was legacy from pdf2xml..

from pdfalto.

kermitt2 avatar kermitt2 commented on September 26, 2024

Yes the issue was from pdf2xml !

Your fix entirely solves the issue for all my examples cases, and everything is fine with usual documents, so it's super many thanks!

from pdfalto.

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.