Hi All,
I am getting problem while i was trying to print and save the pdf document to tiff. What i want is I have pdf file which is located at c:\temp\test.pdf. Now i wanted to give the functionality to user when he clicks to the button convert to tiff, in the background it read the file from above location hit the print command select the “Microsoft Office Document Image Writer” and save the file at the same location with the name test.tiff. Microsoft Office Document Image writer is already installed at client machine.
How can i do all the activity form reading the file to saving as tiff document.
Please help and guide me. For that I will be very thankful to you for your response.
With Regards,
Vikas K Sinha
Subject: print and save
Hello, Vikas.
If I am not mistaken, in your case it is necessary to use a software of indirect developers. The Lotus does not allow to convert these formats. Look for components which realise such conversion on more low level.
Best regards,
Berezhnoy Evgeniy
Subject: RE: print and save
Thanks Evgeniy,I don’t want to do conversion task from lotus notes. I just only wanted to print/save the pdf document using “Microsoft Office Document Image Writer” which convert that pdf in tiff format.
Currently I am using the code which i got IBM Forum here itself
what_to_run = “C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32”
k = what_to_run.PrintPagesSilent(0, 2- 1, 0, False, True)
taskid% = Shell(what_to_run & " /p" & "c:\temp\test.pdf",6)
But problem is it prompt the print dialog box. But what i want it should be invisible in to user and also choose the the printer what we defined.
Please help and do the needful…
With Regards,
Vikas K Sinha
Subject: RE: print and save
PrintPagesSilent is a COM method, not a command line parameter. Silent printing will always use the default printer. That means you need to use the Acrobat COM API to open Acrobat (or Reader) and the Win32 API to change the default printer (and, one would hope, to record the current printer and switch back when you’re done). Again, none of this is Notes- or Domino-related, and there is plenty of documentation available elsewhere (like, say, at Adobe and Microsoft).
Subject: RE: print and save
Thanks Stan for your response and guide.