In order to easily present this content side by side, we're going to be using a Table. The next step is adding the QR-code and the contact information. We'll start by adding the title, such as "Your Company": # New imports from .text.paragraph import Paragraphįrom .color import HexColor Now that we have an empty canvas to work from, let's add the basic content. # Future content-rendering-code to be inserted here # Attempt to store PDF with open( "output.pdf", "wb") as pdf_file_handle: Layout: PageLayout = SingleColumnLayout(page) Let's see what that looks like in code: from import Documentįrom .page_layout.multi_column_layout import SingleColumnLayoutįrom .page_layout.page_layout import PageLayout
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |