francoisxi
asked on
possible to import xml into acroform (not xfa)?
Hi folks,
I know you can import xml into a xfa form relatively easily; however, i am using a current pdf with acroforms that I am trying to import xml into. Unfortunately, nothing happens if I select the xml file. From what I understand, all xml tags must match, case and everything. The only thing I could see that would be causing the issue is the actual form name itself.
Thanks in advance
I know you can import xml into a xfa form relatively easily; however, i am using a current pdf with acroforms that I am trying to import xml into. Unfortunately, nothing happens if I select the xml file. From what I understand, all xml tags must match, case and everything. The only thing I could see that would be causing the issue is the actual form name itself.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you post a sample of your XML? Will all your user's have the full version of Acrobat?
ASKER
Didn't post all of it, but here's a start.. since it's sensitive data, i made a lot of it "generic"
<?xml version="1.0" encoding="UTF-8" ?>
- <form1>
- <Professional-Report>
<Company-Name>company</Com pany-Name>
<FirstName>name</FirstName >
<LastName>name</LastName>
<DOB>date</DOB>
<Surgery_Date>date</Surger y_Date>
<Diagnosis>diagnosis</Diag nosis>
<Procedure>procedure</Proc edure>
<Hospital>hospital</Hospit al>
<Technologist>1</Technolog ist>
<Surgeon>surgeon</Surgeon>
- <OR-Time>
<Start_Time>start</Start_T ime>
<Closing_Time>end</Closing _Time>
</OR-Time>
<?xml version="1.0" encoding="UTF-8" ?>
- <form1>
- <Professional-Report>
<Company-Name>company</Com
<FirstName>name</FirstName
<LastName>name</LastName>
<DOB>date</DOB>
<Surgery_Date>date</Surger
<Diagnosis>diagnosis</Diag
<Procedure>procedure</Proc
<Hospital>hospital</Hospit
<Technologist>1</Technolog
<Surgeon>surgeon</Surgeon>
- <OR-Time>
<Start_Time>start</Start_T
<Closing_Time>end</Closing
</OR-Time>
ASKER
Oh, and yes, sorry acrobat pro will be used throughout.
Can I assume that the tag <Professional-Report> contains the data that you want to add to the form, and that the tag names like Company-Name, FirstName, LastName, ... are your field names?
ASKER
Yes correct
How is the OR-Time tag handled? Are there just two fields named Starting_Time and Closing_Time? If that's not the case, how are these fields named?
How familiar are you with XSLT?
How familiar are you with XSLT?
ASKER
Sorry, changing that tag to starting and closing only (removing) so or-time won't be used.
Sorry, not familiar with XSLT :(
Sorry, not familiar with XSLT :(
ASKER
xml migration is specific to xfa forms where as acrobat scripting (javascript) is used in acroforms
ASKER