Fixed typo in docs/outputting_pdf.txt. Thanks, Paul

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-03-24 02:28:47 +00:00
parent 5e06181be7
commit 8b4dc349b6
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ efficient. Here's the above "Hello World" example rewritten to use
response = HttpResponse(mimetype='application/pdf')
response['Content-Disposition'] = 'attachment; filename=somefilename.pdf'
buffer = String()
buffer = StringIO()
# Create the PDF object, using the StringIO object as its "file."
p = canvas.Canvas(buffer)