For awhile now we have been adding forms functionality to the pdf to svg extractor so the forms found on the pdf page will appear and function as they do in original pdf.
As those of you may know svg has support for text areas that can be set to be editable. So in order to add the full functionality we require for extracted pdf pages we needed to find some other way to have the forms appear on page with the required functionality.
There are some disadvantages to using foreign objects, some browsers do not support foreign objects as well as others. For instance, at the time of writing, Opera would display the forms when they are first loaded then after that they are replaced with markers showing an issue with the content in the area of the form components. Foreign objects also allow you to place foreign objects outside of the area defined by the svg object. These objects will appear but only under unique circumstances. This can be an issue as we centre the svg image using the style attribute. The svg image may be centered but the foreign objects within the svg object are not.
This post is part of our “SVG Article Index” in these articles, we aim to help you build knowledge and understand SVG.
Latest posts by Kieran France (see all)
- Abstract thought, or What I learnt in Flatland. - March 5, 2014
- What do role-play games have in common with software development - February 19, 2014
- Java, Touchscreen and Swing - December 19, 2013
- Size does matter - November 27, 2013
- How to best add documentation to your code - November 6, 2013