try increasing dpi arbitrarily

This commit is contained in:
Sanj 2011-07-06 18:42:17 +05:30
parent 236ea57a3b
commit 7989765aaa

View File

@ -648,7 +648,7 @@ def product_pdf(request):
def article_pdf(request):
a_id = request.GET['id']
article = get_object_or_404_json(Article, pk=a_id)
dpi = request.GET.get('dpi', 300)
dpi = request.GET.get('dpi', 1200)
width_mm = request.GET.get('width', article.typ.print_width)
height_mm = int(round(width_mm / article.typ.aspect_ratio))
pages = Page.objects.filter(article=article).order_by('page_no')