About 50 results
Open links in new tab
  1. PyMUPDF - How to convert PDF to image, using the original document ...

    Oct 2, 2021 · PyMuPDF itself only support a handful of image output formats, the most popular being PNG, others are the PNM-type images. If you want to use others, you must use an additional …

  2. How do I resolve "No module named 'frontend'" when trying to use ...

    Aug 31, 2020 · I have installed PymuPDF/fitz because am trying to extract images from PDF files. However, upon running the code below, I am seeing No module named 'frontend'. import fitz doc = …

  3. python - adding text to a pdf using PyMuPDF - Stack Overflow

    Aug 5, 2020 · I'm trying to add text to a pdf by opening the PDF, adding a text box, and saving it. When I run the code, nothing happens. on the desktop, it shows the file has been updated, but there is no text

  4. Extracting Images from a PDF using PyMuPDF gives broken output …

    Mar 31, 2025 · Python has PyMuPDF which can "gather" "paths" and combine into single graphical units. So if you select an area of inclusions (Region of Interest) they can possibly be reused as …

  5. Converting PDF to an image using PyMuPDF - Stack Overflow

    Jul 15, 2022 · There is a standard way to save a PyMuPDF Pixmap: pix.save(). There is a handful of possible image formats available in this case: PNG, PSD (Adobe Photoshop), PS (Postscript) and …

  6. How to rotate a page by arbitrary angle in pymupdf?

    Aug 18, 2025 · I couldn't find how to rotate a text page of a PDF by an arbitraty angle in the pymupdf documentation. There is page.set_rotation(angle), however, which only allows for 0, 90, 180, 270 …

  7. pymupdf - Extract data from unorganized pdf table on Python - Stack ...

    Mar 4, 2024 · I'm trying to write a script that extracts some data from a pdf file ( [example]

  8. How to convert pdf to image in Pymupdf while retaining original ...

    Oct 26, 2023 · 1 I am trying to convert pdf to image using pymupdf. It is converting but the issue is it is changing the output size of the image. I want to retain the shape of the image as the input pdf.

  9. reserve and Reapply PDF Layout When Editing Text and Images with ...

    Feb 19, 2025 · I'm working on a PyQt6-based PDF editor using PyMuPDF (fitz). My goal is to extract all text and images from a PDF while preserving their original positions and dimensions, allow users to …

  10. PyMuPDF: AttributeError: module 'fitz' has no attribute 'open'

    Sep 13, 2021 · This is likely to be an installation issue and looks like there already exists a package fitz installed on your environment and is unrelated to PyMuPDF. So when PyMuPDF calls fitz it might …