Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,716 Programmers for FREE! Ask your question and get quick answers from experts. There are 2,105 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



External Sources Not Working In Pdf Creation

 
Reply to this topicStart new topic

External Sources Not Working In Pdf Creation

ccrevling
post 13 Dec, 2007 - 10:31 AM
Post #1


New D.I.C Head

*
Joined: 13 Dec, 2007
Posts: 2


My Contributions


Yesterday one of my clients sites ran out of its ssl cert so i purchased a new one. Now their website creates pdfs out of cold fusion. Well after i installed the new cert the pdf will not accept outside sources like imgs and stylesheets. Why is this happening?
User is offlineProfile CardPM

Go to the top of the page


dswens
post 13 Dec, 2007 - 12:22 PM
Post #2


New D.I.C Head

*
Joined: 16 Oct, 2007
Posts: 34


My Contributions


I'm not an expert on SSLs but it sounds like it could be to do with the address of the images or style sheets referenced in the document creating the PDF.

For example, when you go to a secure site and get the popup that says "Some items on this page are not secure, would you like to display the non-secure items?", this is usually because the site URL is secure (https) and the image source tag is not.

What I'm getting at is this, make sure the tags displaying images or referencing style sheets are pointing to the secure server address...

CODE

<img src="https://www.yourserver.com/image.jpg">


Versus

CODE

<img src="http://www.yourserver.com/image.jpg">


Hope that helps...
User is offlineProfile CardPM

Go to the top of the page

skyhawk133
post 13 Dec, 2007 - 03:18 PM
Post #3


Head DIC Head

Group Icon
Joined: 17 Mar, 2001
Posts: 14,489



Thanked 34 times

Dream Kudos: 1650

Expert In: Web Development

My Contributions


At work, we haven't had much luck with SSL images in PDF's. We have a seperate non-https server we use to host the images on.
User is online!Profile CardPM

Go to the top of the page

supersloth
post 13 Dec, 2007 - 03:26 PM
Post #4


Pwnership is nine tenths of the LOL

Group Icon
Joined: 21 Mar, 2001
Posts: 18,784



Thanked 9 times

Dream Kudos: 2147483647

Expert In: being gentlemanly

My Contributions


I work with Chris and have ran into this problem a lot, any exporting using cfdocumentitem HATES working with SSL. the easiest and only reliable solution I have found is to put all images on a non-secure site and link the images directly. this was especially a pain as we do intranet development, so all of my header images and what not have to be placed on the only non-SSL site we have, a public facing server.
User is offlineProfile CardPM

Go to the top of the page

ccrevling
post 13 Dec, 2007 - 04:20 PM
Post #5


New D.I.C Head

*
Joined: 13 Dec, 2007
Posts: 2


My Contributions


Well thanks guys. I had already done that before any one here had posted back. LOL so know i know for sure thats what we need to do. (what i did i told them was a "temporary fix" unitl i can figure out the real problem) So now i get a new server YAY! haha thanks again
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/8/08 09:08AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month