pdf:clean( $doc as node()?, $toc as element()? ) as node()?
Clean up any conversion artifacts or other infelicities.
Parameters | |
---|---|
doc | The XHTML produced by conversion of a PDF document. |
toc | The TOC produced by conversion of a PDF document. |
xquery version "1.0-ml"; import module namespace pdf = "http://marklogic.com/cpf/pdf" at "/MarkLogic/conversion/pdf.xqy"; pdf:clean(fn:doc("my_pdf.xhtml"), pdf:get-toc("my_pdf.xhtml"))