Hi Tracker Team,
Currently, I'm using DoVerb with "SummarizeAnnots" to get comments summary.
But it will create a physical file and have to load pdf in viewer.
I'm doing a simple search engine for searching both content and comments, is there any way that can extract comment page by page like extract normal content?
How to extract comments without exporting file and UI
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 38
- Joined: Tue Jan 12, 2016 2:25 am
-
- Site Admin
- Posts: 17950
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: How to extract comments without exporting file and UI
Hello Crimsonlogic,
Our PDF Tools SDK is a bit older and might not have all the features you need. Is it an option for you to use the Core API instead? I am confident it will be faster and easier to achieve this with the Core API than with the Tools SDK (if at all possible with Tools).
You can download and give the Core API a try here:
https://www.pdf-xchange.com/produc ... re-api-sdk
Regards,
Stefan
Our PDF Tools SDK is a bit older and might not have all the features you need. Is it an option for you to use the Core API instead? I am confident it will be faster and easier to achieve this with the Core API than with the Tools SDK (if at all possible with Tools).
You can download and give the Core API a try here:
https://www.pdf-xchange.com/produc ... re-api-sdk
Regards,
Stefan
-
- User
- Posts: 38
- Joined: Tue Jan 12, 2016 2:25 am
Re: How to extract comments without exporting file and UI
Thanks for your information.
Is there any C# example for getting annotation page by page with PDFXCoreAPI?
Is there any C# example for getting annotation page by page with PDFXCoreAPI?
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: How to extract comments without exporting file and UI
Hello crisonlogic,
Well, you can get the required annotation properties from the IPXC_Annotation interface:
https://sdkhelp.pdf-xchange.com/vie ... Annotation
You can get all of the page's annotations by using
https://sdkhelp.pdf-xchange.com/vie ... e_GetAnnot
https://sdkhelp.pdf-xchange.com/vie ... nnotsCount
Cheers,
Alex
Well, you can get the required annotation properties from the IPXC_Annotation interface:
https://sdkhelp.pdf-xchange.com/vie ... Annotation
You can get all of the page's annotations by using
https://sdkhelp.pdf-xchange.com/vie ... e_GetAnnot
https://sdkhelp.pdf-xchange.com/vie ... nnotsCount
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 38
- Joined: Tue Jan 12, 2016 2:25 am
Re: How to extract comments without exporting file and UI
According to the document, IPXC_Document is the interface of object of PDF-XChange Editor SDK.
So I have to use PDF-XChange Editor SDK, not only Core API SDK, right?
So I have to use PDF-XChange Editor SDK, not only Core API SDK, right?
-
- User
- Posts: 38
- Joined: Tue Jan 12, 2016 2:25 am
Re: How to extract comments without exporting file and UI
I am following this post for my purpose.
https://forum.pdf-xchange.com/ ... ge#p101345
According document https://sdkhelp.pdf-xchange.com/view/PXV:IPXC_Pages
I can get correct Count property, but when I try to use pages.Item, will get build error.
Any suggestion?
https://forum.pdf-xchange.com/ ... ge#p101345
According document https://sdkhelp.pdf-xchange.com/view/PXV:IPXC_Pages
I can get correct Count property, but when I try to use pages.Item, will get build error.
Any suggestion?
-
- User
- Posts: 38
- Joined: Tue Jan 12, 2016 2:25 am
Re: How to extract comments without exporting file and UI
My code:
I can get the page count, but how to do next to get annotation of every page?
Code: Select all
PDFXCoreAPI.PXC_Inst g_Inst = new PDFXCoreAPI.PXC_Inst();
g_Inst.Init(mykey);
IPXC_Document pDoc =g_Inst.OpenDocumentFromFile(inputfile,null);
IPXC_Pages pages = pDoc.Pages;
var pageCount=pages.Count;
-
- User
- Posts: 38
- Joined: Tue Jan 12, 2016 2:25 am
Re: How to extract comments without exporting file and UI
Anyway, I got it, thanks
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: How to extract comments without exporting file and UI
Hello crimsonlogic,
Sorry for the late reply. Glad you found a solution. You can search the Editor SDK or the CoreAPI SDK forums for the keywords you need - right now they contain answers to many questions.
Cheers,
Alex.
Sorry for the late reply. Glad you found a solution. You can search the Editor SDK or the CoreAPI SDK forums for the keywords you need - right now they contain answers to many questions.
Cheers,
Alex.
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