Re: What format is an FDF file?

2018-10-18 Thread Mark via use-livecode
I believe it’s proprietary...

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/fdf_data_exchange.pdf

They also offer some api’s...

https://www.adobe.com/devnet/acrobat/fdftoolkit.html

Mark
On Oct 18, 2018, 4:10 PM -0700, Bob Sneidar via use-livecode 
, wrote:
> Hi all.
>
> Just curious, I've been calling an FDF file produced by exporting fillable 
> PDF form data, an XML file. Clearly it is not, I see now. The beginning of 
> one looks soomething like this, and I'm wondering if this is a standard file 
> format, or if it is something proprietary that Adobe came up with:
>
> %FDF-1.2
> %âãÏÓ
> 1 0 obj
> < Form.pdf)/Fields[<>< Feeder)>>< Stand)>><><>< Finisher)>><>< Filter)>><><><><><>]/T(accessorydescrip)>><><
> Bob S
> ___
> 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

What format is an FDF file?

2018-10-18 Thread Bob Sneidar via use-livecode
Hi all. 

Just curious, I've been calling an FDF file produced by exporting fillable PDF 
form data, an XML file. Clearly it is not, I see now. The beginning of one 
looks soomething like this, and I'm wondering if this is a standard file 
format, or if it is something proprietary that Adobe came up with:

%FDF-1.2
%âãÏÓ
1 0 obj
<><><><><><><><><><><><><>]/T(accessorydescrip)>><>

RE: sending a JSON string

2018-10-18 Thread Douglas Ruisaard via use-livecode
let me start by apologizing for my screw up... after looking even further into 
many more forum responses, I found that there is YET ANOTHER key used for a 
DELETE ... once I put that in Andre's code... guess what?  it works 
perfectly!!!

So pat yourself on the back, Andre! and thanks ever so much!  Now onto the next 
challenge... "bulk" uploading a whole slew of data point at once.

Cheers
Doug

Douglas Ruisaard
Trilogy Software
(250) 573-3935


> 
> Message: 4
> Date: Wed, 17 Oct 2018 09:14:38 -0700
> From: "Douglas Ruisaard" 
> To: 
> Subject: Re: sending a JSON string
> Message-ID: <125f01d46634$8249bc70$86dd3550$@net>
> Content-Type: text/plain; charset="us-ascii"
> 
> Thanks very much, Andre!  I appreciate the assistance.  I am sure the two 
> "keys" are correct as I use
> them in another portion of the application (an ESP8266 module which sends 
> data to ThingSpeak).  A
> subsequent direct message from you mentioned "Charles Proxy" as an inspector 
> for HTML messaging.
> THAT's a huge hint and I'll be installing it to see what exactly LC is 
> sending.
> 
> The ThingSpeak community is very active and I'll submit a request for 
> assistance to it.  I thought I'd
> start with this forum since it is very responsive and knowledgeable... Also 
> my lack of good working
> understanding about LC's HTML and overall web features and functions left me 
> thinking I was doing
> something wrong in LC.  With Andre's attempt generating a similar response to 
> what I was getting, it
> helps vindicate my uncertainty about LC's ability to generate an appropriate 
> message to ThingSpeak.
> 
> if I find a solution, I'll certainly let this board know.
> 
> In the meantime, if ANYONE has any other suggestions, I'd be extremely 
> grateful!
> 
> Cheers
> Doug
> 
> Douglas Ruisaard
> Trilogy Software
> (250) 573-3935
> 
> >
> > Message: 3
> > Date: Wed, 17 Oct 2018 00:10:05 +0100
> > From: Andre Alves Garzia 
> > To: How to use LiveCode 
> > Cc: Douglas Ruisaard 
> > Subject: Re: sending a JSON string
> > Message-ID: <41683bda-81ae-ac2e-1542-7d98f19ec...@andregarzia.com>
> > Content-Type: text/plain; charset=utf-8; format=flowed
> >
> > Douglas,
> >
> > I am pasting some code I've built here that should do what you want
> > but when I try it, it returns a
> > 401 error which is an authentication error.
> > On that manual page you linked there is a notice about API keys and
> > Channel keys, so maybe the key on this email is not the correct one.
> > This is the code (and yes, it is dead ugly):
> >
> > *on*mouseup
> >
> > *local*tHeaders, tResult
> >
> > *put*emptyintofld"output"
> >
> > *put*"Content-Type: application/x-www-form-urlencoded"intotHeaders
> >
> > *put*libURLFormData("api_key", "EQKTUQQKVH83D1RE") intotFormData
> >
> > *put*tsNetCustomUpload("1",
> > "https://api.thingspeak.com/channels/564256/feeds.json;, "DELETE",
> > tHeaders, "transferComplete",
> > tFormData) intotResult
> >
> > *end*mouseup
> >
> > *on*transferComplete pID, pResult, pBytes, pCurlCode
> >
> > *local*tData, tHeaders, tResult, rError
> >
> > *if* pCurlCode isnot0*then*
> >
> > *put*tsNetRetrError(pID) & crafterfld"output"
> >
> > *end* *if*
> >
> > *put*tsNetRetrData(pID, tError) intotData
> >
> > *put*"Server returned:"& tData & crafterfld"output"
> >
> > *put*"Headers"&& tsNetRetrSentHeaders("1", rError) & crafterfld"output"
> >
> > *put*tResult & cr& tHeaders & cr& pResult & cr& tData afterfld"output"
> >
> >  ?? tsNetCloseConn pID
> >
> > *end*transferComplete
> >
> >
> >
> > On 10/16/2018 9:12 PM, Douglas Ruisaard via use-livecode wrote:
> > > I'll start by apologizing for my abysmal familiarity with HTTP,
> > > JSON, and URL's ... I'm hoping
> > someone will have pity and give me a hand!
> > >
> > > I am trying to send a "command" to a ThingSpeak channel, which is
> > > very successfully receiving data
> > from a simple little ESP8266 module.  Periodically, I need to clear
> > the data from this channel.  I want to do so from LC.. NOT the
> > ESP8266.  I just can't seem to "coordinate" the instructions from the
> > ThingSpeak site to DELETE this data (not the channel, just the data within) 
> > with an LC function /
> code.
> > >
> > > The link to the ThingSpeak page I am referring to is:
> > > https://www.mathworks.com/help/thingspeak/clearchannel.html?searchHi
> > > gh
> > > light=delete%20channel%20data_tid=doc_srchtitle#d120e16923
> > >
> > > but in essence, I interpret the content to assert the following:
> > >
> > > Access the following URL:
> > > "https://api.thingspeak.com/channels/564256/feeds.json; where
> > > "564256" is
> > the channel I wish to clear.
> > >
> > > Send the JSON "command": "DELETE 
> > > https://api.thingspeak.com/channels/564256/feeds.json
> > >  api_key= EQKTUQQKVH83D1RE"
> > >
> > >   where "EQKTUQQKVH83D1RE" is my account api-key 
> > > for writing to
> > > the ThingSpeak channel
> > >
> > > if successful, ThingSpeak responds with: "[]" ... 

