Comments (4)
Don't assume your failures can be easily reproduced: attach the image you were trying to load.
from podofo.
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?
from podofo.
I also found out that the client data of the ctx object is a Qt Object, can this be the cause of the error?
from podofo.
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)
- Images are skewed HOT 1
- help with signing documents HOT 1
- Extract PDF file results in a garbled code HOT 8
- Please clarify license information for the following files HOT 3
- please provide instructions on how to create a PdfSignature HOT 2
- PdfErrorCode::OutOfMemory, PoDoFo is out of memory. in Signer.ComputeSignatureSequential({ }, Buff, true); HOT 6
- Is it possible to set the specified page not to be copied? HOT 1
- GetPageAt;ExtractTextTo: When the number of PDF pages increases linearly, the cost of both methods increases exponentially HOT 4
- FT_Load_Sfnt_Table, the judgment of return value HOT 1
- Question: Trying to add Marked Content and reshuffle OCG's HOT 1
- fails to compile on msys2/mingw HOT 13
- Unable to load legacy providers in OpenSSL >= 3.x.x HOT 4
- Program received signal SIGABRT, Aborted HOT 3
- how to remove freeobject HOT 1
- Question: Migration to 0.10.x - What happend to PdfField? HOT 3
- helloworld does not compile with libxml2 v2.12.6 HOT 2
- Loading Multipage TIFFs HOT 5
- multiple use of TIFFClose on the same TIFF handle HOT 8
- PDF size greatly increases when resaving. HOT 5
- PoDoFo JavaScript interface HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podofo.