// External name is mandatory
attr = DOMUtil.getAttribute(vElem, "title", titleRequired);
// Create new 3D view object
PDF3DView view = pdfi.factory.make3DView(attr);
// Internal name (opt.)
attr = DOMUtil.getAttribute(vElem, "name");
if (attr.length() > 0) {
view.setInternalName(attr);
}
// Handle background color
attr = DOMUtil.getAttribute(vElem, "background-color");
if (attr.length() > 0) {
view.setBackgroundColor(ColorUtil.parseColorString(ctx
.getUserAgent(), attr));
}
// Handle view camera settings
handleViewCamera(vElem, view);