Search found 17 matches
- Mon Nov 12, 2012 1:38 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Finding/highlighting text objects in a given rectangle
- Replies: 9
- Views: 5019
Re: Finding/highlighting text objects in a given rectangle
On additional research, it appears it's possible to build a function (based on the Adobe SDK docs) that accepts, as arguments, an Annotation and a page number, and returns an array of all words on that page that intersect the quad space of the annot in question. Such a function looks like this: func...
- Mon Nov 12, 2012 1:47 am
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Finding/highlighting text objects in a given rectangle
- Replies: 9
- Views: 5019
Re: Finding/highlighting text objects in a given rectangle
This post is directed at gschell... Your task/challenge here is in some ways similar to my own, and I thought I might post in the hope you may be able to offer some insight. My situation is that I wish to extract text which is already annotated (highlighted or underlined). I have successfully iterat...
- Mon Nov 05, 2012 1:14 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Having trouble calling PXCp_StringGetB from VB6. Any Help?
- Replies: 8
- Views: 4885
Re: Having trouble calling PXCp_StringGetB from VB6. Any Hel
I've come up against a wall, again, on the absence of VarPtr function in VB.net While I have researched and found a number of ways that are supposed to emulate this function in VB.net (primarily using GCHandle), these approaches all fail (most often with memory access violation errors). I've stumble...
- Sun Nov 04, 2012 2:57 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Having trouble calling PXCp_StringGetB from VB6. Any Help?
- Replies: 8
- Views: 4885
Re: Having trouble calling PXCp_StringGetB from VB6. Any Hel
Ok, so I just went back to try another go in VB6. And I got it! The function should be properly declared as: Public Declare Function PXCp_StringGetB Lib "xcpro40" (ByVal hString As Long, Optional ByVal buf As Long, Optional ByRef pBufLen As Long) As Long Then the call, where buf is a Byte ...
- Sun Nov 04, 2012 2:19 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Having trouble calling PXCp_StringGetB from VB6. Any Help?
- Replies: 8
- Views: 4885
Re: Having trouble calling PXCp_StringGetB from VB6. Any Hel
I have spent much of the past couple of days experimenting in VB.NET in an attempt to identify the proper declaration for PXCp_StringGetB (in XCPR4_Declares.vb) and the proper way to pass the buffer to the SDK. I had also initially attempted to get this function working in the VB6 version, but also ...
- Fri Nov 02, 2012 11:11 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Having trouble calling PXCp_StringGetB from VB6. Any Help?
- Replies: 8
- Views: 4885
Re: Having trouble calling PXCp_StringGetB from VB6. Any Hel
Thanks for the response. I note that the declaration you have provided here appears to differ from that provided by Tracker Software in the sample code provided, specifically the XCPro40_Declares.bas which is installed by the Tracker installation process. In the Sample code, Tracker declares the PXC...
- Fri Nov 02, 2012 8:22 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Having trouble calling PXCp_StringGetB from VB6. Any Help?
- Replies: 8
- Views: 4885
Having trouble calling PXCp_StringGetB from VB6. Any Help?
I am having trouble figuring out the proper calling convention to call PXCp_StringGetB from VB6. I'm familiarizing myself with lower level functions (and am aware of Tracker's non-support policy re: same). I have successfully executed the following functions in order: PXCp_Init PXCpVB_ReadDocumentW ...
- Tue Aug 28, 2012 2:31 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Unclear Documentation - PXCp_StringGetB
- Replies: 6
- Views: 4201
Unclear Documentation - PXCp_StringGetB
From documentation: HRESULT PXCp_StringGetB( HPDFSTRING hString, BYTE* buf, DWORD* pbufLen ); hString [in] hString specifies the PDF string handle. buf [in] buf is a pointer to a buffer that receives string content presented as binary data. This parameter may be NULL. pbufLen [in/out] pbufLen is a p...
- Tue Aug 28, 2012 11:18 am
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: PXCp_llGetObjectByIndex returns "Invalid Index"
- Replies: 9
- Views: 4709
Re: PXCp_llGetObjectByIndex returns "Invalid Index"
VB6: Function PXCp_llGetObjectByIndex Lib "xcpro40" (ByVal Doc As Long, ByVal index As Long, ByRef pObject As Long) As Long Just ran my sample again, first test for the day. :shock: And it worked! I'm very sorry... I have no idea how it did not work yesterday and now it does. :? My evaluat...
- Tue Aug 28, 2012 11:17 am
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: How to enumerate/identify objects? PXCp_llGetObjectByIndex?
- Replies: 3
- Views: 2939
- Mon Aug 27, 2012 8:50 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: PXCp_llGetObjectByIndex returns "Invalid Index"
- Replies: 9
- Views: 4709
Re: PXCp_llGetObjectByIndex returns "Invalid Index"
The pdf file is valid. It opens properly and displays completely properly in Adobe Reader. Yes, res = PXCpVB_ReadDocumentW(pdf_new, "e:\!test.pdf", 0) executes properly. (I use "!" to indicate the file is for testing, and so it places high in file directory listings... just a mat...
- Mon Aug 27, 2012 8:35 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: PXCp_llGetObjectByIndex returns "Invalid Index"
- Replies: 9
- Views: 4709
Re: PXCp_llGetObjectByIndex returns "Invalid Index"
I made the change, replacing 1 with 0. No change in behavior. Same results at every function/step. As to why I was analyzing 1 instead of 0... just an arbitrary selection. Based on documentation (your function PXCp_ET_AnalyzePageContent appears to deal primarily with text elements), I felt the funct...
- Mon Aug 27, 2012 8:13 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: PXCp_llGetObjectByIndex returns "Invalid Index"
- Replies: 9
- Views: 4709
Re: PXCp_llGetObjectByIndex returns "Invalid Index"
I've only begun experimenting with the SDK a few days ago, working with the sample VB_XCPro40Demo. I've simply added a small sub to do my tinkering... one function at a time. Private Sub Command1_Click() Dim res As Long Dim pdf_new As Long Dim Ocnt As Long res = PXCp_Init(pdf_new, g_initstr, g_initD...
- Mon Aug 27, 2012 7:42 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: PXCp_llGetObjectByIndex returns "Invalid Index"
- Replies: 9
- Views: 4709
PXCp_llGetObjectByIndex returns "Invalid Index"
I execute the following, in order: PXCpVB_ReadDocumentW (returns "0") PXCp_ET_Prepare (returns "0") PXCp_ET_AnalyzePageContent (returns "1108289444") PXCp_GetPagesCount (returns "4", which is correct) PXCp_llGetObjectsCount (returns "64", which seems...
- Sun Aug 26, 2012 1:51 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: How to enumerate/identify objects? PXCp_llGetObjectByIndex?
- Replies: 3
- Views: 2939
How to enumerate/identify objects? PXCp_llGetObjectByIndex?
I recently evaluated (and rejected - for other reasons) an SDK that permitted for very easy enumeration and identification (determination of type) of objects on a PDF page. That SDK allows the developer to determine, for each object on the page, the type of object (text, path, image, etc), its coord...
- Thu Aug 23, 2012 11:01 am
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Need help with developer product selection
- Replies: 3
- Views: 2925
Re: Need help with developer product selection
Thank you for your response. I have downloaded the suggested product eval packages and begun reviewing help files and sample source code.
- Wed Aug 22, 2012 4:29 pm
- Forum: PDF-Tools SDK (all our PDF DLL Libraries)
- Topic: Need help with developer product selection
- Replies: 3
- Views: 2925
Need help with developer product selection
I just terminated evaluation of a competitor's suite of developer products having found: 1) It appeared I required functionality not provided by the SDK and 2) lack of timely support response. So it's time now to take a look at the Tracker line. I would like assistance (preferably directly from Trac...