Re: Printing to PDF (again)

2019-04-04 Thread Julio Carneiro via 4D_Tech
Have you checked Rob Laveaux’s plugins at pluggers.nl ? 
Those are x-platform and might do the trick.
What you want cannot be achieved with any print to pdf solution. You need a 
plugin that helps create, or manipulate, pdf documents.

I’ve Myako also has something on the area, you might check with him.

hth
julio

> On Apr 4, 2019, at 5:02 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Thanks Armin ... it's Windows only unfortunately. I need a cross-platform
> solution. Even if it means two separate solutions :)
> Pat
> 
> On Thu, 4 Apr 2019 at 20:22, ADeeg via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
>> 4D Tech mailing list wrote
>>> Does anybody know of any way to manage the options for printing to PDF?
>>> Specifically, for example:
>>> - Specify the resolution
>>> - Make hyperlinks active
>>> 
>>> ?
>>> Pat
>> 
>> Pat try http://www.node.de/indexplug.htm
>> 
>> Regards Armin
>> 
>> 
>> 
>> --
>> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

--
Julio Carneiro
jjfo...@gmail.com



**
4D Internet Users Group (4D iNUG)
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: Best scripting language to use with LEP

2019-04-04 Thread Tom Benedict via 4D_Tech
Hi Pat,

I believe that PowerShell is included in all versions of Windows:

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6
 

And I see that there is a version for MacOS too, but will need to be installed: 
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-6

Tom Benedict

> On Apr 4, 2019, at 13:45, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> I'm looking into getting some custom scripts created to solve my
> output-to-PDF problems.
> 
> Mac
> I think I can do what's needed with AppleScript.
> 
> Windows
> Any suggestions as to which language would be best? PERL? Java?
> 
> We need to be able to run the script via LEP. We would pass a .docx file
> pathname to the script, which would then simply open it and save it as a
> PDF with one or two specified options (eg the resolution required), and
> return a result code. Ideally, it would not require any special software to
> be installed in order to runt he script.
> 
> Suggestions, anybody?
> 

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

Best scripting language to use with LEP

2019-04-04 Thread Pat Bensky via 4D_Tech
I'm looking into getting some custom scripts created to solve my
output-to-PDF problems.

Mac
I think I can do what's needed with AppleScript.

Windows
Any suggestions as to which language would be best? PERL? Java?

We need to be able to run the script via LEP. We would pass a .docx file
pathname to the script, which would then simply open it and save it as a
PDF with one or two specified options (eg the resolution required), and
return a result code. Ideally, it would not require any special software to
be installed in order to runt he script.

Suggestions, anybody?

Pat

-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
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: Printing to PDF (again)

2019-04-04 Thread Pat Bensky via 4D_Tech
Thanks Armin ... it's Windows only unfortunately. I need a cross-platform
solution. Even if it means two separate solutions :)
Pat

On Thu, 4 Apr 2019 at 20:22, ADeeg via 4D_Tech <4d_tech@lists.4d.com> wrote:

> 4D Tech mailing list wrote
> > Does anybody know of any way to manage the options for printing to PDF?
> > Specifically, for example:
> > - Specify the resolution
> > - Make hyperlinks active
> >
> > ?
> > Pat
>
> Pat try http://www.node.de/indexplug.htm
>
> Regards Armin
>
>
>
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
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: Printing to PDF (again)

2019-04-04 Thread ADeeg via 4D_Tech
4D Tech mailing list wrote
> Does anybody know of any way to manage the options for printing to PDF?
> Specifically, for example:
> - Specify the resolution
> - Make hyperlinks active
> 
> ?
> Pat

Pat try http://www.node.de/indexplug.htm

Regards Armin



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
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: Creating Word docs in 4D

2019-04-04 Thread David Rose via 4D_Tech
I found another solution, pending some testing. (This is in a Windows 
environment, btw.)
Print the Write Pro document to a PDF file (in my case, using Microsoft Print 
to PDF), then use a command-line utility that converts PDFs to Word, like Total 
PDF Converter from coolutils.com. This app costs $39, but there are probably 
some free apps out there as well that do the same thing. Command-line utility 
programs can be launched from 4D by creating a .bat file and launching it via 
LAUNCH EXTERNAL PROCESS.
Will experiment and report back. Will be interesting to see how accurate the 
resulting Word docs are compared with the PDF files.
David

-Original Message-
From: David Rose [mailto:drose...@gmail.com] 
Sent: Thursday, April 04, 2019 10:09 AM
To: '4d_tech@lists.4d.com' <4d_tech@lists.4d.com>
Subject: Creating Word docs in 4D

As of August 2018, Write Pro could not export to a Word doc. Has that changed?

