Print Page | Close Window

AddImageFromFile failed in Azure platform

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3516
Printed Date: 06 May 24 at 3:56AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AddImageFromFile failed in Azure platform
Posted By: donna
Subject: AddImageFromFile failed in Azure platform
Date Posted: 22 Oct 17 at 4:25AM
Hi,
I faced issue when use AddImageFromFile function in Azure platform. 
I always get return value = 0, which is failed to add image.
The image format that I'm using is BMP.

I did tried other functions such as DrawText, DrawTextBox, DrawLine,
SaveToFile, CompressImage, and etc. All are working perfectly.
I have no clue why only AddImageFromFile will fail. 

By the way, I had used SetTempPath and TestTempPath to check the image folder permission.
I get 1 from both returns. And, texts and lines are drawn and saved successfully.
So, I believe that this is not permission issue.

Please advise if you know how to solve this. Thanks.



Replies:
Posted By: Ingo
Date Posted: 22 Oct 17 at 2:31PM
Hi Donna,

QuickPDF uses in standard gdi+functionalities for image-handling and rendering.
Make sure gdi+ is in system32- or syswow64-path (depends on your dev.environment).
You can use different engines (gdi+ isn't a must) but then you have to bind it with QuickPDF-syntax (please read the online reference)...
BTW: Always the relevant code snippet about your AddImgaFromFile was helpful for helping hints ;-)

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk