Windows File association

2006-07-19 14:33:26 by anonymous

First, let me say that PDFCreator is a really great tool. Keep up the good work!

I am using the COM interface to create PDF in a batch on Windows XP. Works fine with Micosoft format (Word, Excel), but I get errors when I try to print images (bmp, gif, jpeg). PDFCreator complains that the file is not printable.

When I manually edit the file and print to the PDFCreator virtual printer, I am able to cerate the PDF. But I have to go thru the Photo Printing Wizard instead of having it send to the printer directly. I am guessing that it is the issue.

Is there a way to disable the 'Photo Printing Wizard'?
Any other solution to print these files using the COM interface?

Thanks,

Aymeric


2006-07-19 14:43:33 by thesmilyface

I think that this is possible with the freeware irfanview.

Frank


2006-07-19 15:43:14 by anonymous

Seems like Ifranview is just an image viewer. It doesn't have printing capabilities as far as I can see. I associated the bmp files with Ifranview, but right-click printing option still start Photo Printing Wizard.

Aymeric


2006-07-19 17:21:25 by thesmilyface

You must associate irfanview with the bmp print command in your windows explorer!

irfanview can print from the commandline.

/print - print to default printer and CLOSE IrfanView
/print="Name" - print to specific printer and CLOSE IrfanView

Frank


2006-07-19 18:30:31 by anonymous

Frank,

Thanks for your help. I don't know how to associate irfanview to the bmp print command.

I can see in Windows Explorer, in the File Types section that the 'Open With' command is associated with irfanview. But I don't see where I can change the 'Print' association.
Actually, I can see an 'Advanced' button on some of the file extensions, but it is not present for the BMP extension. Weird.

Any idea?

Thanks,

Aymeric


2006-07-19 21:29:15 by thesmilyface

No problem
1.) Install irfanview
2.) During the installation associate bmp with irfanview
3.) After installation
3.1) Open the registry and create this keys
HKCR\IrfanView.bmp\shell\print
HKCR\IrfanView.bmp\shell\print\command
3.2) Add this for the default value
"C:\Program files\IrfanView\I_VIEW32.EXE" "%1" /print
4.) Test it. ;-)

Frank


2006-07-20 12:05:44 by anonymous

That works nicely.
I guess I need to learn a little more on the Windows registry now.

Thanks,

Aymeric


2006-07-20 15:56:14 by thesmilyface

But the best way to convert bmp's to pdf's is to use fly2pdf. ;-) fly2pdf doesn't need any printer or ghostscript. If you like you can be a tester.

Frank


2006-07-21 10:22:09 by AymericAlibert

That sound promising. I am currently using PDFCreator from java using Jacob and the COM interface.
I can see places where an ActiveX component could be usefull for my users.
Is there an available release/pre release of fly2pdf? I can't see it on sf.

Thanks,

Aymeric


2006-07-23 07:11:30 by thesmilyface

I can send you the files next week for testing.

Frank


2006-07-24 11:44:22 by AymericAlibert

Great. I will try it for sure.
You can send it to AymericAlibert at gmail dot com

Thanks,

Aymeric