- Python 3
pip install -r requirements.txt
Convert Layout XML produced by Grobid's fork of pdf2xml or pdftoxml to SVG.
Because SVG doesn't support multiple pages yet, separate files will be created.
For example to convert a PDF to LXML you may run:
pdftoxml test.pdf test.lxml
Convert the file to SVG:
python -m sciencebeam_lab.lxml_to_svg --lxml-path test.lxml
That will create test-page1.svg
, test-page2.svg
, etc.