Skip to content

Add add_outlines method for PdfWriter #1048

@fancywriter

Description

@fancywriter

I have tried PyPDF2 for some PDF manipulation and it works brilliantly!
However, my output file doesn't keep table of contents.

Code Example

What I do is not much difference from reading and writing file with all pages and metadata like here in example of removing duplication https://pypdf2.readthedocs.io/en/latest/user/file-size.html#removing-duplication

How would your feature be used?

from PyPDF2 import PdfReader, PdfWriter

writer.add_table_of_contents(reader.table_of_contents)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions