revert to math.ceil for height to deal with blank pages
This commit is contained in:
parent
44e0c21f69
commit
60a2509e24
|
@ -650,7 +650,7 @@ def article_pdf(request):
|
|||
article = get_object_or_404_json(Article, pk=a_id)
|
||||
dpi = request.GET.get('dpi', 600)
|
||||
width_mm = request.GET.get('width', article.typ.print_width)
|
||||
height_mm = width_mm / article.typ.aspect_ratio
|
||||
height_mm = math.ceil(width_mm / article.typ.aspect_ratio)
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user