MarkLogic 10 Product Documentation
pdf:clean

pdf:clean(
   $doc as node()?,
   $toc as element()?
) as node()?

Summary

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.

Example

  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"))
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy