From affd5b46b386d45ef083c778b4ed4bca52f15886 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Mon, 17 Mar 2025 12:54:02 +0100 Subject: [PATCH] pdf-notes: Drobnosti --- pdf/pdf-notes | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pdf/pdf-notes b/pdf/pdf-notes index 1e72b80..4f8e2d8 100644 --- a/pdf/pdf-notes +++ b/pdf/pdf-notes @@ -24,6 +24,7 @@ named dest catalog -> /Names -> /Dests -> name tree ## \pdfdest name{<name>} (xyz [zoom <mag>] | fitr <rule> | fitv ...) +## -> fitb, fitbv, fitbh: bounding box of the page ## \pdfdestmargin=<dimen> Actions: (dictionaries) @@ -56,8 +57,8 @@ item: /Parent -> parent item /Prev -> previous item /Next -> next item - /First -> first descendant - /Last -> last descendant + /First -> first child + /Last -> last child /Count num-of-open-descendants /Dest name-string-or-array /A action-on-activate @@ -66,12 +67,15 @@ item: ## \pdfoutline [attr <text>] <action> [count <integer>] <text> ## action: -## - goto page N +## - goto page N, goto name X ## - user { ... } +## count > 0: open subentries +## count < 0: closed subentries Page labels: catalog -> /PageLabels -> number tree -> page label dict +(for each range, the number tree contains the first page number in the range) /Type /PageLabel optional /S style D=decimal, R=ROMAN, r=roman, A=upcase (A..Z, AA,BB..ZZ, ...), a=lowcase @@ -101,7 +105,7 @@ page -> /Annots -> array of annotation dictionaries /D dash-array /C [gray / r g b / c m y k] -annotation types: +annotation subtypes: /Text ikonka, vyvolava pop-up text /Name icon (/Comment /Help apod.) @@ -115,6 +119,7 @@ annotation types: pdftex: \pdfannot [reserveobjnum | useobjnum <N>] [<rule-spec>] <raw-PDF> rule-spec describes annot size, default is all dimensions running + (inherits dimensions of enclosing box) \pdflastannot returns object number \pdfstartlink [<rule-spec>] [attr <text>] (<action> ::= user <user-action> | goto name{<destination>} | goto page <num> {/Fit}) -- GitLab