Core Api Attachments Extract SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
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.
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.
Core Api Attachments Extract
Hello,
i want to extract all attachments from a pdf. How can i do that?
Regards,
edvschu
i want to extract all attachments from a pdf. How can i do that?
Regards,
edvschu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Core Api Attachments Extract
Here's the sample which you can experiment with:
HTH
Code: Select all
IPXC_NameTree pTree = pDoc.GetNameTree("EmbeddedFiles");
IAFS_Inst pAInst = (IAFS_Inst)pInst.GetExtension("AFS");
IAFS_FileSys pFSys = pAInst.DefaultFileSys;
uint nAttachmentsCount = pTree.Count;
string sName;
for (uint i = 0; i < nAttachmentsCount; i++)
{
IPXS_PDFVariant pValue;
pTree.Item(i, out sName, out pValue);
IPXC_FileSpec pFS = pDoc.GetFileSpecFromVariant(pValue);
IPXC_EmbeddedFileStream pEFS = pFS.EmbeddedFile;
IAFS_Name pName = pFSys.StringToName(@"D:\Test" + i.ToString() + ".txt");
IAFS_File pFile = pFSys.OpenFile(pName, (int)AFS_OpenFileFlags.AFS_OpenFile_CreateAlways | (int)AFS_OpenFileFlags.AFS_OpenFile_ShareWrite | (int)AFS_OpenFileFlags.AFS_OpenFile_Write | (int)AFS_OpenFileFlags.AFS_OpenFile_ShareRead);
pEFS.SaveToFile(pFile);
}
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Core Api Attachments Extract
I see no IAFS_Inst Interface in Object Catalog. I'm confused .
Re: Core Api Attachments Extract
I can do this:
but no this:
Can anyone help?
Code: Select all
Private auxInst As LIBNAME.IAUX_Inst
Private pxsInst As LIBNAME.IPXS_Inst
Code: Select all
Private afsInst As LIBNAME.IAFS_Inst
- Tracker Supp-Stefan
- Site Admin
- Posts: 17824
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Core Api Attachments Extract
Hello again edvschu,
This will be fixed in next build.
For the moment you could try to use the Editor SDK dll.
Regards,
Stefan
This will be fixed in next build.
For the moment you could try to use the Editor SDK dll.
Regards,
Stefan
- John - Tracker Supp
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
- Contact:
Re: Core Api Attachments Extract
Please post your Core API Questions in the correct forum to avoid confusion and delays
Thanks - we will move as appropriate.
thanks
Thanks - we will move as appropriate.
thanks
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
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com
Re: Core Api Attachments Extract
Hello,
how close is the next build?
Best Regards,
edvschu
how close is the next build?
Best Regards,
edvschu
- Tracker Supp-Stefan
- Site Admin
- Posts: 17824
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Core Api Attachments Extract
Hello edvschu,
We do not have any fixed date yet, but the idea currently is to have the new build out before the festive season if all goes well and we are ready with all the things planned for it.
Regards,
Stefan
We do not have any fixed date yet, but the idea currently is to have the new build out before the festive season if all goes well and we are ready with all the things planned for it.
Regards,
Stefan
Re: Core Api Attachments Extract
Hi Stefan,
that sounds good .
Regards,
edvschu
that sounds good .
Regards,
edvschu
- Tracker Supp-Stefan
- Site Admin
- Posts: 17824
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact: