Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 15 Μαΐ 2009 · To use the with statement, create a class with the following methods: def __enter__(self) def __exit__(self, exc_type, exc_value, traceback) In your example above, you'd use. class Package: def __init__(self): self.files = [] def __enter__(self): return self.

  2. 11 Δεκ 2022 · I would like to remove some Form XObject from the PDF file and not sure how to do that. I can get the xref by calling page.get_xobjects() and inspect the object info with doc.xref_object method. How do I remove it from the PDF file?

  3. 16 Ιουλ 2023 · In this comprehensive guide, we will introduce you to PyPDF2, a popular Python library for working with PDF files, and provide a step-by-step tutorial on how to use it effectively.

  4. This tutorial will show you the use of PyMuPDF, MuPDF in Python, step by step. Because MuPDF supports not only PDF, but also XPS, OpenXPS, CBZ, CBR, FB2 and EPUB formats, so does PyMuPDF [ 1]. Nevertheless, for the sake of brevity we will only talk about PDF files.

  5. In this tutorial, you'll explore the different ways of creating and modifying PDF files in Python. You'll learn how to read and extract text, merge and concatenate files, crop and rotate pages, encrypt and decrypt files, and even create PDFs from scratch.

  6. 8 Μαρ 2024 · pypdf is a python library built as a PDF toolkit. It is capable of: Extracting document information (title, author, …) Splitting documents page by page. Merging documents page by page. Cropping pages. Merging multiple pages into a single page. Encrypting and decrypting PDF files. and more!

  7. from fpdf import FPDF class PDF(FPDF): def header(self): # Logo self.image('logo_pb.png', 10, 8, 33) # Arial bold 15 self.set_font('Arial', 'B', 15) # Move to the right self.cell(80) # Title self.cell(30, 10, 'Title', 1, 0, 'C') # Line break self.ln(20) # Page footer def footer(self): # Position at 1.5 cm from bottom self.set_y(-15) # Arial ...

  1. Γίνεται επίσης αναζήτηση για