Hello Tracker,
In PDF X Change viewer SDK manual, there is a method called ShowXFAInfo . Can you please guide us in the meantime how we can implement this method?
Thanks,
Doc-It Development
How to find if a form contains XFA fields.
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: How to find if a form contains XFA fields.
Hi, docu-track99
First of all, exactly what type of SDK are you using - this is a Drivers API section and you're asking about Viewer SDK.
Also, please provide a better description about what you need to do.
First of all, exactly what type of SDK are you using - this is a Drivers API section and you're asking about Viewer SDK.
Also, please provide a better description about what you need to do.
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: How to find if a form contains XFA fields.
We are using PDF X Change Viewer Active X SDK version 2.5.0311.
Since currently PDF X Change Viewer has an issue with XFA form that it cannot display data on XFA field. We are looking for a work around strategy for our client that if they encounter this type of form, we give them some sort of warning message like "The form you are trying to open has dynamic XFA fields. Please be advise that you may NOT see data in some fields. As a workaround please use Adobe Viewer..... "
So, we need a way to before opening a document if it contains XFA fileds.
In PDFV_AX.pdf manual, on page 103 we found a method "ShowXFAInfo" . Can you please tell us how we can use this method/function?
Doc-It Development
Since currently PDF X Change Viewer has an issue with XFA form that it cannot display data on XFA field. We are looking for a work around strategy for our client that if they encounter this type of form, we give them some sort of warning message like "The form you are trying to open has dynamic XFA fields. Please be advise that you may NOT see data in some fields. As a workaround please use Adobe Viewer..... "
So, we need a way to before opening a document if it contains XFA fileds.
In PDFV_AX.pdf manual, on page 103 we found a method "ShowXFAInfo" . Can you please tell us how we can use this method/function?
Doc-It Development
-
- User
- Posts: 3
- Joined: Mon Sep 21, 2015 6:16 am
Re: How to find if a form contains XFA fields.
Here's the sample(C#) which you can experiment with:
Code: Select all
CComBSTR bsResult;
CComBSTR bsScript = L"if (xfa != undefined && xfa != null) { if (this.XFAForeground)('static XFA');else 'dynamic XFA';} else 'else';";
HRESULT hRes = m_spView->RunJavaScript(bsScript, &bsResult.m_str, 0, 0);
if (bsResult == L"dynamic XFA")
;//dynamic XFA
else if (bsResult == L"static XFA")
;//static XFA
else
;//
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