Re: XPDF Documentation

2025-03-21 Thread Bob Sneidar via use-livecode
I think the only approach now is to run the document through an OCR applica=
tion, so that the resulting text will simply be a part of the text layer. I=
t makes me wonder if there is a way to make an OCR external...

Bob S


> On Mar 21, 2025, at 8:05 AM, Bob Sneidar  wr=
ote:
>=20
> Thanks Paul, that is very helpful. You are correct of course, I cannot se=
lect the form data. Very unfortunate. I already have a request in to see if=
 XPDF can be made to do so. I seem to remember however that XPDF was done b=
y another developer and cannot be modified. I could be mistaken though. How=
 unfortunate, and short sighted though. The one thing someone would want fr=
om a form is not the form but the data it contained.=20
>=20
> Bob S
>=20
>=20
>> On Mar 21, 2025, at 6:56 AM, Paul Dupuis via use-livecode  wrote:
>>=20
>> To put XPDF in selection more, use
>>=20
>> XPDFViewer_ChooseMouseMode "Document1",pMode -- "browse", "selection", "=
image"
>>=20
>> To select a range of text on (or across) page(s), use
>>=20
>> XPDFViewer_Select "Document1",item 1 of tPDFPageRef,item 2 of tPDFPageRe=
f,item 3 of tPDFPageRef,item 4 of tPDFPageRef
>>=20
>> See the documentation for what the 4 items are above, but it's basically=
 startPageNum, startCharPositionNum, endPageNum, endCharPositionNum
>>=20
>> However, XPDF was not designed to get the values of form fields. Unless =
something was added by Monte in the intervening years since Researchware tu=
rned the XPDF external over to Livecode, I don't think there is a way to ge=
t form data.
>>=20
>> In any case, Monte at livecode is the definitive expert who could answer=
 this questions for the XPDF external and the PDF Widget (if they added for=
ms capability to that newer effort).
>>=20
>>=20


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XPDF Documentation

2025-03-21 Thread Bob Sneidar via use-livecode
VGhhdCBpcyBwcmVjaWNlbHkgd2hhdCBJIGhhdmUgYXNrZWQgdGhlIExDIGRldmVsb3BlcnMgZm9y
LiBIb3BlZnVsbHkgdGhleSB3aWxsIGNvbnNpZGVyIGl0IGFuZCBpdCB3b27igJl0IGJlIH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B0aGluayBlbmhhbmNlbWVudHMgKHZzIGJ1
ZyBmaXhlcykgdG8gdGhlIFhQREYgZXh0ZXJuYWwgb3IgdGhlIFBERiB3aWRnZXQgYnkgTGl2ZWNv
ZGUgaGFzIGJlZW4gcHJpbWFyaWx5IGRyaXZlbiBieSBwcm9mZXNzaW9uYWwgc2VydmljZSBlbmdh
Z2VtZW50cyB0aGF0IHBhaWQgZm9yIHRoZSBhZGRlZCBmZWF0dXJlcywgYnV0IEkgZG9uJ3QgcmVh
bGx5IGtub3cuDQoNCg0KDQo=
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XPDF Documentation

2025-03-21 Thread Paul Dupuis via use-livecode
XPDF was originally developed by Monte for Researchware, Inc. built on 
the open source Google PDFium library, to my specifications.


Later, Livecode acquired the XPDF external (and independently, Monte) 
:-) Actually, the order was Livecode acquired Monte and then, I 
presented Livecode with an offer for the XPDF external for a developer 
license extension since they had already hired the XPDF developer 
(Monte) and I didn't really want to try to find someone else.


Later still, Monte made the PDF Widget for Livecode.  The idea is that 
the Widget would have replaced the External, but I provided Livecode 
with a gap-analysis showing that the Widget lacked a number of features 
present in the External, which I have argued should be added to the 
Widget if they really want to replace the External.


I never included form support in what Researchware paid Monte to develop 
as it was not needed for our specific app (and money was and is still 
pretty tight in a tiny company).


In general, I think enhancements (vs bug fixes) to the XPDF external or 
the PDF widget by Livecode has been primarily driven by professional 
service engagements that paid for the added features, but I don't really 
know.



On 3/21/2025 11:06 AM, Bob Sneidar via use-livecode wrote:

Thanks Paul, that is very helpful. You are correct of course, I cannot sele=
ct the form data. Very unfortunate. I already have a request in to see if X=
PDF can be made to do so. I seem to remember however that XPDF was done by =
another developer and cannot be modified. I could be mistaken though. How u=
nfortunate, and short sighted though. The one thing someone would want from=
  a form is not the form but the data it contained.=20

