LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-09-2003, 12:11 PM   #1
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Rep: Reputation: 15
Question linking Windows/Delphi/Linux


I am currently developing a program that allows a user to take a group of files from our windows network, creates postscript files, places them in an outgoing folder and replaces them with pdfs.

At them moment I have a script that trawls through a set of defined folders and converts any files found.

What I would prefer to do, is have the Delphi program on the windows client call a script on the Linux server, that converts the files in the passed folder.

I can write the script OK, but am having problems working out whether I can call the script from within Delphi and wait for it to finish

Any experience?

Dan
 
Old 10-10-2003, 01:57 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You can setup a printer via samba that will create PDF files. You just setup a network postscript printer on the windows PC that connects to the samba printer on the linux side.

Mandrake's default samba configuration file includes an example but the problem is that the name of the PDF file is random. I haven't taken the time to figure out how to change this.

Besides, I don't know of a way to execute a linux script from windows unless its a client / server app.

Instead of trawling it might be best to have a single input folder and then a conversion output folder. Use a cron job that checks the folder every minute, converts and saves to the output folder and then deletes the input file.

My company has a nifty PDF conversion server that is a Sun Sparc workstation. It can use email, ftp or a web browser interface to send PS and receive PDF files. It uses ghostscript but I don't think I could get all of the scripts etc to build one for myself.
 
Old 10-14-2003, 03:46 AM   #3
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks for the hint

Unfortunately the PDFprinters that I can find for Linux don't have the functionality I need.

When we create a pdf batch, these are filed in dated outgoing folders, for the relevent client - which helps in backup/retrieval as well as auditing from out end.

At the moment each user creates the output in a User folder and manually moves the pdfs to the out folder. We want to automate the process to treat larger batches. However we would like to avoid scanning all the possible folders to find new postscript output.

Either we need a pdf printer where the user can define the destination, or script that can be called on a specific destination from another program.

Dan
 
Old 10-14-2003, 05:09 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
When your talking about PDF printers do you mean ghostscript and ps2pdf?

What kind of functionality do you need and what are you using to create the PDFs?

Another posibility would be a webpage application similar to webcdwriter. You could upload a file, convert and the pop up a page where they could download the converted files.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About Delphi and Kylix kpachopoulos Programming 1 06-15-2004 03:10 PM
Delphi? LinuxSeeker Programming 3 03-18-2004 07:22 AM
Delphi Tutorials? qcoder Programming 1 11-07-2003 07:02 PM
Delphi compiler for alpha BoldKiller Programming 1 01-20-2003 06:56 PM
Delphi - Linux - How?? stefanvg Programming 2 06-13-2001 11:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration