The shell command worker may be at fault as the files in media/pdf are 0byte but having said that of course if the varaibles being sent to it are erroneous that would have the same effect.... wood trees
I'll have a look at easy_pdf, I have the context dict available so should be a relatively quick shoe in to test, thanks On Monday, October 12, 2015 at 9:54:33 PM UTC+1, James Schneider wrote: > > > Please excuse if this is the wrong forum and if a mod wants to move it > please feel free, just please let me know where it went. > > > > I'm attempting to convert html to pdf on the fly with HTMLDOC. > > > > The fly in the ointment appears to be that the generated pdf is not > viewable in that it opens Adobe Reader and gives a warning This PDF > document might not be displayed correctly. > > > > Sounds like an issue with the shell application you are using to generate > it. Have you tried manually grabbing the generated file from the server > (not through the web) and opening it with the same result? > > > worker = subprocess.Popen( """htmldoc --webpage "%s" --linkstyle > plain --footer ... --no-compression -t pdf14 > %s_tmp""" % ( url, > outputfile ), shell = True, stdout = subprocess.PIPE, stderr = > subprocess.STDOUT ) > > Have you tried running the command manually in the shell and then trying > to open the PDF? That would eliminate Django as a culprit. > > -James > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c5ef8275-f0f7-4307-b1d2-923672e9a197%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.