Bob S



On Mar 21, 2025, at 6:56 AM, Paul Dupuis via use-livecode 
ists.runrev.com> wrote:

=20
To put XPDF in selection more, use
=20
XPDFViewer_ChooseMouseMode "Document1",pMode -- "browse", "selection", "i=

mage"

=20
To select a range of text on (or across) page(s), use
=20
XPDFViewer_Select "Document1",item 1 of tPDFPageRef,item 2 of tPDFPageRef=

,item 3 of tPDFPageRef,item 4 of tPDFPageRef

=20
See the documentation for what the 4 items are above, but it's basically =

startPageNum, startCharPositionNum, endPageNum, endCharPositionNum

=20
However, XPDF was not designed to get the values of form fields. Unless s=

omething was added by Monte in the intervening years since Researchware tur=
ned the XPDF external over to Livecode, I don't think there is a way to get=
  form data.

=20
In any case, Monte at livecode is the definitive expert who could answer =

this questions for the XPDF external and the PDF Widget (if they added form=
s capability to that newer effort).

=20
=20
On 3/20/2025 7:44 PM, Bob Sneidar via use-livecode wrote:

Hi all.=3D20
=20
I am able to load a fillable PDF form, and I see the actual form data, a=

ll =3D

well and good. There are functions that allow me to get the selection, b=

ut =3D

there is no way to select the text! I just get the hand icon for scrolli=

ng =3D

the page by dragging. Is there a way to switch to a selection tool?=3D20
=20
Bob S=3D
=20
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscrip=

tion preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode

=20
=20
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscript=

ion preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XPDF Documentation

2025-03-21 Thread Bob Sneidar via use-livecode
SGkgS2xhdXMuIEkgdGhpbmsgaXTigJlzIHRoZSBsaXN0IHNlcnZlciB0aGF0IGlzIGRvaW5nIGl0
LiBJdCBvbmx5IGhhcHBlbnMgd2hlbiBJIHBvc3QgdG8gdGhlIGxpc3QuIEkgd2lsbCBzZXQgbXkg
ZGVmYXVsdCBmb3JtYXQgdG8gcGxhaW4gdGV4dC4gDQoNCkJvYiBTDQoNCg==

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XPDF Documentation

2025-03-21 Thread Klaus major-k via use-livecode
Bob, please try to remove the spell from your email client! 8-)

> Am 21.03.2025 um 16:52 schrieb Bob Sneidar via use-livecode =
:
>=20
> =
VGhhdCBpcyBwcmVjaWNlbHkgd2hhdCBJIGhhdmUgYXNrZWQgdGhlIExDIGRldmVsb3BlcnMgZm=
9y
> =
LiBIb3BlZnVsbHkgdGhleSB3aWxsIGNvbnNpZGVyIGl0IGFuZCBpdCB3b27igJl0IGJlIHRvby=
Bl
> =
eHBlbnNpdmUuIElkZWFsbHkgdGhlIGdvYWwgaXMgdG8gYmUgYWJsZSB0byBjYXB0dXJlIHRleH=
Qg
> =
Ynkgc2VsZWN0aW5nIGFueSB0ZXh0IG9uIHRoZSBmb3JtLCBhbmQgdGhlbiDigJxyZW1lbWJlcm=
lu
> =
Z+KAnSB0aGUgem9uZSBvZiBjYXB0dXJlIHNvIHRoZSBwcm9jZXNzIGNhbiBiZSBhdXRvbWF0ZW=
Qg
> =
aW4gc3Vic2VxdWVudCBjYXB0dXJlcywgYnV0IHRoZSBsYXN0IHBhcnQgaXMgb3B0aW9uYWwuDQ=
oN
> =
CkkgdHJpZWQgc2ltcGx5IHJ1bm5pbmcgdGhlIGRvY3VtZW50IHRocm91Z2ggYSBQREYgY29udm=
Vy
> =
c2lvbiwgYnV0IHRoZSByZXN1bHRzIGFyZSBub3QgZ29vZC4gSW5zdGVhZCBvZiB0aGUgc2VsZW=
N0
> =
aW9uIG9mIHRleHQgYmVpbmcgc29tZXRoaW5nIGxpa2UgYSBib29rLCBsZWZ0IHRvIHJpZ2h0LC=
B0
> =
b3AgdG8gYm90dG9tLCBzZWxlY3RpbmcgMyB3b3JkcyBlbmRzIHVwIHNlbGVjdGluZyBoYWxmIH=
Ro
> =
ZSBwYWdlISBBbmQgdGhlIGZvcm0gZGF0YSByZW1haW5zIGludGFjdCB3aGljaCBkb2VzbuKAmX=
Qg
> =
aGVscCBtZS4NCg0KQW55d2F5LCBJIGhvcGUgdG8gZmluZCBhIHdheSB0byBkbyB0aGlzLCBiZW=
Nh
> =
dXNlIGl0IHdpbGwgb3BlbiB0aGUgZG9vciB0byBhIGRvY3VtZW50IHdvcmtmbG93IHN5c3RlbS=
BJ
> =
IHdhbnQgdG8gZGV2ZWxvcC4NCg0KQm9iIFMNCg0KDQpPbiBNYXIgMjEsIDIwMjUsIGF0IDg6Mz=
kg
> =
QU0sIFBhdWwgRHVwdWlzIHZpYSB1c2UtbGl2ZWNvZGUgPHVzZS1saXZlY29kZUBsaXN0cy5ydW=
5y
> =
ZXYuY29tPiB3cm90ZToNCg0KSW4gZ2VuZXJhbCwgSSB0aGluayBlbmhhbmNlbWVudHMgKHZzIG=
J1
> =
ZyBmaXhlcykgdG8gdGhlIFhQREYgZXh0ZXJuYWwgb3IgdGhlIFBERiB3aWRnZXQgYnkgTGl2ZW=
Nv
> =
ZGUgaGFzIGJlZW4gcHJpbWFyaWx5IGRyaXZlbiBieSBwcm9mZXNzaW9uYWwgc2VydmljZSBlbm=
dh
> =
Z2VtZW50cyB0aGF0IHBhaWQgZm9yIHRoZSBhZGRlZCBmZWF0dXJlcywgYnV0IEkgZG9uJ3Qgcm=
Vh
> bGx5IGtub3cuDQoNCg0KDQo=3D

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XPDF Documentation

