Skip to content

Content was not written into target PDF file #4192

Description

@highyield3011

Description of the bug

Hi Experts,

I'm using PyMuPDF to read content from original PDF and write new content into another target PDF after the content is translated.
However, the translated content was not written into target PDF file at all.
Could you please help look this issue?

Below is the whole coding file(translation is working fine):
translate_pdf_document.py.txt

How to reproduce the bug

please refer to coding file

PyMuPDF version

1.25.1

Operating system

Windows

Python version

3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    not a bugnot a bug / user error / unable to reproduce

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions