Package com.pd4ml.dom
The document object model of the v42 layout engine: read and change the HTML document
readHTML() parsed, before it is written. Get it with
PD4ML.getDocument(); navigate it, query it with CSS selectors, change elements,
attributes and text, insert HTML, and serialize it back to HTML. PD4ML.layout() lays it
out into pages as writePDF() would and tells where each element is (Layout). No
external libraries are involved.
The DOM API is part of the DMS and UA editions of PD4ML. Without a license, as every feature, it can be evaluated; the output then carries the evaluation watermark. With an STD or PRO license it works, but the output of a document it was used on carries the "PD4ML EVALUATION MODE" banners.
-
Class Summary Class Description Comment An HTML comment.Document An HTML document parsed by the v42 layout engine, asPD4ML.getDocument()returns it afterreadHTML().DocumentType The<!DOCTYPE>of a document.Element An HTML element.Layout The document laid out into pages aswritePDF()would write it, asPD4ML.layout()returns it: where each element is, on which page, and its computed style.LayoutBox A rectangle an element takes on a page of aLayout: its border box (content, padding and border), or the part of it on that page when the element continues on another page.Node A node of the documentPD4ML.getDocument()returns: anElement, aText, aCommentor theDocumentitself.Text A run of text.