-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDFHummus is working when I run it from visual studio but fail when using the executable #486
Comments
I suspect cxt->DrawImage(300, 570, "avent3.pdf"); is what is causing the problem, when I comment that line and use cxt->DrawImage(300, 570, "avent3.png"); instead everything works |
Maybe it cant find a file. Maybe share a sample project? |
Im gonna need the files to recreate the problem. Otherwise cant help you. |
Also, test with abs paths. Might be it cant find the pdf file to read it |
And start up hummus with logs. Might be able to tell you something. |
Sorry I didn't get back to you sooner I was out of town. So the weirdest thing happened, I started a new project from scratch, and started adding the same lines of code I brought here and same files reported in the screenshots. I added a line and tested. At the end of the day the new project worked. The only difference between the two projects is that when I was creating it on Visual Studio it asked me if I wanted the project in the same folder as the solution and the first time I said yes and the second time I said no. I don't not why or even if that made the difference, I just put it here in case someone has the same problem could give it a try. Thank you for your work and your help!! |
I am trying to use PDFHummus to generate a pdf that shows a plot, I put all the libs and dlls in the main folder and created a very simple pdf of one page with text and an image using this code:
I added all libs to the linker and all the includes to the c++ part of the properties, when I run it from visual studio in release mode it works fine, but when I run the executable the pdf fails to create correctly (it creates the file but is corrupted).
If I comment all the insert image lines and leave only the text it works fine If I leave the text and insert the png file it works fine
is when I try to add the pdf vector image file that the executable stops working, but again, from visual studio it works fine. I think I am missing a dll that I have to add to the working folder but can't figure out which one
any ideas are surely appreciated
The text was updated successfully, but these errors were encountered: