Hi there,
what is the correct way to use the commands CopyAsFormattedText and CopyAsRichContent with the ActiveX control of PDF XChange Viewer SDK?
I'd like to copy the current selection in the PDF with all formattings (e.g. as RTF or HTML), not just the plain text.
I tried it like this (C#):
...
object tDataOut = null;
AxCoPDFXCview.DoVerb( null, "ExecuteCommand", "CopyAsFormattedText", out tDataOut, 0 );
var Comment = Clipboard.GetText();
...
I get an exception: [System.Runtime.InteropServices.COMException]
Exception from HRESULT: 0x8213271C
at PDFXCviewAxLib.IPDFXCview2.DoVerb(String ObjectName, String OperationName, Object DataIn, Object& DataOut, Int32 Flags)
at AxPDFXCviewAxLib.AxCoPDFXCview.DoVerb(String objectName, String operationName, Object dataIn, Object& dataOut, Int32 flags)
Please can you give me some informations about how to do that the correct way?
Thanks and regards
Felix
Usage of the commands CopyAsFormattedText and CopyAsRichCont
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
-
- User
- Posts: 8
- Joined: Mon Feb 13, 2012 5:23 pm
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Usage of the commands CopyAsFormattedText and CopyAsRich
Hi Felix
The features CopyAsFormattedText/CopyAsRichContent - are not implemented and disabled in current version.
We iwill mplement it in our new version V3 SDK in the new year.
Best
Regards.
The features CopyAsFormattedText/CopyAsRichContent - are not implemented and disabled in current version.
We iwill mplement it in our new version V3 SDK in the new year.
Best
Regards.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 7
- Joined: Fri Feb 27, 2015 12:57 pm
Re: Usage of the commands CopyAsFormattedText and CopyAsRich
Hello,
any news on this?
Is there a different way to get the text as RTF?
Best Regards
Wolfgang
any news on this?
Is there a different way to get the text as RTF?
Best Regards
Wolfgang
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Usage of the commands CopyAsFormattedText and CopyAsRich
Hi,
The Editor SDK is due for release the 3rd week of May.
The Editor SDK is due for release the 3rd week of May.
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
-
- User
- Posts: 7
- Joined: Fri Feb 27, 2015 12:57 pm
Re: Usage of the commands CopyAsFormattedText and CopyAsRich
Hello,
that's good news.
A few more questions... I was asked if it's possible to extract RTF text including images.
Will that be possible?
If not... what about the following idea:
- extract pages where the end-user selects an area (which can include text and images)
- crop pages if need be
- combine those extracted pages into a new (temp) PDF
Does that sound feasible?
And some questions regarding the Editor SDK..
Will the Editor SDK replace the ActiveX Viewer SDK?
Are "old" ActiveX Viewer projects upward compatible with the Editor SDK?
Will an Editor SDK be included in the Tools SDK, with limited CDLP, just like the ActiveX Viewer SDK?
What about testing beta versions?
Many Thanks & Best Regards
Wolfgang
that's good news.
A few more questions... I was asked if it's possible to extract RTF text including images.
Will that be possible?
If not... what about the following idea:
- extract pages where the end-user selects an area (which can include text and images)
- crop pages if need be
- combine those extracted pages into a new (temp) PDF
Does that sound feasible?
And some questions regarding the Editor SDK..
Will the Editor SDK replace the ActiveX Viewer SDK?
Are "old" ActiveX Viewer projects upward compatible with the Editor SDK?
Will an Editor SDK be included in the Tools SDK, with limited CDLP, just like the ActiveX Viewer SDK?
What about testing beta versions?
Many Thanks & Best Regards
Wolfgang
-
- Site Admin
- Posts: 17960
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: Usage of the commands CopyAsFormattedText and CopyAsRich
Hello Wolfgang Weh,
The documentation is still being worked on, but from what I have access to - yes it seems like it will be possible for you to copy text and get information for all of it's formatting via code.
The Viewer AX SDK will remain and the Editor one will be available separately.
The two SDKs are quite different so upward compatibility is unlikely.
The Editor SDK will not be included in any other SDK package.
The full SDK will be available in about a month. There will be no betas in the mean time, as without the documentation you will not be able to test it fully.
Regards,
Stefan
The documentation is still being worked on, but from what I have access to - yes it seems like it will be possible for you to copy text and get information for all of it's formatting via code.
The Viewer AX SDK will remain and the Editor one will be available separately.
The two SDKs are quite different so upward compatibility is unlikely.
The Editor SDK will not be included in any other SDK package.
The full SDK will be available in about a month. There will be no betas in the mean time, as without the documentation you will not be able to test it fully.
Regards,
Stefan