unplugged_web Posted July 29, 2014 Share Posted July 29, 2014 I've used this to create a pdf: https://github.com/KnpLabs/KnpSnappyBundle I tested it on a dev server and it worked perfectly but when I transferred it to the live site the images. I've tried using png's and jpg's (as I know there's an issue with gifs) as well as relative, absolute and full paths but nothing I do seems to work. I've attached screen shots of both the live and test sites so you can see what I get. Link to comment Share on other sites More sharing options...
davej Posted July 29, 2014 Share Posted July 29, 2014 Hmmm. I don't even understand what Symfony2 is. http://wkhtmltopdf.org/ Why would you ever want to capture Google's animated logo as a static PDF? Link to comment Share on other sites More sharing options...
unplugged_web Posted July 29, 2014 Author Share Posted July 29, 2014 I'm using it on an intranet site to create receipts of orders placed. Link to comment Share on other sites More sharing options...
davej Posted July 29, 2014 Share Posted July 29, 2014 And it doesn't successfully generate a PDF file? Link to comment Share on other sites More sharing options...
unplugged_web Posted July 29, 2014 Author Share Posted July 29, 2014 And it doesn't successfully generate a PDF file? It generates the pdf but when I moved it to the live site is stopped showing the images in the pdf. The displayed okay on the dev site. I've attached a screen shot of the two pdf's, the top one is from the live site and the other is from the dev site. Link to comment Share on other sites More sharing options...
davej Posted July 29, 2014 Share Posted July 29, 2014 It generates the pdf but when I moved it to the live site is stopped showing the images in the pdf. The displayed okay on the dev site. I've attached a screen shot of the two pdf's, the top one is from the live site and the other is from the dev site. That's where you totally lose me. What are you talking about? The Adobe browser plug-in will not display the images of these PDF files? What if you examine the PDF files offline? Link to comment Share on other sites More sharing options...
unplugged_web Posted July 29, 2014 Author Share Posted July 29, 2014 Sorry I don't think I'm being very clear. When this works a pdf is generated from an html page and then emailed to the person who placed the order. On the test site this worked no problems, but now that it's on the live site it's creating the pdf but the images aren't being displayed in the pdf, if you look at the attached file in my previous post you'll see what I mean. The images aren't there when I view it on or offline Link to comment Share on other sites More sharing options...
justsomeguy Posted July 29, 2014 Share Posted July 29, 2014 It sounds like it's just an issue of paths, it sounds like you're not using the correct paths. Link to comment Share on other sites More sharing options...
davej Posted July 29, 2014 Share Posted July 29, 2014 Maybe it requires at least a certain Php version? Link to comment Share on other sites More sharing options...
unplugged_web Posted July 30, 2014 Author Share Posted July 30, 2014 Both the live and dev server have the sae version on php (5.4) and should be identical. I agree it does sound like a path issue though but as I say they're identical and it works on the dev server Link to comment Share on other sites More sharing options...
justsomeguy Posted July 30, 2014 Share Posted July 30, 2014 If the PHP versions are identical and have the same extensions, and if the images can be found in the path you're giving, then it will work. Link to comment Share on other sites More sharing options...
davej Posted July 30, 2014 Share Posted July 30, 2014 Seems like this processing might need a lot of memory. Is the available server memory the same? Link to comment Share on other sites More sharing options...
unplugged_web Posted July 31, 2014 Author Share Posted July 31, 2014 I don't know about the server memory, how would I find that out? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now