try changing dpi
This commit is contained in:
parent
fc7d7314ba
commit
4b32d446ba
|
@ -641,7 +641,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', 200)
|
||||
width_mm = request.GET.get('width', article.typ.print_width)
|
||||
height_mm = math.ceil(width_mm // article.typ.aspect_ratio)
|
||||
pages = Page.objects.filter(article=article).order_by('page_no')
|
||||
|
|
Loading…
Reference in New Issue
Block a user