Code Monkey home page Code Monkey logo

Comments (8)

JoseCadenas avatar JoseCadenas commented on May 31, 2024 1

Sent

from vue-pdf.

JoseCadenas avatar JoseCadenas commented on May 31, 2024 1

Updated to v1.5.1 and can confirm it works as expected now. Thank you very much!

from vue-pdf.

TaTo30 avatar TaTo30 commented on May 31, 2024

Currently rotation prop is for set an absolute rotation and it overwrite the default page rotation, so if you have a 90° rotated page and set 0 to rotation prop, you will get at 0° rotated page not 90°, you can check this by getting the rendered viewport through loaded event.

from vue-pdf.

JoseCadenas avatar JoseCadenas commented on May 31, 2024

I see... i removed the rotation prop all together and still get 0 degree rotation. See screenshot of acrobate showing the correct rotation but my application (Using VuePDF) in the incorrect rotation and the loaded Viewport data.
Screenshot 2023-06-14 at 5 23 59 PM

VuePDF

          <VuePDF
            v-if="!!fileData?.[selectedTab]?.data?.pages"
            text-layer
            :page="fileParams?.[selectedTab]?.page"
            :pdf="fileData?.[selectedTab]?.data?.pdf"
            @loaded="onLoaded"
          />

onLoaded function with removed rotation prop data

    onLoaded(x) {
      // :rotation="
      //         fileParams?.[selectedTab]?.rotations?.[
      //           fileParams?.[selectedTab]?.page
      //         ]
      //       "
      console.log("onLoaded", x);
    }

from vue-pdf.

TaTo30 avatar TaTo30 commented on May 31, 2024

That is not working as it should. Can you provide me a rotated pdf using that QPDF? also, what version are you using?

from vue-pdf.

JoseCadenas avatar JoseCadenas commented on May 31, 2024

VuePDF v1.4.8

I certainly can send you the file, whats the best method? Email?

from vue-pdf.

TaTo30 avatar TaTo30 commented on May 31, 2024

Email is ok, [email protected]

from vue-pdf.

TaTo30 avatar TaTo30 commented on May 31, 2024

Already fixed in the latest version

from vue-pdf.

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.