File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
xmpbox/src/main/java/org/apache/xmpbox Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 3535import org .apache .xmpbox .schema .XMPMediaManagementSchema ;
3636import org .apache .xmpbox .schema .XMPRightsManagementSchema ;
3737import org .apache .xmpbox .schema .XMPSchema ;
38+ import org .apache .xmpbox .schema .XMPageTextSchema ;
3839import org .apache .xmpbox .schema .XmpSchemaException ;
3940import org .apache .xmpbox .type .StructuredType ;
4041import org .apache .xmpbox .type .TypeMapping ;
@@ -575,4 +576,31 @@ public void clearSchemas()
575576 {
576577 schemas .clear ();
577578 }
579+
580+ /**
581+ * Create and add PageText Schema to this metadata.
582+ *
583+ * This method return the created schema to enter information
584+ *
585+ * @return schema added in order to work on it
586+ */
587+ public XMPageTextSchema createAndAddPageTextSchema ()
588+ {
589+ XMPageTextSchema pageText = new XMPageTextSchema (this );
590+ pageText .setAboutAsSimple ("" );
591+ addSchema (pageText );
592+ return pageText ;
593+ }
594+
595+ /**
596+ * Get the PageText schema.
597+ *
598+ * This method return null if not found
599+ *
600+ * @return The PageTextSchema schema or null if not declared
601+ */
602+ public XMPageTextSchema getPageTextSchema ()
603+ {
604+ return (XMPageTextSchema ) getSchema (XMPageTextSchema .class );
605+ }
578606}
You can’t perform that action at this time.
0 commit comments