Creating a pdf file from directory with multiple file types

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
drewburlingame
Posts: 2
Joined: Mon Apr 04 2005

Creating a pdf file from directory with multiple file types

Post by drewburlingame »

I need to create a single pdf file from a directory with multiple file types. There will be images( tiff, jpeg, bmp, png ), pdf files, word documents and excel files. I need to do this without the user seeing any applications opening during this process.

What's the best way to do this? Does anyone have any sample code for this? I'll be coding the project in C#.

Thanks in advance for the direction,
Drew
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

The best way is to write a code that opens each file in it respective application (while opening the application in the background so it will not be visible to the end user), print the file than close the application.

We have samples online but we do not have a C# one, if you wish to get a C# sample please contact support@amyuni.com

Hope this helps.
drewburlingame
Posts: 2
Joined: Mon Apr 04 2005

Post by drewburlingame »

Can you point me to the samples that show how to determine the respective applications and open them? Also, doesn't this assume we'll be able to automate each application?

Any good suggestions for typical file types (tiff, jpg, bmp, gif, png, etc) as far as applications that should be standard on every windows box and support automation? Or for an application that we can install quitely that can open all these, print, and support automation?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

You can find samples on using the PDF Converter including samples on convert Word or Excel document to PDF Programatically at: http://www.amyuni.com/en/support/technotes.html

You can aslo launch your application with the verb print to print your documents.

For the images, you can use any image viewer, like iview by example to view the images and print them. I didn't try iview myself.

Hope this helps.
Post Reply