From 3d9e69e23b9ac3090fa7ae16fc2e2a1bbbbab258 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 6 Jul 2011 05:33:46 +0530 Subject: [PATCH] testing pdf --- edgware/editor/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edgware/editor/views.py b/edgware/editor/views.py index 35613e8..1cdae11 100644 --- a/edgware/editor/views.py +++ b/edgware/editor/views.py @@ -654,13 +654,13 @@ def article_pdf(request): pages = Page.objects.filter(article=article).order_by('page_no') m = article.get_print_multiplier(dpi) url = SITE_BASE + "/edit/view_article/%d/?m=%f" % (article.id, m) - url_list = [url] - ''' +# url_list = [url] + url_list = [] for p in pages: url = SITE_BASE + "/edit/view_article/%d/?m=%f&p=%d" % (article.id, m, p.id) url_list.append(url) - ''' + output_path = MEDIA_ROOT + "/pdf/" + article.name + "_" + str(article.current_revision()) + ".pdf" pdf_path = print_url_list(url_list, width_mm, height_mm, dpi, output_path) return HttpResponseRedirect(pdf_path.replace(MEDIA_ROOT, "/static"))