Skip to content

PDF cannot open in Adobe InDesign #958

@Kishanpatel96

Description

@Kishanpatel96

I am using PyMuPDF for writing a text on PDF. I am successfully able to write text on PDF with this library. If I open PDF normally or Other Adobe software then It is working fine.

Describe the bug

If I open an output PDF file in Adobe InDesign then it is giving an error that PDF cannot Open.
If I will not write text and save PDF file using PyMuPDF then it can easly open in Adobe InDesign

To Reproduce

1. I have tried with insertTextbox method.

pdf.insertTextbox(position,
                word,
                align=alignment,
                fontname=fontname,
                fontfile=slot_data['fontFile'],
                fontsize=slot_data['fontSize'],
                rotate=0,
                color=RGBColor,
                )

pdf_document.save(output_file,garbage=3, deflate=True, pretty=True)

Expected behavior

I want to open a PDF file the normal way in Adobe InDesign.
Can you tell me it is possible or not? If possible then can you guide me on how I can do it?

Thank you,
Kishan Patel

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions