Loading TOC...

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"))
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.