diff --git a/weasyprint/document.py b/weasyprint/document.py index 4dff0b94c..5c2a6a6d9 100644 --- a/weasyprint/document.py +++ b/weasyprint/document.py @@ -423,7 +423,7 @@ def copy(self, pages='all'): Combine multiple documents into one PDF file, using metadata from the first:: - all_pages = [p for p in doc.pages for doc in documents] + all_pages = [p for doc in documents for p in doc.pages] documents[0].copy(all_pages).write_pdf('combined.pdf') """