on the first page and this is on the second pageon the second even though there was still plenty of space on the first page after the text this is on the first page!we forced the next paragraph to begin on new page by inserting page break after the first run of the first paragraph adding pictures document objects have an add_picture(method that will let you add an image to the end of the document say you have file zophie png in the current working directory you can add zophie png to the end of your document with width of inch and height of centimeters (word can use both imperial and metric unitsby entering the followingdoc add_picture('zophie png'width=docx shared inches( )height=docx shared cm( )the first argument is string of the image' filename the optional width and height keyword arguments will set the width and height of the image in the document if left outthe width and height will default to the normal size of the image you'll probably prefer to specify an image' height and width in familiar units such as inches and centimetersso you can use the docx shared inches(and docx shared cm(functions when you're specifying the width and height keyword arguments creating pdfs from word documents the pypdf module doesn' allow you to create pdf documents directlybut there' way to generate pdf files with python if you're on windows and have microsoft word installed you'll need to install the pywin package by running pip install --user - pywin == with this and the docx moduleyou can create word documents and then convert them to pdfs with the following script open new file editor tabenter the following codeand save it as convertwordtopdf pythis script runs on windows onlyand you must have word installed import win com client install with "pip install pywin == import docx wordfilename 'your_word_document docxpdffilename 'your_pdf_filename pdfdoc docx document(code to create word document goes here doc save(wordfilenamewdformatpdf word' numeric code for pdfs wordobj win com client dispatch('word application'working with pdf and word documents