2025-03-21 Thread Bob Sneidar via use-livecode
Thanks Paul, that is very helpful. You are correct of course, I cannot sele=
ct the form data. Very unfortunate. I already have a request in to see if X=
PDF can be made to do so. I seem to remember however that XPDF was done by =
another developer and cannot be modified. I could be mistaken though. How u=
nfortunate, and short sighted though. The one thing someone would want from=
 a form is not the form but the data it contained.=20

Bob S


> On Mar 21, 2025, at 6:56 AM, Paul Dupuis via use-livecode  wrote:
>=20
> To put XPDF in selection more, use
>=20
> XPDFViewer_ChooseMouseMode "Document1",pMode -- "browse", "selection", "i=
mage"
>=20
> To select a range of text on (or across) page(s), use
>=20
> XPDFViewer_Select "Document1",item 1 of tPDFPageRef,item 2 of tPDFPageRef=
,item 3 of tPDFPageRef,item 4 of tPDFPageRef
>=20
> See the documentation for what the 4 items are above, but it's basically =
startPageNum, startCharPositionNum, endPageNum, endCharPositionNum
>=20
> However, XPDF was not designed to get the values of form fields. Unless s=
omething was added by Monte in the intervening years since Researchware tur=
ned the XPDF external over to Livecode, I don't think there is a way to get=
 form data.
>=20
> In any case, Monte at livecode is the definitive expert who could answer =
this questions for the XPDF external and the PDF Widget (if they added form=
s capability to that newer effort).
>=20
>=20
> On 3/20/2025 7:44 PM, Bob Sneidar via use-livecode wrote:
>> Hi all.=3D20
>>=20
>> I am able to load a fillable PDF form, and I see the actual form data, a=
ll =3D
>> well and good. There are functions that allow me to get the selection, b=
ut =3D
>> there is no way to select the text! I just get the hand icon for scrolli=
ng =3D
>> the page by dragging. Is there a way to switch to a selection tool?=3D20
>>=20
>> Bob S=3D
>>=20
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscrip=
tion preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>=20
>=20
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscript=
ion preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XPDF Documentation

2025-03-21 Thread Klaus major-k via use-livecode


