473,769 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server Side Word to PDF conversion

Hi,

We have a project that requires a .NET service to convert a Word document to
a PDF document. Basically, a person would create a mail merge template in
Word and through automation, we merge the data and spit out one or more PDF
documents. It appears that the best thing for me to do is get a product
that installs some type of printer driver. The problem is that the drivers
pop up a dialog box prompting for the destination file location. I would
like to do that in code. The standard flow would go something like this:

1. Retrieve Word Document
2. Retreive Data
3. Print result to PDF printer at location X.PDF.
4. Deliver/copy/archive X.PDF

Has anybody done anything like this? What products do you suggest that I
use?

I have spent the last couple days doing research, testing, etc. and am
frustrated with how long it is taking to find a good solution, so I thought
I would ask if anybody has had any similar experiences. I know this topic
has been covered in this newsgroup, but none of the topics seemed to address
this server-side issue. I apologize in advance :-(.

Thank you very much,
Curtis Justus
Nov 15 '05 #1
1 3479
Curtis,

We have a product (limited release stage now), that should do what you
need.

The web site is http://www.asyncsoftware.com and the product name is
"PDFMate Server"

The system is a multi-threaded, scriptable, windows service that
allows for "SAFE" server-side PDF conversion from a variety of desktop
applications, with an emphasis on Office documents.

The key features are:
1. Totally Dot Net managed code (Except of course for automating
Office Apps)
2. Royalty free PDF conversion using Ghost
3. Process Isolation and automatic timeouts
4. Scriptable engine (VB.NET scripting using VSA) that can accommodate
many different applications
5. Windows Service with automatic monitoring of directories, FTP
Sites, POP3emails, MSMQ
6. Templates for email subscription
7. Automatic delivery and publishing
Here how it works:
- At the core, there is a Windows Service that monitors for incoming
jobs. Any number of monitors can be defined, and we support 6 types of
monitors: (Directory, Pop3, MSMQ, FTP, PDFmate Internal, PDFMate
external).
- A File (doc file for example) can be sent to the server using any of
those techniques
- An optional Job file can be created. The Job file is an XML
structure specifying the parameters for THAT document (i.e., who gets
the results).
- if no job file is found, a job file is created based on a
user-defined template (We call this 'autoconversion ').

- Once the job file is created, it is placed in a job queue. You
control how many versions of Word/Excel/Powerpoint you want active at
any time.
- The job file specifies a script (VB.NET code) that must be run to
convert the file. We provide the basic scripts you will need and you
can tailor them.

- The Kernel then runs the job in a separate process. If Word hangs,
or throws a message box, the system will kill the job and report the
error. (There is a user-defined timeout)

- The job file actually runs using .NET scripting, which you can
tailor to your own needs. We use the VSA engine to compile/run the
script code. This gives the product a high degree of user-defined
flexibility.

- A Job has a main conversion script (Like Doc2PDF.vb), a
post-processing script that is used to handle publishing, emailing,
etc, and an error script to handle errors.

- The job file specifies the output filename, and what action to take
on the PDF file. Job files are XML format, and serialized at the end
of processing with results and/or error messages.

- We provide a monitoring tool to see how the service is doing.

- There is a sample web site as well that is included with the
product.

The basis of this application was developed for a commercial
application, and we have since taken it and productized it as a
standalone product.

I know this is a long message, but this type of application, done
right, is way more complicated than it looks on the surface. We have
spent a lot of time understanding exactly how the threading and
process management work in .Net. We have also implemented .NET
Remoting on the server to we can control the process from a Windows
App.

Please take a look at the information on the web site. Some of the
documentation needs updating, and we can provide additional
information on request.

Our objective in the near term is to pick a few companies to work with
so we can have some good reference sites.

Thanks

Frank M.
(813) 856-0249
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3381
by: Caversham | last post by:
Is there any macro / other tool - free or commercial - that can split long Word docs into multiple XHTML pages? Any comments on the quality/effectiveness of suitable products also welcomed.
26
3826
by: David W. Fenton | last post by:
A client is panicking about their large Access application, which has been running smoothly with 100s of thousands of records for quite some time. They have a big project in the next year that will lead to a lot of use of the database and the adding of quite a lot of new data (though I can't conceive of them adding more than than 10s of thousands of records, which won't change the current performance profile at all). If there is a SQL...
9
1494
by: Mike Fellows | last post by:
I'm trying to create a server side application (through a web front end) that allows me to print specific documents from the server im using: Dim wordapp = New Word.Application and have added the word reference (and installed word on the server)
6
1285
by: CMan | last post by:
Hi We have a requirement for a browser based app which needs to be able to create/print word files, mail merges e.t.c. How should we approach this? I an assuming that running word on the server is not a great idea because of threading issues. Has anyone else done this kind of thing?
5
4786
by: Casey | last post by:
Hello, Can someone give me specific code to replace text on a page using server side javascript? I need to use server-side because I need the output to be recognized in the final HTML so that google can index it. Here is a specific example of what I want to do: <div id=SomeText> Here is some text. I went to the baseball game </div>
4
2513
by: Kash | last post by:
Hi everybody: I've developed a web application running on a 2003 server not on the web but on extranet environment of a small Firm (less than 10 users). I've taken benefit of Office Primary Interop Assemblies (PIAs) for automating Word on the server and everything runs smoothly on the server console. The word documents are generated perfectly from all clients and stored on the server with some data comes from a SQL server and/or stores...
2
6966
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
33
2295
by: MC | last post by:
Hey, I have a need to get HTML from a client back to a server to do server processing. I would like the HTML and form data both. Is there a simple way to capture that? I do not want to submit the page...I will use ajax to send the data. I know how to get the elements but not the entire page or form. I am really just interested in specifying document.form2 and sending that.
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10039
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6668
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5445
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3955
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.