Re: 4D scanning

2021-06-22 Thread Claudio Braga via 4D_Tech
Hi, 

On Mac you can use scanline https://github.com/klep/scanline 


It is a cli util so with some launch external process calls you can drive it

i.e.

To get the list of available scanners 

$command:="/usr/local/bin/scanline -list -browsesecs 1 "
$std_in:=""
$std_out:=""
$error:=""
LAUNCH EXTERNAL PROCESS($command;$std_in;$std_out;$error)


To actually do a scan

//vSCANDOCS_scanner is the name of the scanner found with the -browsesecs option

$command:="/usr/local/bin/scanline -scanner \""+vSCANDOCS_scanner   
$command:=$command+"\" -a4 -flatbed -dir \""+Convert path system to 
POSIX($folder)+"\" -name "+$filename_for_scan
$std_in:=""
$std_out:=""
$error:=""
LAUNCH EXTERNAL PROCESS($command;$std_in;$std_out;$error)


So far I’ve been using it up to OS X 10.14, I’m in the process of testing it on 
Catalina, we’ll see

HIH



Claudio Braga
**
claudiobr...@me.com
claudiobr...@mac.com
claudiobr...@icloud.com
**



> Il giorno 21 giu 2021, alle ore 18:53, Jody Bevan via 4D_Tech 
> <4d_tech@lists.4d.com> ha scritto:
> 
> David:
> 
> Thanks for that snip of code. Hopefully someone in the know will be able to 
> let us know about the MacOS.
> 
> Thanks
> 
> Jody Bevan
> 
>> On Jun 21, 2021, at 4:20 AM, David Samson via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Hello,
>> 
>> I don't know about Macs but on a PC you don't need a plugin for simple
>> scanning. I use
>> 
>> I use a free program called NAPS2 which has proven to be very reliable over
>> the years. I scan the document into a known folder and retrieve it from
>> there and can then do what I want with it.
>> 
>> The code is simply the following:
>> 
>> SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")
>> 
>> cDTPath:=System folder(Desktop)
>> cDTPath:=cDTPath+Char(92)+"4DScan"+Char(92)
>> cDTPath:=PATH_Fix (cDTPath)
>> 
>> If (Test path name(cDTPath)#Is a folder)
>>   CREATE FOLDER(cDTPath)
>> Else
>>   DOCUMENT LIST(cDTPath;acOldDocs)
>>   For ($old;1;Size of array(acOldDocs))
>> DELETE DOCUMENT(cDTPath+acOldDocs{$old})
>>   End for
>> End if
>> 
>> cDTPath:=cDTPath+Char(92)+"ScannedPI"+Generate UUID+".pdf"
>> cDTPath:=PATH_Fix (cDTPath)
>> LAUNCH EXTERNAL PROCESS("C:\\Program Files (x86)\\nAPS2\\naps2.console
>> -o"+cDTPath)
>> 
>> All you need to do in setting up NAPS2 is to create a profile which tells
>> it which scanner to use.
>> 
>> HTH
>> David
>> 
>> 
>>> Message: 1
>>> Date: Thu, 17 Jun 2021 16:54:47 +0100
>>> From: Peter Mew 
>>> To: 4D iNug Technical <4d_tech@lists.4d.com>
>>> Subject: 4D scanning
>>> Message-ID:
>>>   <
>>> cao0ooqqc_ribzifseq7h6wsm-u+fejteuww26xnybpme5ax...@mail.gmail.com>
>>> Content-Type: text/plain; charset="UTF-8"
>>> 
>>> Hi
>>> I havent done any of this for a while so Im a bit! rusty.
>>> I looking to download Miyakos twain plug in, Where do I find it? or is
>>> there a better plugin that will capture scans and work with 4D v13 mac and
>>> PC preferably free
>>> thanks
>>> -pm
>>> 
>>> 
>>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> New Forum: https://discuss.4D.com
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Signature capture from tablet on Mac

2018-05-23 Thread Claudio Braga via 4D_Tech
Hello, 

Is someone aware of any solutions available to capture a signature using a 
Wacom table on osx ? Wacom software seems to be available only on windows, and 
internet is not helping at the moment 

Thanks in advance






Claudio Braga
**
claudiobr...@me.com
claudiobr...@mac.com
claudiobr...@icloud.com
**



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4d v14 web area & High Sierra & pdf

2018-02-06 Thread Claudio Braga via 4D_Tech
Thank you,

Not a good news …

I see I can open it in a picture variable, but I might need some zooming 
capabilities, at least something more than the standard features of a picture 
variable, so I’ll elaborate a bit more on this and eventually I will look for 
the pdf viewer plugin.

Thank you again

Ciao


Claudio Braga
**
claudiobr...@me.com
claudiobr...@mac.com
claudiobr...@icloud.com
**



> Il giorno 05 feb 2018, alle ore 13:03, Alberto Bachler via 4D_Tech 
> <4d_tech@lists.4d.com> ha scritto:
> 
> Claudio
> 
> I didn’t found any satisfactory solution…
> - You can install a PDF Browser plugin (not free)
> - If the PDF is just one page long you can display it in the web area after 
> converting it to a picture (READ PICTURE FILE)
> - Or open the file with Preview with OPEN URL
> 
> Alberto.
> 
> 
>> El 05-02-2018, a las 06:45, Claudio Braga via 4D_Tech <4d_tech@lists.4d.com> 
>> escribió:
>> 
>> Hi everyone,
>> 
>> I have a 4d v14.6 app with a webarea to display pdf that I am testing now on 
>> High Sierra
>> 
>> the pdf docs aren’t displaying anymore (blank page), while on Sierra 
>> everything is ok
>> 
>> I looked in the past threads and even if I found some discussions about it 
>> there seemed to be no solution, is this still the case ?
>> 
>> TIA
>> 
>> 
>> 
>> Claudio Braga
>> **
>> claudiobr...@me.com
>> claudiobr...@mac.com
>> claudiobr...@icloud.com
>> **
>> 
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

4d v14 web area & High Sierra & pdf

2018-02-05 Thread Claudio Braga via 4D_Tech
Hi everyone, 

I have a 4d v14.6 app with a webarea to display pdf that I am testing now on 
High Sierra

the pdf docs aren’t displaying anymore (blank page), while on Sierra everything 
is ok

I looked in the past threads and even if I found some discussions about it 
there seemed to be no solution, is this still the case ?

TIA



Claudio Braga
**
claudiobr...@me.com
claudiobr...@mac.com
claudiobr...@icloud.com
**



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Trace buttons disappeared (OS X 11.12, 4D v14.6)

2017-07-18 Thread Claudio Braga via 4D_Tech
Hi everyone, 

I just encountered this problem, the buttons in the trace window are invisible 
(or hidden under the window bar).



Any trick to reset this ? 

Thanks in advance

Ciao



Claudio Braga
**
claudiobr...@me.com
claudiobr...@mac.com
claudiobr...@icloud.com
**



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**