> Am 21.03.2025 um 16:52 schrieb Bob Sneidar via use-livecode =
:
>=20
> =
VGhhdCBpcyBwcmVjaWNlbHkgd2hhdCBJIGhhdmUgYXNrZWQgdGhlIExDIGRldmVsb3BlcnMgZm=
9y
> =
LiBIb3BlZnVsbHkgdGhleSB3aWxsIGNvbnNpZGVyIGl0IGFuZCBpdCB3b27igJl0IGJlIHRvby=
Bl
> =
eHBlbnNpdmUuIElkZWFsbHkgdGhlIGdvYWwgaXMgdG8gYmUgYWJsZSB0byBjYXB0dXJlIHRleH=
Qg
> =
Ynkgc2VsZWN0aW5nIGFueSB0ZXh0IG9uIHRoZSBmb3JtLCBhbmQgdGhlbiDigJxyZW1lbWJlcm=
lu
> =
Z+KAnSB0aGUgem9uZSBvZiBjYXB0dXJlIHNvIHRoZSBwcm9jZXNzIGNhbiBiZSBhdXRvbWF0ZW=
Qg
> =
aW4gc3Vic2VxdWVudCBjYXB0dXJlcywgYnV0IHRoZSBsYXN0IHBhcnQgaXMgb3B0aW9uYWwuDQ=
oN
> =
CkkgdHJpZWQgc2ltcGx5IHJ1bm5pbmcgdGhlIGRvY3VtZW50IHRocm91Z2ggYSBQREYgY29udm=
Vy
> =
c2lvbiwgYnV0IHRoZSByZXN1bHRzIGFyZSBub3QgZ29vZC4gSW5zdGVhZCBvZiB0aGUgc2VsZW=
N0
> =
aW9uIG9mIHRleHQgYmVpbmcgc29tZXRoaW5nIGxpa2UgYSBib29rLCBsZWZ0IHRvIHJpZ2h0LC=
B0
> =
b3AgdG8gYm90dG9tLCBzZWxlY3RpbmcgMyB3b3JkcyBlbmRzIHVwIHNlbGVjdGluZyBoYWxmIH=
Ro
> =
ZSBwYWdlISBBbmQgdGhlIGZvcm0gZGF0YSByZW1haW5zIGludGFjdCB3aGljaCBkb2VzbuKAmX=
Qg
> =
aGVscCBtZS4NCg0KQW55d2F5LCBJIGhvcGUgdG8gZmluZCBhIHdheSB0byBkbyB0aGlzLCBiZW=
Nh
> =
dXNlIGl0IHdpbGwgb3BlbiB0aGUgZG9vciB0byBhIGRvY3VtZW50IHdvcmtmbG93IHN5c3RlbS=
BJ
> =
IHdhbnQgdG8gZGV2ZWxvcC4NCg0KQm9iIFMNCg0KDQpPbiBNYXIgMjEsIDIwMjUsIGF0IDg6Mz=
kg
> =
QU0sIFBhdWwgRHVwdWlzIHZpYSB1c2UtbGl2ZWNvZGUgPHVzZS1saXZlY29kZUBsaXN0cy5ydW=
5y
> =
ZXYuY29tPiB3cm90ZToNCg0KSW4gZ2VuZXJhbCwgSSB0aGluayBlbmhhbmNlbWVudHMgKHZzIG=
J1
> =
ZyBmaXhlcykgdG8gdGhlIFhQREYgZXh0ZXJuYWwgb3IgdGhlIFBERiB3aWRnZXQgYnkgTGl2ZW=
Nv
> =
ZGUgaGFzIGJlZW4gcHJpbWFyaWx5IGRyaXZlbiBieSBwcm9mZXNzaW9uYWwgc2VydmljZSBlbm=
dh
> =
Z2VtZW50cyB0aGF0IHBhaWQgZm9yIHRoZSBhZGRlZCBmZWF0dXJlcywgYnV0IEkgZG9uJ3Qgcm=
Vh
> bGx5IGtub3cuDQoNCg0KDQo=3D

Translation:
-
That is precicely what I have asked the LC developers for. Hopefully =
they will consider it and it won't be too expensive. Ideally the goal is =
to be able to capture text by selecting any text on the form, and then =
"remembering" the zone of capture so the process can be automated in =
subsequent captures, but the last part is optional.

I tried simply running the document through a PDF conversion, but the =
results are not good. Instead of the selection of text being something =
like a book, left to right, top to bottom, selecting 3 words ends up =
selecting half the page! And the form data remains intact which doesn't =
help me.

Anyway, I hope to find a way to do this, because it will open the door =
to a document workflow system I want to develop.

Bob S


On Mar 21, 2025, at 8:39 AM, Paul Dupuis via use-livecode =
 wrote:

In general, I think enhancements (vs bug fixes) to the XPDF external or =
the PDF widget by Livecode has been primarily driven by professional =
service engagements that paid for the added features, but I don't really =
know.
---
:-)

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode