Export Summarize Comments via code

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Export Summarize Comments via code

Post by reinierkops »

Hi,

I need a solution to export all comments in a PDF file, to a txt file, or best solution is in memory, via code.

And if we only can export it to a file, we want to give the filelocation in code, so the enduser does not see anything.

When I open a PDF, the export must run.
We need this, because I build a summarize screen in our application, with "hyperlinks" When a user clicks a link, the PDF will be opened on the page were the comment is.

Hopefully you can help me.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: Export Summarize Comments via code

Post by Ivan - Tracker Software »

No, there are no way for now to execute Summarize without UI.
This feature will be added (together with a lot of another commands) into build 41.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Export Summarize Comments via code

Post by reinierkops »

Can you tell me how I can do this in current release?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: Export Summarize Comments via code

Post by Ivan - Tracker Software »

As I told, there are no way to do this into current release.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Export Summarize Comments via code

Post by reinierkops »

Is this already possible in the current release?
We want this feature as soon as possible. Or can you give me an indication of time?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Export Summarize Comments via code

Post by Vasyl - PDF-XChange »

This feature will be added in the next build (41.4). Please wait some days.
We will to add new section into AX help, like as:
Reference\Named Items\Named Objects\Operations\SummarizeAnnots
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Export Summarize Comments via code

Post by reinierkops »

Can you please send me some example code snippets?

I want to summerize a PDF, without user-interaction. So I want to privide the filelocatie, and export it as rtf (of doc if possible)
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Export Summarize Comments via code

Post by Corwin - Tracker Sup »

Here is small sample for C#.
You do not have the required permissions to view the files attached to this post.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Export Summarize Comments via code

Post by reinierkops »

Thanks for the example.
But when I use:
mReferencedViewer.SetProperty("Operations.SummarizeAnnots.Output.ShowTypeName", 0);
mReferencedViewer.SetProperty("Operations.SummarizeAnnots.Output.ShowSubject", 0);
mReferencedViewer.SetProperty("Operations.SummarizeAnnots.Output.ShowAuthor", 0);
mReferencedViewer.SetProperty("Operations.SummarizeAnnots.Output.ShowDate", 0);

I still see this in the summary.

And how can I translate the word: "Page" into dutch, and set the Title of the document?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Export Summarize Comments via code

Post by Corwin - Tracker Sup »

I still see this in the summary.
This problem will be fixed in technical build.
And how can I translate the word: "Page" into dutch, and set the Title of the document?
You cannot do this with Viewer ActiveX.. But you can export comments in txt file (or other simple file format) and then edit this file in the way you like.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Export Summarize Comments via code

Post by reinierkops »

Is it possible for you, to summarize the Comments to XML, that's better then a textfile.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Export Summarize Comments via code

Post by Vasyl - PDF-XChange »

You can use Java Script e.g :
RunJavaScript("this.exportAsXFDF(1, 0, null, 'c:\exp.xfdf', 1)",..)
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.