Giter VIP home page Giter VIP logo

Comments (4)

ceztko avatar ceztko commented on June 12, 2024

Don't assume your failures can be easily reproduced: attach the image you were trying to load.

from podofo.

NieLuc avatar NieLuc commented on June 12, 2024

Oh okay, sorry. Here is the image i wanted to load (it doesnt work with any picture I have tried).
I have also included a picture of the debugger I dont know if that helps.

Do you have paypal for a little tip?
SIGSEVLoadPng
Screenshot 2023-10-19 154846

from podofo.

NieLuc avatar NieLuc commented on June 12, 2024

I also found out that the client data of the ctx object is a Qt Object, can this be the cause of the error?
DebuggingctxInfo

from podofo.

ceztko avatar ceztko commented on June 12, 2024

Please, don't put in the equation Qt stuff: I don't use Qt, and I can't give you support for that API. PdfImage::Load(const std::string_view& filepath) accepts a file path: ensure what you are passing to that function is a valid (utf-8 encoded) file path where the image is stored. I have no issues at all with the following code with the image you attached.

    PdfMemDocument document;
    auto pdfImage = document.CreateImage();
    pdfImage->Load(R"(D:\310401373-2d8c5bb4-6291-4eb9-a663-6ca8c1cf7a4f.png)");

I'm noticing you are using an old PoDoFo version, ensure you are using the latest official release 0.10.3 (it's not in my control if vcpkg still hasn't packaged it). I'm closing the issue now: if you still can't sort things for you, clone the 0.10 branch and try to reproduce it in the PoDoFo playground, to rule out the issue is in PoDoFo at all (which I don't believe, at the moment). Instead, if you can reproduce an issue in the playground, feel free to re-open.

from podofo.

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.