익명 17:27

Is there a way to automatically add pdf bookmarks with offsets?

Is there a way to automatically add pdf bookmarks with offsets?

Is there a way to create, using Python script and pikepdf, additional PDF bookmarks with offsets as shown in the following example.

Say there are existing bookmarks like this in a PDF

ABC12 DEF34 GHI45 10
JKL13 MNP45 15
QRS67 18

I want to automatically create the following additional bookmarks:

ABC12-p1 10
ABC12-p2 11
ABC12-p3 12
ABC12-p4 13
ABC12-p5 14

DEF34-p1 10
DEF34-p2 11
DEF34-p3 12
DEF34-p4 13
DEF34-p5 14

GHI45-p1 10
GHI45-p2 11
GHI45-p3 12
GHI45-p4 13
GHI45-p5 14

JKL13-p1 15
JKL13-p2 16
JKL13-p3 17

MNP45-p1 15
MNP45-p2 16
MNP45-p3 17

QRS67-p1 18
QRS67-p2 19

etc.

The name of the pdf file to be processed would be a parameter of the script



Top Answer/Comment:

Comment: Edit your question and clarify what software you are attempting to use.

상단 광고의 [X] 버튼을 누르면 내용이 보입니다