|
Rank: Newbie Groups: Member
Joined: 8/13/2012 Posts: 2
|
Dear all,
I've just been trying to generate a pdf by feeding html through the convertohtml function. Everything works just fine, except for images coming out of the SharePoint libraries (web folders). Everything else seems to work.
There are two paths I'm using, a physical (http://root/_layouts/images/test.png) and a virtual one (stored in the database as a SharePoint library, http://root/library/test.png). Images put in the physical path and referenced in the pdf work perfectly fine. Virtual paths on the other hand don't work for images. Surprisingly, the reference to the css file in the very same virtual location as the images also works with no problem.
To summarize: Physical path to image : Works Virtual path to CSS file : Works Virtual path to image file : Does not work
In any case, does anyone have an idea why this is happening? Does anyone know a reason why css file would work but not images?
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
This might be a permission issue ---- somehow your SharePoint server refuses to serve the image files due to certain permission settings. Usually nobody would put any permission settings on CSS files, but it's possible that you have some kind of permission settings on your image files. If that's the case, then the images will be denied and the CSS will be served.
In any case, you will want to trace back to your server to find out the root cause. From the converter point of view, there is no difference as to getting CSS or images from your server.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/13/2012 Posts: 2
|
Hi,
Quick question, is there some kind of logging I could use to verify where what goes wrong and why he's unable to resolve?
Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I would imagine that you can check IIS logs or SharePoint logs. However we are no expert on either. So you may want to search online for details about them.
Thanks!
|
|