Re: Best scripting language to use with LEP (docx to PDF)

2019-04-07 Thread Pat Bensky via 4D_Tech
That's a great component that works very well for converting HTML to PDF. Sadly it doesn't work for our project, because our documents are created using 4DWritePro. Converting them to HTML loses some vital formatting - most importantly, things like text columns on a page. I suppose this could be fi

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-06 Thread Keisuke Miyako via 4D_Tech
if you go down the automation (applescript) route, be sure where you create the result document. Word is sandboxed, so you can only export to the temporary folder in 4D code $path:=Temporary folder+"com.microsoft.Excel"+Folder separator this would be for CFBundleShortVersionString > 14 i.e. Off

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-06 Thread Pat Bensky via 4D_Tech
Miyako, > > but my understanding is that > Word on Windows embeds hyperlinks when exporting to PDF, > whereas Word on Mac doesn't (same with any app that performs print-to-pdf > using the system feature) > If you use the Save As ... option in Word to create the PDF, it preserves the hyperlinks. If

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-06 Thread Keisuke Miyako via 4D_Tech
I might be mistaken, but my understanding is that Word on Windows embeds hyperlinks when exporting to PDF, whereas Word on Mac doesn't (same with any app that performs print-to-pdf using the system feature) another approach maybe to use wkhtmltox https://github.com/miyako/4d-component-wkhtmltop

RE: Best scripting language to use with LEP (docx to PDF)

2019-04-05 Thread Epperlein, Lutz (agendo) via 4D_Tech
Hi Alexander, Some time ago we gave this tool a try. The results were really good. There were two versions of the tool, the Total Doc Converter for desktop use and the Total Doc ConverterX for server use. The testing of the desktop version shows a dialog with a progress bar, this is rather a sh

RE: Best scripting language to use with LEP (docx to PDF)

2019-04-05 Thread Epperlein, Lutz (agendo) via 4D_Tech
> An easy way to create Word files is: > - create a file in XML format > - Change the file extension from xml to docx > > Voila! AS long as your XML is well-formed and conforms to the Open XML > standard, it works a treat. That's nearly the same we do. With the difference that we don't create plai

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-05 Thread Pat Bensky via 4D_Tech
documents > works well and is reliable. Now we have the requirement to convert these > rather complex MS Word documents to PDFs. We didn't found a good solution > yet. > > Regards > Lutz > > > > > -Original Message- > > Subject: Re: Best scripting langua

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-05 Thread Herr Alexander Heintz via 4D_Tech
ound a good solution yet. > > Regards > Lutz > > > >> -Original Message- >> Subject: Re: Best scripting language to use with LEP (docx to PDF) >> >> Good questions Lutz :) >> I'd like to think that it will work when

RE: Best scripting language to use with LEP (docx to PDF)

2019-04-05 Thread Epperlein, Lutz (agendo) via 4D_Tech
. Regards Lutz > -Original Message----- > Subject: Re: Best scripting language to use with LEP (docx to PDF) > > Good questions Lutz :) > I'd like to think that it will work when running as a service as long as a) > it runs silently and b) Word is installed on the server. But that i

Re: Best scripting language to use with LEP (docx to PDF)

2019-04-05 Thread Pat Bensky via 4D_Tech
Good questions Lutz :) I'd like to think that it will work when running as a service as long as a) it runs silently and b) Word is installed on the server. But that is certainly something that will need to be tested. I am trying to find a solution that is very simple for users of all technical abi

RE: Best scripting language to use with LEP (docx to PDF)

2019-04-05 Thread Epperlein, Lutz (agendo) via 4D_Tech
The more interesting question is, at least from my point of view, which tools do you use for the conversion from docx to PDF. And do this tools work in a context of Windows service. Does the conversion works reliable if started from a 4D app running as a Windows Service. And as suggestion for a