By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,656 Members | 968 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,656 IT Pros & Developers. It's quick & easy.

Converting TIFFs to PDFs using Office Imaging 2003 and Adobe Distiller in VB.NET

P: n/a
MC
Hi,
I'm developing an VB.NET app that converts TIFFs to PDFs using Office
Imaging 2003 and Adobe Distiller 6.0 in the follwing way:

1. Using automation, I open the TIFF file with Office Imaging 2003.

2. I Printout the document to a .PS file using the Printout method into
Adobe PostScript virtual printer.

3. I automate Distiller to convert the new .PS file into PDF.
Everything works just fine, except this little detail that is driving me
crazy: Only the first TIFF page is correctely converted. The other page's
resolution is simply reduced to an unreadble size!

Other points of interest:
1. Using the print menu from Office Imaging Application directly into PDF
works fine.
2. I've tried all differente resolutions and page sizes that Office Imaging
2003 printou method offers

Here is the code:


Dim doc As MODI.Document = New MODI.Document

doc.Create("c:\test.tif")

doc.PrintOut(0, -1, 1, "Adobe PDF", "c:\test.ps", False,
MiPRINT_FITMODES.miPRINT_PAGE)

dim distObj as PdfDistiller = new PdfDistiller

distObj.FileToPdf ("c:\test.ps", "c:\test.df", "")


Does anyone have ideas about this strange problem?

Thanks in advance.

MC


Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.