Re: pdftk issue solved

2018-10-18 Thread Bob Sneidar via use-livecode
OK I see now it expects full paths. I was using cd to change directories and 
thinking it would default to the local directory. It's curious that the output 
is appending line feeds or carriage returns (which Adobe Acrobat doesn't do) 
and some of the object names have spaces in between each letter in the name! I 
will play around with it to see if I can massage the data to clean it up, but I 
am getting output. Thanks! 

Bob S


___
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: pdftk issue solved

2018-10-18 Thread Matthias Rebbe via use-livecode
Here you should find the Mac OS X builds
https://pages.uoregon.edu/koch/ 


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

> Am 18.10.2018 um 20:29 schrieb Bob Sneidar via use-livecode 
> :
> 
> Looks like it's just for Windows and Linux. 
> 
> Bob S
> 
> 
>> On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode 
>>  wrote:
>> 
>> Bob,
>> 
>> isn´t Ghostscript able to do what you are want to accomplish?
>> 
>> 
>> Matthias Rebbe
> 
> ___
> 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: pdftk issue solved

2018-10-18 Thread Mark via use-livecode
Looks like the link for pdftk on the pdflabs website has not been updated. The 
version available from this link works fine for me on Mojave.

https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg

Mark
On Oct 18, 2018, 11:30 AM -0700, Bob Sneidar via use-livecode 
, wrote:
> Looks like it's just for Windows and Linux. 
>
> Bob S
>
>
> > On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode 
> >  wrote:
> >
> > Bob,
> >
> > isn´t Ghostscript able to do what you are want to accomplish?
> >
> >
> > Matthias Rebbe
>
> ___
> 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: pdftk issue solved

2018-10-18 Thread Bob Sneidar via use-livecode
Looks like it's just for Windows and Linux. 

Bob S


> On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> Bob,
> 
> isn´t Ghostscript able to do what you are want to accomplish?
> 
> 
> Matthias Rebbe

___
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: pdftk issue solved

2018-10-18 Thread Bob Sneidar via use-livecode
I'll have a look see. 

Bob S

> On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> Bob,
> 
> isn´t Ghostscript able to do what you are want to accomplish?
> 
> 
> Matthias Rebbe

___
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: pdftk issue solved

2018-10-18 Thread Matthias Rebbe via use-livecode
Bob,

isn´t Ghostscript able to do what you are want to accomplish?


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

> Am 18.10.2018 um 18:04 schrieb Bob Sneidar via use-livecode 
> :
> 
> Never mind. pdftk will not work with normal pdf files either.  Looks 
> like this product is depricated. 
> 
> Bob S
> 
> 
>> On Oct 18, 2018, at 08:00 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> For those interested, I was having a problem creating an fdf file from a 
>> fillable pdf form, or even exporting the data using pdftk server. I think I 
>> figured out why! In order to create fillable pdf forms that can be filled by 
>> non-acrobat applications like Reader or Preview, they need to be saved in a 
>> special format. This format precludes even Acrobat from accessing those 
>> fillable fields, without first saving the form as a standard pdf. It's a 
>> catch 22. Make my forms universally accessible and lock myself out of them, 
>> or else make them so that only Acrobat can fill them. Thanks Adobe! 
>> 
>> Bob S
> 
> 
> ___
> 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: pdftk issue solved

2018-10-18 Thread Bob Sneidar via use-livecode
Never mind. pdftk will not work with normal pdf files either.  Looks like 
this product is depricated. 

Bob S


> On Oct 18, 2018, at 08:00 , Bob Sneidar via use-livecode 
>  wrote:
> 
> For those interested, I was having a problem creating an fdf file from a 
> fillable pdf form, or even exporting the data using pdftk server. I think I 
> figured out why! In order to create fillable pdf forms that can be filled by 
> non-acrobat applications like Reader or Preview, they need to be saved in a 
> special format. This format precludes even Acrobat from accessing those 
> fillable fields, without first saving the form as a standard pdf. It's a 
> catch 22. Make my forms universally accessible and lock myself out of them, 
> or else make them so that only Acrobat can fill them. Thanks Adobe! 
> 
> Bob S


___
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: pdftk issue solved

2018-10-18 Thread Bob Sneidar via use-livecode
To be even fairer, the "P" in "PDF" stands for "Portable". Had they not made 
them "P"ortable, they would not have made any "M"oney. :-)

