From 1d08767245e22501357e399b957ed33bf2b5219c Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 29 Jul 2010 01:27:19 +0530 Subject: [PATCH] article_pdf should not print everything double? --- edgware/editor/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edgware/editor/views.py b/edgware/editor/views.py index 35d63b7..718f7a8 100644 --- a/edgware/editor/views.py +++ b/edgware/editor/views.py @@ -586,7 +586,7 @@ def article_pdf(request): m = article.get_print_multiplier(dpi) url_list = [] for p in pages: - url = SITE_BASE + "/edit/view_article/%d/?m=%f" % (article.id, m) + 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".replace(" ", "") pdf_path = print_url_list(url_list, width_mm, height_mm, output_path)