other small foo to try and fix damned pdf

This commit is contained in:
Sanj 2011-07-06 18:05:00 +05:30
parent cf0a3e87a5
commit 33ea652ed4
2 changed files with 3 additions and 3 deletions

View File

@ -650,9 +650,9 @@ def article_pdf(request):
article = get_object_or_404_json(Article, pk=a_id)
dpi = request.GET.get('dpi', 300)
width_mm = request.GET.get('width', article.typ.print_width)
height_mm = int(round(width_mm / article.typ.aspect_ratio))
height_mm = int(round(width_mm + .0 / article.typ.aspect_ratio))
pages = Page.objects.filter(article=article).order_by('page_no')
m = article.get_print_multiplier(dpi)
m = int(round(article.get_print_multiplier(dpi))
url = SITE_BASE + "/edit/view_article/%d/?m=%f" % (article.id, m)
url_list = [url]
'''

View File

@ -52,7 +52,7 @@ p {
#imagebox{{p.id}}{{i.id}} img {
height: {{ i.css.height|make_really_big:m }};
width: {{ i.css.width|make_really_big:m }}
width: {{ i.css.width|make_really_big:m }};
}
{% endfor %}