[add] initial handler stuff
This commit is contained in:
parent
7deb653208
commit
9533519b8a
10 changed files with 284 additions and 187 deletions
|
|
@ -286,7 +286,8 @@ as map(*)*{
|
|||
=>PDDocumentCatalog:getDocumentOutline()
|
||||
|
||||
return if(exists($outline))
|
||||
then pdfbox:outline($pdf,PDOutlineItem:getFirstChild($outline))
|
||||
then pdfbox:outline($pdf,PDOutlineItem:getFirstChild($outline))
|
||||
else ()
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -363,6 +364,7 @@ as item()?
|
|||
then PDDocument:getDocumentCatalog($pdf)
|
||||
=>PDDocumentCatalog:getPages()
|
||||
=>PDPageTree:indexOf($page)
|
||||
else ()
|
||||
};
|
||||
|
||||
(:~ Return new PDF doc with pages from $start to $end as xs:base64Binary, (1 based)
|
||||
|
|
@ -434,7 +436,7 @@ as xs:string?{
|
|||
return string-join(($page,
|
||||
if(empty($style)) then "-" else $style,
|
||||
if(($start eq 1)) then "" else $start,
|
||||
if(exists($prefix)) then '*' || $prefix (:TODO double " :)
|
||||
if(exists($prefix)) then '*' || $prefix else () (:TODO double " :)
|
||||
))
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue