As far as I can tell this setting only affects copying text from the viewer - not the programmatic extraction of text or setting selection.
See https://www.youtube.com/watch?v=UIgeUEiEimg
Search found 27 matches
- Thu Mar 26, 2020 9:18 am
- Forum: PDF-XChange Editor SDK
- Topic: How do I select text while accounting for ligatures?
- Replies: 2
- Views: 752
- Wed Mar 25, 2020 4:38 pm
- Forum: PDF-XChange Editor SDK
- Topic: How do I select text while accounting for ligatures?
- Replies: 2
- Views: 752
How do I select text while accounting for ligatures?
ae.pdf The use case: Extract text using IPXC_Page.GetText(null).GetChars(nFirstCharIndex, nCharsCount) Do something with the extracted text (in this case parse the text and determine a word to highlight). Highlight the word using the following code: IPXV_TextSelection textSelection = (IPXV_TextSele...
- Tue Jan 21, 2020 11:37 am
- Forum: PDF-XChange Editor SDK
- Topic: How to improve ExtractPages/ReplacePages speed`? SOLVED
- Replies: 7
- Views: 2136
- Tue Jan 21, 2020 10:33 am
- Forum: PDF-XChange Editor SDK
- Topic: How to improve ExtractPages/ReplacePages speed`? SOLVED
- Replies: 7
- Views: 2136
Re: How to improve ExtractPages/ReplacePages speed`? SOLVED
Alright, I assume the corresponding SDK operation to optimize a document is this one: https://sdkhelp.pdf-xchange.com/vi ... t_optimize, yes?
- Mon Jan 20, 2020 9:03 am
- Forum: PDF-XChange Editor SDK
- Topic: How to improve ExtractPages/ReplacePages speed`? SOLVED
- Replies: 7
- Views: 2136
Re: How to improve ExtractPages/ReplacePages speed`? SOLVED
Are you using Debug or Release version of the FullDemo application (the processing time can drastically differ)? Can that behavior be recreated in the End-User Editor? Release version and yes: https://youtu.be/phavV92jZVc It may be worth pointing out that there is a large amount of layers in the PD...
- Thu Jan 16, 2020 3:16 pm
- Forum: PDF-XChange Editor SDK
- Topic: How to improve ExtractPages/ReplacePages speed`? SOLVED
- Replies: 7
- Views: 2136
How to improve ExtractPages/ReplacePages speed`? SOLVED
A customer contacted our support claiming that the our PDF viewer (using the Editor SDK) is freezing unexpectedly - after some debugging it turns out it's just working on extracting/replacing pages and it takes a long time. I was able to reproduce this behaviour in the sample full demo (using the la...
- Thu Nov 29, 2018 8:58 am
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
Cool, looking forward to that
- Wed Nov 28, 2018 10:19 am
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
Alright, sounds good.
When can we expect the changes to be released in a production build?
When can we expect the changes to be released in a production build?
- Tue Nov 27, 2018 4:05 pm
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
1) Ah, I can now call GetCaretPos() on the IPXV_TextSelection I obtain in my GetCaretPosition() code sample - great! 2) Ok, so to confirm: The line/character indices and counts that GetCaretPos()/SetCaretPos() work with are identical to the ones that can be obtained in: var pageText = doc // IPXV_Do...
- Mon Nov 26, 2018 12:39 pm
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
Just tested this - a few questions: Is it correctly understood that it is not possible to get caret position ("all values will be -1") unless caret position has been set programmatically first? If so, it's sort of handicapped in that I would like to be able to get the caret position at an ...
- Wed Nov 21, 2018 9:47 am
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
Sounds good, I'll keep an eye out.
Will there be a GetCaretPos method as well?
Will there be a GetCaretPos method as well?
- Mon Nov 19, 2018 3:59 pm
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
Any update on this?
Would be nice to know, even if it's just not possible with the current SDK.
Would be nice to know, even if it's just not possible with the current SDK.
- Mon Nov 05, 2018 2:30 pm
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
Unfortunately, that does not work with zero-width selection (which is how many application often treat a caret). That's what I meant when I said IPXV_TextSelection / IPXV_PageTextSelection are not applicable. Here's my sample code if you would like to reproduce: public static void SelectText(IPXV_Do...
- Fri Nov 02, 2018 2:48 pm
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
Re: How to get/set caret position? SOLVED
Hello Stefan,
Yes, that is the caret I am referring to - but I was hoping for a programmatic approach
Yes, that is the caret I am referring to - but I was hoping for a programmatic approach
- Thu Nov 01, 2018 3:22 pm
- Forum: PDF-XChange Editor SDK
- Topic: How to get/set caret position? SOLVED
- Replies: 18
- Views: 3550
How to get/set caret position? SOLVED
When the text selection tool is enabled it is possible to place a caret in the document view. Is it possible to get/set the position of this caret? Just to avoid potential confusion, I'm not talking about text selection here - which means IPXV_TextSelection / IPXV_PageTextSelection aren't applicable...
- Mon Oct 30, 2017 8:58 am
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
What you can do is just save the document and try opening it - if your changes will be there - then we'll can talk about the events firing. If there won't be any changes that you have made - then you have not modified the document as you needed to. Currently we're using iTextSharp to add optional c...
- Tue Oct 24, 2017 11:36 am
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
I see my mistake now. I had previously tried to use MC_GetDict() , but on the following PXC_CIType.CIT_Text rather than the PXC_CIType.CIT_BeginContainer . The example you provided is exactly what I was looking for. I've written a method to hide OC by name using your approach: public void HideOCByNa...
- Thu Oct 19, 2017 4:19 pm
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
Thank you for the example! I will check test it when the 323 build is out. I've asked "How can I extract the ID from the IPXC_ContentItem", which was ignored because my provided (first) PDF sample doesn't have any OCProperties (which is completely unrelated to that question). If you mean t...
- Thu Oct 19, 2017 9:42 am
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
In that case, my previous request still stands then: I would just like to know how to properly use the method? The documentation at https://sdkhelp.pdf-xchange.com/view/PXV:IPXC_OCContext_SetOCState isn't particularly helpful, nor do I see any uses of it in https://github.com/tracker-software/PDFEdi...
- Wed Oct 18, 2017 10:39 am
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
Should I interpret this as "SetOCState() is bugged" or should your answer be read as a response to my original question?Sasha - Tracker Dev Team wrote:Well, I've been investigating throughout the code - right now the only way to handle this correctly is by using the JS.
- Thu Oct 12, 2017 12:37 pm
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
But it doesn't seem to do anything even with the second sample PDF I provided (which has OCProperties and layers that can also be viewed and shown/hidden in the PDF-XChange Editor application). In the case of the second sample PDF, how should it be used to show/hide those OCGs? Does it even affect a...
- Thu Oct 12, 2017 12:20 pm
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
Then why is the method even there? I assume it does something, yes? Can you provide a use case for it?
- Thu Oct 12, 2017 11:46 am
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
Ok. 1. Can you provide an example of how updating something in the Structures Layer can be reflected in the Editor Layer so the changes are visible to the user? I've attached a sample PDF with layers and OCProperties defined in the Root dictionary and tried to run my HideOC() method (now with lock/u...
- Wed Oct 11, 2017 2:32 pm
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
Hello Woodgnome, Can you give us a sample document that we can test on? Cheers, Alex See attachment. The optional content in question: [4 0 obj]: <</Length 84>> stream Q q /OC /Xi0 BDC 0 0 0 rg BT 1 0 0 1 139.55 806.62 Tm /Xi1 12 Tf (Test)Tj ET EMC Q endstream Referenced in [22 0 obj] (formatted fo...
- Wed Oct 11, 2017 9:42 am
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
I updated the HideOC() method from my original post with code to trigger the e.OCG.visibilityChanged event: public void HideOC(IPXV_Document doc) { // Get pages from structure layer IPXS_PDFVariant pages = doc.CoreDoc.CosDocument.Root.Dict_Get("Pages").Dict_Get("Kids"); // Loop t...
- Tue Oct 10, 2017 2:46 pm
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
Re: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
So, to update the rendering of the document I figured out I can close and re-open the core document: IPXC_Document doc = AxPXV_Control.Doc.CodeDoc; AxPXV_Control.Doc.Close(); AxPXV_Control.OpenDocFrom(doc); This seems to work if I am modifying IPXC_ContentItem s, for example: public void HideAllText...
- Tue Oct 10, 2017 12:18 pm
- Forum: PDF-XChange Editor SDK
- Topic: IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
- Replies: 23
- Views: 3801
IPXC_OCContext.SetOCState() does not seem to do anything SOLVED
Using IPXC_OCContext.SetOCState() to hide Optional Content as follows: public void HideOC(IPXV_Document doc) { // Get pages from structure layer IPXS_PDFVariant pages = doc.CoreDoc.CosDocument.Root.Dict_Get("Pages").Dict_Get("Kids"); // Loop through pages for (uint i = 0; i < pag...