This repository contains parser combinators (SVG operations follow EBNF syntax) that take an InkScape SVG and convert each graphics path, text path and image to an object. SVG standard doesn't provide such bounding boxes they must be calculated. For most purposes, we need the bounding boxes for the paths, characters and images embedded in the PDF. This is a fairly complicated hierarchical representation, as commonly found in most XML files. SVG produced by InkScape contains many information such as grouping elements, multiple transformation operations such as "rotate", "scale" etc. This SVG is produced by InkScape by converting a page of a PDF (see this for an example). This repository contains Scala code for generating such a representation from PDFs. PDF doesn't have a flat object oriented representation making it extremely hard to process. PDF and SVG are both vector graphics, with considerable differences.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |