get IPXC_XForm data

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
jusWest
User
Posts: 58
Joined: Fri Aug 24, 2018 8:26 am

get IPXC_XForm data

Post by jusWest » Thu Jun 27, 2019 11:58 am

Hello!

Probably not seaing the forrest for the trees here, but how can I get the value of a textobject that is
in a IPXC_XForm?

I'm doing something like this:

Code: Select all

            for (int i = 0; i < _CoreDoc.Pages.Count; i++)
            {
                IPXC_Content content = _CoreDoc.Pages[(uint)i].GetContent(PXC_ContentAccessMode.CAccessMode_Readonly);

                for (uint c = 0; c < content.Items.Count; c++)
                {
                    if (content.Items[c].Type == PXC_CIType.CIT_XForm)
                    {
                        var xFormHandle = content.Items[c].XForm_Handle;
                        var xFormdata = _CoreDoc.GetXFormByHandle(xFormHandle);
                        var contentxForm = xFormdata.GetContentEx(PXC_ContentAccessMode.CAccessMode_Readonly);

                        if (contentxForm != null)
                        {
                            // what to do here?
                        }

                    }
                }
            }

User avatar
Sasha - Tracker Dev Team
User
Posts: 4220
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: get IPXC_XForm data

Post by Sasha - Tracker Dev Team » Thu Jun 27, 2019 12:02 pm

Hello jusWest,

In place of the last var keyword there should have been an IPXC_Content interface that would instantly give you an idea on what to do next. Basically the XForm has it's own content that can hold another XForm and so on. So a recursive method would be perfect here.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

jusWest
User
Posts: 58
Joined: Fri Aug 24, 2018 8:26 am

Re: get IPXC_XForm data

Post by jusWest » Fri Jun 28, 2019 8:18 am

:roll:

duhh, I need a vacation it seems :P :lol:

User avatar
Will - Tracker Supp
Site Admin
Posts: 6788
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: get IPXC_XForm data

Post by Will - Tracker Supp » Fri Jun 28, 2019 8:20 am

:D (Me too! :wink: )
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Post Reply