ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.