Bob S


> On Oct 18, 2018, at 08:11 , Richmond via use-livecode 
>  wrote:
> 
> "To be fair" (one of my least favourite phrases), Adobe did not go to all the 
> trouble of inventing the PDF thing for it to be portable; they invented it as 
> a way to make money. The fact that, at a later date, Adobe made the PDF more 
> accessible is super: but, a bit like Willy Wonka, one must read the small 
> print.
> 
> Richmond.


___
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: pdftk issue solved

2018-10-18 Thread Richmond via use-livecode
"To be fair" (one of my least favourite phrases), Adobe did not go to 
all the trouble of inventing the PDF thing for it to be portable; they 
invented it as a way to make money. The fact that, at a later date, 
Adobe made the PDF more accessible is super: but, a bit like Willy 
Wonka, one must read the small print.


Richmond.

On 18.10.18 г. 18:00 ч., Bob Sneidar via use-livecode wrote:

For those interested, I was having a problem creating an fdf file from a 
fillable pdf form, or even exporting the data using pdftk server. I think I 
figured out why! In order to create fillable pdf forms that can be filled by 
non-acrobat applications like Reader or Preview, they need to be saved in a 
special format. This format precludes even Acrobat from accessing those 
fillable fields, without first saving the form as a standard pdf. It's a catch 
22. Make my forms universally accessible and lock myself out of them, or else 
make them so that only Acrobat can fill them. Thanks Adobe!

Bob S


___
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

pdftk issue solved

2018-10-18 Thread Bob Sneidar via use-livecode
For those interested, I was having a problem creating an fdf file from a 
fillable pdf form, or even exporting the data using pdftk server. I think I 
figured out why! In order to create fillable pdf forms that can be filled by 
non-acrobat applications like Reader or Preview, they need to be saved in a 
special format. This format precludes even Acrobat from accessing those 
fillable fields, without first saving the form as a standard pdf. It's a catch 
22. Make my forms universally accessible and lock myself out of them, or else 
make them so that only Acrobat can fill them. Thanks Adobe! 

Bob S


___
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: LC 9.0 Windows - tooltip broken for new datagrid?

2018-10-18 Thread Bob Sneidar via use-livecode
Well think about pointing at a populated record. Does the user want the tooltip 
for the datagrid? A tooltip for the record itself (they way I created a hack 
for) or the tooltip for the individual field? But I agree, if it doesn't do 
anything, it shouldn't be there. 

Bob S


> On Oct 17, 2018, at 21:43 , Bernard Devlin via use-livecode 
>  wrote:
> 
> I have Livecode 5.5 on another machine.  I'll see if the tooltip works
> there.  I see no reason why a datagrid (even if it is a fancy group)
> shouldn't have a tooltip the way other UI controls have one.  I guess these
> features are not even used on mobile interfaces, so maybe they are "legacy".
> 


___
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