I have a 4D v15 application that uses 4D Write pre-defined templates that 
contain home-grown embedded variables, and the code uses the WR Replace command 
to substitute data for these variables.
Then the Write docs are exported as Word docs. Works perfectly.

But in v17, I have to come up with a way to replicate this functionality.
Is anyone using the following methodology to do this?:
Outside of 4D:
1. Create a template in MS Word, with home-grown embedded variables, and save 
it as a .docx file. (Which is actually a zipped collection of xml and other 
files.) 2. Change the file extension to .zip .
3. Unzip the file, which creates a number of folders and files.

In 4D:
1. open the resulting document.xml file.
2. Replace the embedded variables with data.
3. Resave the file.
4. Zip the file, using Miyako's zip plugin for 4D.
5. Change the extension to .docx .

Anyone doing this or something like it?

David



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

Auto Updating 4D Not Working

2019-04-04 Thread Cannon Smith via 4D_Tech
I’m having trouble with one particular app auto updating. When it should be 
quitting, it just hangs forever.

4D v17.1HF1, macOS only. (It works fine on Windows). I’m using essentially the 
same code as in several other applications, also on v17.1HF1, but this is the 
only application that doesn’t work. Also, it was working in previous versions 
of 4D, but doesn’t now. With no code changes.

Here are the symptoms.

- I’ve verified that SET UPDATE FOLDER is setting OK to 1.
- Also verified (using SHOW ON DISK) that the path used with SET UPDATE FOLDER 
is correct and points to a .app bundle.
- Verified that Updater.app is created by 4D (did this by removing it and 
seeing it put back in on the next try).
- Verified that the On Exit method is completing correctly (using the debug 
logging).
- Noticed that Updater.app is not launched, nor is an updater log file created.

I’m guessing it is hanging when it is trying to launch Updater.app, but that’s 
only a guess. Since I can’t see what 4D is trying to do at this point, and 
because the same code is working with other applications and with this 
application on Windows, I can’t figure out what is wrong. Wondering if anyone 
has any ideas I could try?

Thanks.

P.S. It also takes a fair amount of CPU until force quit.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada




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

Creating Word docs in 4D

2019-04-04 Thread David Rose via 4D_Tech
As of August 2018, Write Pro could not export to a Word doc. Has that changed?

I have a 4D v15 application that uses 4D Write pre-defined templates that 
contain home-grown embedded variables, and the code uses the WR Replace command 
to substitute data for these variables.
Then the Write docs are exported as Word docs. Works perfectly.

But in v17, I have to come up with a way to replicate this functionality.
Is anyone using the following methodology to do this?:
Outside of 4D:
1. Create a template in MS Word, with home-grown embedded variables, and save 
it as a .docx file. (Which is actually a zipped collection of xml and other 
files.)
2. Change the file extension to .zip .
3. Unzip the file, which creates a number of folders and files.

In 4D:
1. open the resulting document.xml file.
2. Replace the embedded variables with data.
3. Resave the file.
4. Zip the file, using Miyako's zip plugin for 4D.
5. Change the extension to .docx .

Anyone doing this or something like it?

David



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

Printing to PDF (again)

2019-04-04 Thread Pat Bensky via 4D_Tech
Does anybody know of any way to manage the options for printing to PDF?
Specifically, for example:
- Specify the resolution
- Make hyperlinks active

?
Pat

-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
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: Code signing works on one app but fails on another

2019-04-04 Thread Pat Bensky via 4D_Tech
Brilliant, thank you Miyako!
Note that I needed to make one change to the code, in the method "code
sign":

Change

$infoPlistPath:=$applicationPath+Folder separator+\

"Contents"+Folder separator+"Info.plist"


to


$infoPlistPath:=$applicationPath+\

"Contents"+Folder separator+"Info.plist"

Pat

On Thu, 4 Apr 2019 at 01:32, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> the text edit setting "smart dashes" may convert double hyphens to dash,
> which is not what you want in this context.
>
> https://support.apple.com/kb/PH23628?locale=ja_JP=en_US
>
> a single hyphen must be used with a short option name (-f)
> a double hyphen must be used with a short option name (--force)
>
> -force is therefore an invalid instruction (single hyphen+long option
> name).
>
> I've posted a utility to ease the process of signing
>
> https://github.com/miyako/4d-utility-build-application
>
> it is written in v17 but the target app path can be any path.
>
> 2019/04/03 8:05、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com 4d_tech@lists.4d.com>>のメール:
> —force: No such file or directory
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
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: Error connecting to 4D Server - SOLVED

2019-04-04 Thread Paul Dennis via 4D_Tech
Its easy to turn off. Control Panel - Windows Update - Change Settings -
Select "Download but choose to install"  Then when you check you can see
which ones to install. If Win server is only running 4D then no need to auto
install updates. Fire wall should block any issues.
Paul



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**