![]() import PyPDF2 pdf 'YOUR PDF FILE PATH.pdf' pdf PyPDF2.PdfFileReader (pdf) page0 pdf.getPage (0) page0.scaleBy (0.5) float representing scale factor - this happens in. Using an editor gives the advantage of preserving the equations and may give the opportunity to reposition the graphics (images, diagrams, tables), but if that is not easily possible are there any scripts to do this, something as simple as just parsing the pdf and replacing the page size specified in the it? Or would the uneditable nature of pdf preculde that. This answer is really long overdue, and maybe the older versions of PyPDF2 didnt have this functionality, but its actually quite simple with version 1.26.0. Result: Changing the dimensions here affect the font becomes very difficult to read.Īny ideas how to do it with masterpdfeditor ie change the page size of whole pdf document (similar to changing the page size of an Office document)? "Object Inspector" panel (on the right) -> Geometry Result: Changing the page size crops the page, truncating information, instead of fitting the text in the new page size.Įdit -> Select_All # Selects only one page How to do that with Master PDF Editor? It took a while to figure out the following: The graphics (images, diagrams, tables) may not fit the page, but those can be scrolled. The number of text characters in a line would decrease automatically, the font would remain the same. If it was an Office document, just changing the page size to 5in x 6in (approximately 12cm x 14cm) and reducing the margins would do it. NET can be used to modify existing PDF documents and resize the content of the pages (change PDF page size, change PDF page. ![]() Need help with how to reformat a pdf to make it easier to read on a smaller screen.Ĭhanging the page size of the pdf via a reader just shrinks the document, not very useful. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |