Read an attribute value of the XML file
File a.xml, the path is: C:\Program Files\Adobe\Adobe Photoshop CC 2018\Presets\Scripts\a.xml
The content of a.xml is:
var f = new File('/C/Program Files/Adobe/Adobe Photoshop CC 2018/Presets/Scripts/Proof_2.0.xml');
var xml = new XML( f.read() );
var Widths = xml.child('Widths');
but text field no value
pls help me
e pls help me
However, there is a very simple way to do this manually. If your text fields on the PDF exactly match the names of the Tags in the XML then this will work.
1. Rename the "Mark" tag to "fields"
2. Search for the "import Data" tool in Acrobat. This will be on the "Prepare Forms" panel
3. Run "import data" and select "XML" in the data type dropdown.
Unfortunately there is no JS command for just importing xml data. If you reformatted the XML in XFDF gramar, then there is a command for loading XFDF.