Split pdf2xml into library and script.
Add an extra iterator for pages.
Fix.
Add lib to setup script.