How can I define table field residing in a Structure field?
I use java Adobe XMP toolkit.
There are a few methods to define elements of structure and table.
setStructField() and appendArrayItem().
But ducu said that the members of the Structure may be table or a structure, in addition also array elements can be tables or structures.
So, how can I define field Array in Structure or table Structure?
Thank you
Andrey
OK, it worked, first time (without exception) I tried to set the value of the CURRENT field.
The trick is to add table or a struct before setting their values.
This short example shows how this works:
Register of XMPSchemaRegistry = XMPMetaFactory.getSchemaRegistry ();
registry.registerNamespace (extNS, "pdfaExtension");
registry.registerNamespace (shemaNS, "pdfaSchema");
registry.registerNamespace (propertyNS, "pdfaProperty");
XMPMeta m = XMPMetaFactory.create ();
m.appendArrayItem (extNS, "pdfaExtension:schemas", new PropertyOptions () .setArray (true), "", new PropertyOptions () .setStruct (true));
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:prefix","dc" ');
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:namespaceURI","http://purl.org/dc/elements/1.1/" "");
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:schema","Dublin Core Schema" ");
m.appendArrayItem (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property", new PropertyOptions () .setArrayOrdered (true), null, new PropertyOptions() ")
.setStruct (true));
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:name","contributor", null ");
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:category","external", null ");
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:description", ")
("Contributors to the resource (other than the authors).", null);
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:valueType","bag ProperName", null ");
m.appendArrayItem (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property", new PropertyOptions () .setArrayOrdered (true), null, new PropertyOptions() ")
.setStruct (true));
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:name","coverage", null ");
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:category","external", null ");
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:description","the extent or scope of the resource.", null ");
m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:valueType","Text", null ");
Code above creates more XMP:
"xmlns:pdfaExtension ="http://www.aiim.org/pdfa/ns/extension/" "xmlns:pdfaSchema ="http://www.aiim.org/pdfa/ns/schema#" xmlns:pdfaProperty ="http://www.aiim.org/pdfa/ns/property#" >. "
Tags: Adobe Developers
Similar Questions
-
How can I define 'Contact Filter'?
How can I define 'Contact Filter'?
Hello
It's a segmentation tool that searches the database for contacts that meet a set of criteria.
Thank you
-
How can I add a field to 2 digits which, to the entry '1' returns '01?
How can I add a field to 2 digits which, to the entry '1' returns '01?
You can use this code as the Custom Format script:
If (event.value) event.value = util.printf ("% 2d", event.value);
-
Can we define a field value of contact with the CRM campaign settings ID campaign?
Hello
Can we define a field value of contact with the ID of CRM campaign?
For example: LAST campaign SFDC ID (field of contact) = CRM campaign (campaign) No.
The Eloqua campaign canvas has the possibility to update CRM directly with the status of the campaign on things like email send or clicks. IF you set these shares to be among the rules of the answer, then as they happen, they will create/update records of campaign in CRM directly responses. However, this will have an impact on information in Eloqua.
-
How can I import tables from a different schema in the relational model... to add these tables in the existing relational/logic model? PLSS help
Notes; I already have a schema ready relational/logic model... and I need to add more tables to this relational/logic model
can I import the same way like I did before?
But even if I do the same how can I add it in the template? as the logic model has been designed...
Help, please...
Thank you
To view the diagram of logic model in Bachman notation, you right-click on a blank area of the diagram and select the rating > Bachman Notation.
David
-
Help? How can I get my fields of tab?
How can I get my fields of auto tab to the next field with Adobe Acrobat Pro DC?
Hi hsimpson,
Refer to the threads below, can be useful: -.
Kind regards
Nicos
-
How can I lock the fields after that you filled out a pdf file
How can I lock the fields after that you filled out a pdf file
Hello
Please refer to this topic THAT PDF locking after filled will be a great help.
Kind regards
Nicos
-
How can I make a field on a form always take into account what is entered in a field somewhere earlier on the form. Basically an auto-fill of the same info
Assign eponymous for the fields of the form.
-
How can I define two different emails in one form of contact?
How can I define two different emails in one form of contact?
To enter several e-mail address with Contact form Widgets:
- Click on the Options icon for the selected widget, then
- In the Email box, enter several emails in delimiting them with a semicolon. For example:
[email protected];[email protected]
CARI
-
How can I remove unwanted fields
As a newbie, I apologize if this is a double post, because I can't find the original on the site.
In the window of writing, a friend has 4 legs next to 4 all giving address fields to, CC, BCC options.
When they enter an address in the top field, labeled, their address is copied to the second address field down, also by default. Therefore, they are back a copy of outgoing mail.An address field then, how can we remove the extras please?
I don't know the version number, but installation is around the age of 6 months.Thanks, Caison.
in the menu (alt + T) tools > open account settings
Select the copies and records. and ensure that CC and BCC these addresses is not defined.Also restart with disabled addons in the Help menu and see if that stops at automatic insertion, I assure you that's for me.
While the number of boxes can be forced to one, it is not a good idea, as this entire header turns into a compression if you click on reply to a mail with more than one recipient.
-
Can I define a field that summarizes a group of checkboxes?
I have a few groups (Group 1, group 2, etc.), the boxes where any number of boxes (Item1, Item2, Item3, etc.) can be controlled. Let me summarize all of the selections of each group in a summary field. For example: If the Group1 items 1, 6 and verified 17, I want the summary field for 1 group to say "Item1; Item6; Item17. Is this possible? If so, the code would be must be included in each box properties or the summary field only, or both?I use Adobe Acrobat Pro XI on Windows 7 Professional.
Thanking you in advance for any help on this.
A lot of how you created and coded the boxes will determine how the code should work.
I can create checkboxes with very specific domain names or use a generic name one number fields. I could do a checkbox named "Gropup1" and then use the "create multiple copies" and create a series of check boxes named "Group1.0", "Group1.1", "Group1.2", etc.. Then, I put the value of export for each field. This type of domain name is known as the hierarchical naming. I can now use the getField method to get the name at the top, 'Group 1', to get this group object. Using the method "getArray()" can I create an array of objects field in the "Group1", using this table I can program a loop to test each field in the Group and push each 'Off' no value in a table. Using the method of 'join()' I can create a list of the values in the active fields. It is even possible to create a function to use high standard name and return a list of values for the fields enabled in this group of fields. Then just call the function with parameter the name at the top and I can fill in the summary field for this group.
An example:
I create a function of level document with the name of 'GroupResult' and the following code:
function GroupResult (cName) {}
var oGroup = this.getField (cName);
var aGroup = oGroup.getArray ();
var aResult = new Array();
for (var i = 0; i)< agroup.length;="" i++)="">
If (aGroup [i] .value! = "Off") aResult.push (aGroup [i] .value);
} / / end of loop for table fields.
return the list of items selected;
Return aResult.join (",");
}
I have a group of checkboxes name 'Group1.0', 'Group1.1', 'Group1.2' and 'Group1.3' all with unique when values checked and I have a text called "ResultsGrop1," field
The script for calculating customized for the text field would be:
Event.Value = GroupResult ("Group1");
If I had another group of boxes labeled "Group2. "#" would be JavaScript customized to the text field:
Event.Value = GroupResult ("Group2");
It makes no difference how much check each group boxes script will adjust the number of check boxes in the group.
-
How can I define range partitions?
Hi all
In the physical model, I have a table defined as "Partitioned", activates the tab for partitioning. As a guy, I select "RANGE" so that the two tabs for 'Range interval Clause' and 'Order of Partitions' are active.
My problem is now in the "Order of Partitions" tab. How can I create new entries in this window?
Apparently, you can only edit existing ones, but not add new entries.
Thanks for the tips.If you open the node of the Table there are Partitions inside node. Right click and choose "new".
-
How can I define relative positions in the form objects.
Hello
I have created a form of Bill, who is blinded by a schema. In my application, the form is rendered a XML data file.
In the form, there is a table and 2 zones of text under the table. During rendering, the table of contents come above the text boxes.
How can I give a position relative to the text boxes, so that while that the rows of the table increases, the text also come down, without overlapping boxes.
Thanks in advance.
- The main subform (this is one that is created by default should be set to "Flowed", "Western text".)
- Then put the Table in an another subform, BUT in the main form and set this new subform to "positioned".
- Create an another subform for your text, defining as this one for "positioned".
- Make sure your hierarchy, the subforms are arranged correctly, which is main form flowed everything first, then followed by your table subform, then text subform (or order whatever you want to follow them;) REMEMBER THAT TABLE SUBFORMS AND THE TEXT SHOULD BE IN THE MAIN SUBFORM. Test the form and your table grows, it should push your texts.
-
How can I convert table 1 d in a 2D array.
I have a table 1 d I want to get into an Excel template. How can I convert a 2D table so I can enter Excel Table.vi easy?
Be sure to check the correct operation. Solution-Marc adds another row of zeros and I don't know if this is desirable here. (See also)
-
can we say, learn how to draw a table in the bb, thank you
Hello
Take a look at this link
Maybe you are looking for
-
Is it possible to connect my iPhone or iPad to Toshiba 42L7453DB
Hi E1 is it possible to connect my iPhone or iPad for my Toshiba 42L7453DB 42 "via wifiIf I could someone let me know how please Kind regardsTask001
-
All guide service processors are supported?
I was wondering if all of the processors listed in the guide to laptop service are compatible with the laptop? Thanks for any help...
-
. Updates ready to install all of the time.
I am constantly told that there are updates ready with a small yellow shield. Updates are KB2686828 KB2656369 KB2729450. Even when I install them it turns back on. I am running windows XP. Any help would be appreciated. Thank you, Helen
-
Lack of drive D, could not load the required additional software
After the disappearance of 'maintenance' of my D drive (CD/DVD). I've been using Microsoft, but after trying to start the restore process, I received the automated message "Please install other required software then visit Microsoft Fixit. "However,
-
My sister sold me this computer last October, I decided to redo everything from scratch, so I'd feel like it was mine. I had a problem or two, and most had been resolved but a few months ago I could not download itunes more and this is the message I