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)
- Vanity, thy name is pop-up icon - August 26, 2014
- Removal of features – Right click find functionality - August 5, 2014
- 1 Listener to rule them all - July 15, 2014
- Grey box appears within display area - June 24, 2014
- How to reselect elements in a JTree - June 3, 2014